Function at 0x4c50f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d658
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push 0x2001f
push dword [0x5d680c]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
push reloc.WS2_32.dll_accept
call fcn.0045b220
test eax, eax
mov eax, dword [ebp - 0x3c]
jne 0x4c546d
xor ebx, ebx
mov dword [ebp - 0x18], 0x104
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x4c53b7
or esi, 0xffffffff
lea esp, [esp]
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test edi, edi
js 0x4c5443
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x4c51b9
push edi
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x10]
mov edi, eax
push dword [ecx - 8]
push ecx
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x4c5443
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4c5443
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
test edi, edi
jne 0x4c544d
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
push 0x2001f
push dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
push dword [ebp - 0x3c]
call fcn.0045b220
test eax, eax
jne 0x4c5364
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4c53b7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x800
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
mov byte [ebp - 4], 3
jge 0x4c5286
push 0x800
lea ecx, [ebp - 0x14]
call fcn.0045b530
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x57d210
lea ecx, [ebp - 0x30]
call fcn.0045d730
mov ecx, dword [ebp - 0x14]
mov edi, eax
push dword [ecx - 8]
push ecx
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x4c5443
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x4c5443
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
test edi, edi
jne 0x4c5344
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4c53b7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x14]
push 0x5882a0
push eax
call fcn.0047d920
add esp, 0xc
test eax, eax
je 0x4c5324
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.0046e2c0
add esp, 8
test al, al
jne 0x4c53c1
mov edx, dword [ebp - 0x1c]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c5344
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c5364
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4c5379
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x10]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c53a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
mov dword [ebp - 0x18], 0x104
call fcn.0045adc0
mov edx, eax
test edx, edx
jne 0x4c5180
push 0x80004005
call fcn.0045a8f0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.0045a580
mov edx, dword [ebp - 0x1c]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c53ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c540d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4c541b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4c5439
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3c]
mov esi, 1
jmp 0x4c546f
push 0x80070057
call fcn.0045a8f0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], cl
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4c546a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3c]
xor esi, esi
test eax, eax
je 0x4c547a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8