Function at 0x4765dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
push 0x4d3c8c
mov dword [ebp - 0x48], eax
call fcn.00405113
pop ecx
push eax
push 0
push 0x4d3c8c
mov ecx, ebx
call fcn.00404521
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
jne 0x476627
xor eax, eax
jmp 0x476816
and dword [ebp - 0xc], 0
xor ecx, ecx
push eax
push ecx
mov word [ebp - 0x1c], cx
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
call fcn.00405a06
and dword [ebp - 0x24], 0
xor eax, eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x44]
push 0xffffffffffffffff
inc eax
push eax
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 7
call fcn.00405a06
and dword [ebp - 0x3c], 0
push 8
pop ebx
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push str.HKEY_CLASSES_ROOT
push eax
call fcn.0048fb94
pop ecx
pop ecx
test eax, eax
je 0x476745
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push str.HKCR
push eax
call fcn.0048fb94
pop ecx
pop ecx
test eax, eax
je 0x476745
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push str.HKEY_CURRENT_USER
push eax
call fcn.0048fb94
pop ecx
pop ecx
test eax, eax
je 0x47673e
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push str.HKCU
push eax
call fcn.0048fb94
pop ecx
pop ecx
test eax, eax
je 0x47673e
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push str.HKEY_LOCAL_MACHINE
push eax
call fcn.0048fb94
pop ecx
pop ecx
test eax, eax
je 0x476737
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push str.HKLM
push eax
call fcn.0048fb94
pop ecx
pop ecx
test eax, eax
je 0x476737
cmp dword [ebp - 8], ebx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push str.HKEY_USERS
push eax
call fcn.0048fb94
pop ecx
pop ecx
test eax, eax
jne 0x476772
mov ecx, reloc.WS2_32.dll_closesocket
jmp 0x47674a
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x47674a
mov ecx, SysReAllocStringLen
jmp 0x47674a
mov ecx, SysReAllocStringLen
cmp dword [ebp - 0x24], 0
jne 0x476755
mov dword [ebp - 0x3c], ecx
jmp 0x47676e
cmp dword [ebp - 0x20], ebx
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x476779
xor ebx, ebx
jmp 0x4767fc
xor edx, edx
mov ebx, edx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x38], edx
cmp dword [esi + 0x10], edx
jne 0x476790
mov esi, edx
jmp 0x476798
cmp dword [esi + 0x14], 8
jb 0x476798
mov esi, dword [esi]
lea eax, [ebp - 0x38]
push eax
push edx
lea eax, [ebp - 0x40]
push eax
push edx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4767fc
push eax
mov eax, dword [ebp - 0x38]
add eax, 0x10
push eax
mov ecx, edi
call fcn.0042419b
add dword [ebp - 0x38], 2
cmp dword [edi + 0x14], 0x10
jb 0x4767cb
mov eax, dword [edi]
jmp 0x4767cd
mov eax, edi
lea ecx, [ebp - 0x38]
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4767fc
push eax
push dword [ebp - 0x38]
mov ecx, edi
call fcn.0042419b
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
xor ebx, ebx
mov dword [ecx], eax
inc ebx
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00405ac5
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00405ac5
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret 0x10