Function at 0x4769e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4daae2
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x5176f0]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push esi
mov eax, dword [0x5176f0]
xor eax, esp
push eax
lea eax, [esp + 0x488]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x2c]
push eax
push 0x20019
push ebx
mov dword [esp + 0x49c], ebx
call fcn.00403360
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x476a65
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
jmp 0x476c26
push 0x208
lea ecx, [esp + 0x272]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x278], ax
call fcn.004b28e0
add esp, 0xc
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x48]
push edx
mov ecx, edx
lea eax, [esp + 0x54]
push eax
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push ebx
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x294]
push edx
push eax
mov dword [esp + 0x70], 0x104
mov dword [esp + 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, dword [esp + 0x28]
cmp esi, ebx
ja 0x476ae5
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
jmp 0x476c26
push 0x208
lea ecx, [esp + 0x62]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x68], ax
call fcn.004b28e0
add esp, 0xc
mov dword [esp + 0x30], ebx
cmp esi, ebx
jbe 0x476c13
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x34]
push ebx
push ebx
push ebx
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x70]
push ecx
push edx
push eax
mov dword [esp + 0x54], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00404040
mov byte [esp + 0x490], 3
cmp esi, ebx
jne 0x476bf0
lea ecx, [esp + 0x14]
call fcn.00403aa0
mov esi, eax
push esi
lea ecx, [esp + 0x18]
call fcn.00403d60
lea edx, [esi + 1]
push edx
push eax
call fcn.004b5c52
add esp, 8
push esi
lea ecx, [esp + 0x18]
call fcn.00403ea0
lea eax, [esp + 0x14]
push eax
mov esi, eax
call fcn.00470e00
push ebx
push 0x5046a0
mov ecx, esi
call fcn.00420980
cmp eax, 0xffffffff
jne 0x476bf0
push ebx
push str._proplus_
mov ecx, esi
call fcn.00420980
cmp eax, 0xffffffff
jne 0x476bf0
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00404040
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
mov byte [esp + 0x490], 4
call fcn.00470d40
lea ecx, [esp + 0x38]
call fcn.00404140
push 0x105
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.00404b70
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x490], bl
call fcn.00404140
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x28]
jb 0x476b0b
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
lea ecx, [esp + 0x18]
cmp edi, ecx
je 0x476c61
mov ecx, edi
call fcn.00420e90
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.0040d8c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x18]
call fcn.00420ae0
mov eax, edi
mov ecx, dword [esp + 0x488]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.004ae123
mov esp, ebp
pop ebp
ret