Function at 0x477ab0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525c78
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
xor edi, edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x30]
push eax
call fcn.0046d220
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [eax]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x58]
call fcn.0041d8b0
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477b33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x477b56
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x477b4f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], edi
xor al, al
jmp 0x477f6f
mov ebx, dword [ebp - 0x58]
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x2c]
push edx
push edi
push edi
push edi
push ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
je 0x477b97
mov dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x477b4f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], edi
xor al, al
jmp 0x477f6f
inc dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x2c], edi
jbe 0x477f58
jmp 0x477bb0
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x34], ecx
mov edi, ecx
test ecx, ecx
js 0x477f86
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x477bf6
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406e00
mov esi, dword [ebp - 0x10]
cmp edi, dword [esi - 8]
jg 0x477f86
mov edx, dword [ebp - 0x28]
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x34]
push ecx
push esi
push edx
mov dword [esi - 0xc], edi
push ebx
mov word [esi + edi*2], ax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004eb8eb
add esp, 8
test eax, eax
js 0x477f86
cmp eax, dword [esi - 8]
jg 0x477f86
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x477f90
lea ecx, [ebp - 0x10]
call fcn.0041e9a0
lea edx, [ebp - 0x38]
push edx
call fcn.0046df10
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x477c73
or eax, 0xffffffff
jmp 0x477c95
cmp dword [esi - 0xc], 0
jge 0x477c7e
or eax, 0xffffffff
jmp 0x477c95
push eax
push esi
call fcn.004ec277
add esp, 8
test eax, eax
jne 0x477c91
or eax, 0xffffffff
jmp 0x477c95
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
setne bl
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477cbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x477d34
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00470bd0
lea edx, [ebp - 0x3c]
push edx
call fcn.0046dfe0
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0041f6c0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x477d28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
jmp 0x477e0f
lea ecx, [ebp - 0x40]
push ecx
call fcn.0046e0b0
add esp, 4
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
test eax, eax
jne 0x477d4f
or eax, 0xffffffff
jmp 0x477d71
cmp dword [esi - 0xc], 0
jge 0x477d5a
or eax, 0xffffffff
jmp 0x477d71
push eax
push esi
call fcn.004ec277
add esp, 8
test eax, eax
jne 0x477d6d
or eax, 0xffffffff
jmp 0x477d71
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
setne bl
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x477d9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x477e34
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00471050
lea edx, [ebp - 0x44]
push edx
call fcn.0046e180
add esp, 4
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0041f6c0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x477e08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477f23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x477f23
lea ecx, [ebp - 0x48]
push ecx
call fcn.0046e250
add esp, 4
mov byte [ebp - 4], 0x14
mov eax, dword [eax]
test eax, eax
jne 0x477e4f
or eax, 0xffffffff
jmp 0x477e71
cmp dword [esi - 0xc], 0
jge 0x477e5a
or eax, 0xffffffff
jmp 0x477e71
push eax
push esi
call fcn.004ec277
add esp, 8
test eax, eax
jne 0x477e6d
or eax, 0xffffffff
jmp 0x477e71
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
setne bl
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x477e9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x477ef6
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00470e30
lea edx, [ebp - 0x4c]
push edx
call fcn.0046e320
add esp, 4
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0041f6c0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x4c]
call fcn.004064c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
jmp 0x477f1e
push 0x530e54
lea ecx, [ebp - 0x30]
call fcn.004095e0
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.0041f6c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004064c0
mov byte [ebp - 4], 0
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477f43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0x2c]
jb 0x477bb0
xor edi, edi
mov dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x477f6d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], edi
mov al, 1
mov dword [ebp - 0x54], edi
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
push 0x80070057
call fcn.00406170
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477fb0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x477fc9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
xor al, al
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