Function at 0x4a2a60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a4ea
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4a2aa4
push 0x80004005
call fcn.0045a8f0
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 [0x5d6704]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0045a3a0
push 0x20019
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045b220
mov esi, dword [ebp + 8]
test eax, eax
jne 0x4a2bf1
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 0x4a2b33
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0045b530
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.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x4a2cdb
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x4a2cdb
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 0x4a2bd8
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 0x4a2bab
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.004a4370
test al, al
je 0x4a2bce
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 0x4a2bc1
push edx
call fcn.0045a3a0
inc dword [esi + 4]
inc ebx
mov byte [ebp - 4], 2
jmp 0x4a2b05
push 0x8007000e
call fcn.0045a8f0
test edi, edi
je 0x4a2bea
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.0045b220
mov ebx, dword [ebp - 0x40]
test eax, eax
jne 0x4a2cfc
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 0x4a2c41
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0045b530
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.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x4a2cdb
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x4a2cdb
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 0x4a2ce5
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 0x4a2cb5
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.004a4370
test al, al
je 0x4a2bce
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 0x4a2ccb
push edx
call fcn.0045a3a0
mov edi, dword [ebp - 0x1c]
inc dword [esi + 4]
inc edi
mov byte [ebp - 4], 2
jmp 0x4a2c13
push 0x80070057
call fcn.0045a8f0
test ebx, ebx
je 0x4a2cf5
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 0x4a2d1f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x4a2d2a
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 0x4a2d4b
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