Function at 0x477de0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525e68
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.0046d040
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.0041dc50
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 0x477e63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x477e86
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x477e7f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], edi
xor al, al
jmp 0x47829f
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 0x477ec7
mov dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x477e7f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], edi
xor al, al
jmp 0x47829f
inc dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x2c], edi
jbe 0x478288
jmp 0x477ee0
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 0x4782b6
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x477f26
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406d20
mov esi, dword [ebp - 0x10]
cmp edi, dword [esi - 8]
jg 0x4782b6
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.004ebabf
add esp, 8
test eax, eax
js 0x4782b6
cmp eax, dword [esi - 8]
jg 0x4782b6
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x4782c0
lea ecx, [ebp - 0x10]
call fcn.0041ed30
lea edx, [ebp - 0x38]
push edx
call fcn.0046dd30
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x477fa3
or eax, 0xffffffff
jmp 0x477fc5
cmp dword [esi - 0xc], 0
jge 0x477fae
or eax, 0xffffffff
jmp 0x477fc5
push eax
push esi
call fcn.004ec4a7
add esp, 8
test eax, eax
jne 0x477fc1
or eax, 0xffffffff
jmp 0x477fc5
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 0x477fee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x478064
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.004709f0
lea edx, [ebp - 0x3c]
push edx
call fcn.0046de00
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0041f9a0
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 0x478058
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 0x47813f
lea ecx, [ebp - 0x40]
push ecx
call fcn.0046ded0
add esp, 4
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
test eax, eax
jne 0x47807f
or eax, 0xffffffff
jmp 0x4780a1
cmp dword [esi - 0xc], 0
jge 0x47808a
or eax, 0xffffffff
jmp 0x4780a1
push eax
push esi
call fcn.004ec4a7
add esp, 8
test eax, eax
jne 0x47809d
or eax, 0xffffffff
jmp 0x4780a1
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 0x4780ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x478164
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.00470e70
lea edx, [ebp - 0x44]
push edx
call fcn.0046dfa0
add esp, 4
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0041f9a0
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 0x478138
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 0x478253
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x478253
lea ecx, [ebp - 0x48]
push ecx
call fcn.0046e070
add esp, 4
mov byte [ebp - 4], 0x14
mov eax, dword [eax]
test eax, eax
jne 0x47817f
or eax, 0xffffffff
jmp 0x4781a1
cmp dword [esi - 0xc], 0
jge 0x47818a
or eax, 0xffffffff
jmp 0x4781a1
push eax
push esi
call fcn.004ec4a7
add esp, 8
test eax, eax
jne 0x47819d
or eax, 0xffffffff
jmp 0x4781a1
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 0x4781ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x478226
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.00470c50
lea edx, [ebp - 0x4c]
push edx
call fcn.0046e140
add esp, 4
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0041f9a0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x4c]
call fcn.00406ef0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
jmp 0x47824e
push 0x530e54
lea ecx, [ebp - 0x30]
call fcn.00409590
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.0041f9a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00406ef0
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 0x478273
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 0x477ee0
xor edi, edi
mov dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x47829d
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 0x4782e0
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 0x4782f9
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