Function at 0x478320
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc158
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x52de08]
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.0046dbe0
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.0040b7a0
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 0x4783a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x4783c6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x4783bf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], edi
xor al, al
jmp 0x4787df
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 0x478407
mov dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x4783bf
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], edi
xor al, al
jmp 0x4787df
inc dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x2c], edi
jbe 0x4787c8
jmp 0x478420
mov eax, dword [0x52ddd4]
mov edx, dword [eax + 0xc]
mov ecx, 0x52ddd4
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 0x4787f6
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x478466
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406e80
mov esi, dword [ebp - 0x10]
cmp edi, dword [esi - 8]
jg 0x4787f6
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.004ab44b
add esp, 8
test eax, eax
js 0x4787f6
cmp eax, dword [esi - 8]
jg 0x4787f6
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x478800
lea ecx, [ebp - 0x10]
call fcn.00422410
lea edx, [ebp - 0x38]
push edx
call fcn.0046e8d0
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x4784e3
or eax, 0xffffffff
jmp 0x478505
cmp dword [esi - 0xc], 0
jge 0x4784ee
or eax, 0xffffffff
jmp 0x478505
push eax
push esi
call fcn.004abdd7
add esp, 8
test eax, eax
jne 0x478501
or eax, 0xffffffff
jmp 0x478505
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 0x47852e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4785a4
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
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.00471200
lea edx, [ebp - 0x3c]
push edx
call fcn.0046e9a0
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.00422920
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 0x478598
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 0x47867f
lea ecx, [ebp - 0x40]
push ecx
call fcn.0046ea70
add esp, 4
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
test eax, eax
jne 0x4785bf
or eax, 0xffffffff
jmp 0x4785e1
cmp dword [esi - 0xc], 0
jge 0x4785ca
or eax, 0xffffffff
jmp 0x4785e1
push eax
push esi
call fcn.004abdd7
add esp, 8
test eax, eax
jne 0x4785dd
or eax, 0xffffffff
jmp 0x4785e1
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 0x47860a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4786a4
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
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.00471680
lea edx, [ebp - 0x44]
push edx
call fcn.0046eb40
add esp, 4
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.00422920
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 0x478678
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 0x478793
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x478793
lea ecx, [ebp - 0x48]
push ecx
call fcn.0046ec10
add esp, 4
mov byte [ebp - 4], 0x14
mov eax, dword [eax]
test eax, eax
jne 0x4786bf
or eax, 0xffffffff
jmp 0x4786e1
cmp dword [esi - 0xc], 0
jge 0x4786ca
or eax, 0xffffffff
jmp 0x4786e1
push eax
push esi
call fcn.004abdd7
add esp, 8
test eax, eax
jne 0x4786dd
or eax, 0xffffffff
jmp 0x4786e1
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 0x47870a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x478766
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
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.00471460
lea edx, [ebp - 0x4c]
push edx
call fcn.0046ece0
add esp, 4
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.00422920
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x4c]
call fcn.00406650
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
jmp 0x47878e
push 0x4e6ea0
lea ecx, [ebp - 0x30]
call fcn.00409830
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00422920
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00406650
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 0x4787b3
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 0x478420
xor edi, edi
mov dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x4787dd
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 0x478820
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 0x478839
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