Function at 0x49147e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x26c
mov eax, 0x559a25
call fcn.005239fe
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x144], ebx
cmp dword [esi], ebx
mov dword [ebp - 0x130], eax
setne al
movzx eax, al
push 0x278
push eax
mov edi, str.srcwindows_registry.cpp
mov dword [ebp - 0x140], esi
call fcn.004924b4
mov eax, dword [ebp - 0x130]
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x13c], ebx
jb 0x4914e6
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x13c]
push ecx
push ebx
lea ecx, [ebp - 0x138]
push ecx
push ebx
push eax
push dword [esi]
call edi
mov esi, eax
cmp esi, ebx
je 0x49157d
lea eax, [ebp - 0x1e0]
push eax
call fcn.00403689
mov edi, eax
push str.RegQueryValueExW_failed_with
push edi
mov dword [ebp - 4], 1
call fcn.00405d65
pop ecx
pop ecx
push esi
push edi
call fcn.00410496
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.004036f3
mov byte [ebp - 4], 2
cmp esi, ebx
jle 0x49154f
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x28b
push str.srcwindows_registry.cpp
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00498954
push 0x5c9774
lea eax, [ebp - 0x110]
push eax
call fcn.0051eb2a
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
call fcn.0043e183
mov dword [ebp - 4], 3
cmp dword [ebp - 0x13c], ebx
je 0x491638
mov eax, dword [ebp - 0x130]
cmp dword [eax + 0x14], 8
jb 0x4915c1
mov eax, dword [eax]
lea ecx, [ebp - 0x13c]
push ecx
push dword [ebp - 0x12c]
lea ecx, [ebp - 0x138]
push ecx
push ebx
push eax
mov eax, dword [ebp - 0x140]
push dword [eax]
call edi
mov esi, eax
cmp esi, ebx
je 0x491638
lea eax, [ebp - 0x1e0]
push eax
call fcn.00403689
mov edi, eax
push str.RegQueryValueExW_failed_with
push edi
mov byte [ebp - 4], 4
call fcn.00405d65
pop ecx
pop ecx
push esi
push edi
call fcn.00410496
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.004036f3
mov byte [ebp - 4], 5
cmp esi, ebx
jle 0x49162c
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x29f
jmp 0x491556
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x12c]
call fcn.0043e183
mov esi, dword [ebp - 0x134]
mov eax, dword [ebp - 0x138]
mov dword [esi], eax
mov dword [esi + 4], ebx
lea ecx, [esi + 8]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
lea edi, [esi + 0x10]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
xor eax, eax
mov word [edi], ax
lea eax, [esi + 0x3c]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x144], 1
cmp edx, 0xb
ja case.default.0x4916a8
movzx edx, byte [edx + 0x4919ee]
jmp dword [edx*4 + 0x4919d6]
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp - 0x12c]
and eax, 1
je 0x4916df
mov esi, dword [ebp - 0x128]
sub esi, eax
sub esi, dword [ebp - 0x12c]
lea eax, [ebp - 0x12c]
call fcn.0043e183
mov esi, dword [ebp - 0x134]
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x128]
cmp edx, eax
je case.0x4916a8.0
sub eax, edx
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x491706
push str.invalid_vector_T__subscript
call fcn.00534fc2
cmp byte [ecx + edx], bl
jne 0x49172d
lea ecx, [eax - 2]
cmp eax, ecx
jbe 0x4916fc
lea eax, [ecx + edx]
cmp byte [eax], bl
jne 0x49172d
dec dword [ebp - 0x128]
cmp edx, dword [ebp - 0x128]
je 0x49172d
dec dword [ebp - 0x128]
mov eax, dword [ebp - 0x128]
sub eax, edx
mov dword [ebp - 0x140], eax
shr eax, 1
mov ecx, edi
call fcn.0040da2b
cmp dword [edi + 0x14], 8
jb 0x49174c
mov edi, dword [edi]
push dword [ebp - 0x140]
push dword [ebp - 0x12c]
push edi
call fcn.00517c70
add esp, 0xc
jmp case.0x4916a8.0
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp - 0x12c]
and eax, 1
je 0x491796
mov esi, dword [ebp - 0x128]
sub esi, eax
sub esi, dword [ebp - 0x12c]
lea eax, [ebp - 0x12c]
call fcn.0043e183
mov esi, dword [ebp - 0x134]
mov eax, dword [ebp - 0x128]
cmp dword [ebp - 0x12c], eax
je case.0x4916a8.0
lea eax, [ebp - 0x119]
lea esi, [ebp - 0x12c]
mov byte [ebp - 0x119], bl
call fcn.00491c41
lea eax, [ebp - 0x119]
mov byte [ebp - 0x119], bl
call fcn.00491c41
lea eax, [ebp - 0x119]
mov byte [ebp - 0x119], bl
call fcn.00491c41
lea eax, [ebp - 0x119]
mov byte [ebp - 0x119], bl
call fcn.00491c41
mov eax, dword [ebp - 0x12c]
jmp 0x49183a
push dword [ebp - 0x130]
lea esi, [ebp - 0x2c]
call fcn.00403350
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x134]
mov ecx, esi
add edi, 0x2c
call fcn.0040dea7
push 1
xor edi, edi
mov byte [ebp - 4], 3
call fcn.0040412d
mov esi, dword [ebp - 0x130]
push esi
call fcn.005181eb
pop ecx
lea eax, [esi + eax*2 + 2]
mov dword [ebp - 0x130], eax
cmp word [eax], bx
jne 0x4917fa
mov esi, dword [ebp - 0x134]
cmp dword [ebp - 0x12c], ebx
je 0x49185f
push dword [ebp - 0x12c]
call fcn.00515779
pop ecx
mov eax, esi
call fcn.00523a81
ret 8
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je case.0x4916a8.0
mov edx, dword [ebp - 0x12c]
mov ecx, ebx
mov dword [ebp - 0x12c], ecx
mov ecx, dword [ebp - 0x128]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x124]
mov dword [eax + 8], ecx
jmp case.0x4916a8.0
mov edi, dword [ebp - 0x128]
sub edi, dword [ebp - 0x12c]
cmp edi, 4
je 0x4918ef
lea eax, [ebp - 0x1e0]
push eax
call fcn.00403689
mov esi, eax
push str.Invalid_DWORD_size:
push esi
mov byte [ebp - 4], 8
call fcn.00405d65
pop ecx
pop ecx
push edi
push esi
call fcn.0041058a
lea eax, [ebp - 0x48]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 9
push 0x301
mov ecx, str.srcwindows_registry.cpp
lea eax, [ebp - 0x48]
call fcn.004025bc
push 4
push dword [ebp - 0x12c]
lea eax, [esi + 4]
push eax
call fcn.00517c70
add esp, 0xc
cmp dword [ebp - 0x138], 5
jne case.0x4916a8.0
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esi + 4], eax
jmp case.0x4916a8.0
mov edi, dword [ebp - 0x128]
sub edi, dword [ebp - 0x12c]
cmp edi, 8
je 0x491979
lea eax, [ebp - 0x118]
push eax
call fcn.00403689
mov esi, eax
push str.Invalid_QWORD_size:
push esi
mov byte [ebp - 4], 0xa
call fcn.00405d65
pop ecx
pop ecx
push edi
push esi
call fcn.0041058a
lea eax, [ebp - 0x64]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 0xb
push 0x30d
mov ecx, str.srcwindows_registry.cpp
lea eax, [ebp - 0x64]
jmp 0x4918ea
push 8
push dword [ebp - 0x12c]
push ecx
jmp 0x491759
lea eax, [ebp - 0x278]
push eax
call fcn.00403689
mov esi, eax
push str.Invalid_registry_value_type
push esi
mov byte [ebp - 4], 0xc
call fcn.00405d65
pop ecx
pop ecx
push dword [ebp - 0x138]
push esi
call fcn.0041058a
lea eax, [ebp - 0x80]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 0xd
push 0x312
mov ecx, str.srcwindows_registry.cpp
lea eax, [ebp - 0x80]
jmp 0x4918ea