Function at 0x4739f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc71a
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x473a34
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push dword [0x53ed60]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0043a420
push 0x20019
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0043b290
mov esi, dword [ebp + 8]
test eax, eax
jne 0x473b81
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov ecx, 1
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x1c], 0x104
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x473ac3
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0043b5a0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
push dword [eax - 8]
push eax
call fcn.004d9e5f
mov edx, eax
add esp, 8
test edx, edx
js 0x473c6b
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x473c6b
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
cmp byte [ebp - 0xd], cl
jne 0x473b68
mov edi, dword [esi + 4]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edi
cmp edi, dword [esi + 8]
jb 0x473b3b
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.004911c0
test al, al
je 0x473b5e
mov edx, dword [ebp - 0x20]
mov eax, dword [esi]
lea ecx, [eax + edi*4]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x473b51
push edx
call fcn.0043a420
inc dword [esi + 4]
inc ebx
mov byte [ebp - 4], 2
jmp 0x473a95
push 0x8007000e
call fcn.0043a9b0
test edi, edi
je 0x473b7a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0x20019
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push reloc.WS2_32.dll_accept
call fcn.0043b290
mov ebx, dword [ebp - 0x40]
test eax, eax
jne 0x473c8c
xor edi, edi
mov eax, dword [ebp - 0x14]
mov ecx, 1
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x1c], edi
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x473bd1
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0043b5a0
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
push dword [eax - 8]
push eax
call fcn.004d9e5f
mov edx, eax
add esp, 8
test edx, edx
js 0x473c6b
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x473c6b
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
cmp byte [ebp - 0xd], cl
jne 0x473c75
mov edi, dword [esi + 4]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edi
cmp edi, dword [esi + 8]
jb 0x473c45
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.004911c0
test al, al
je 0x473b5e
mov edx, dword [ebp - 0x24]
mov eax, dword [esi]
lea ecx, [eax + edi*4]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 4
test ecx, ecx
je 0x473c5b
push edx
call fcn.0043a420
mov edi, dword [ebp - 0x1c]
inc dword [esi + 4]
inc edi
mov byte [ebp - 4], 2
jmp 0x473ba3
push 0x80070057
call fcn.0043a9b0
test ebx, ebx
je 0x473c85
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x18]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x473caf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x473cba
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x473cdb
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4