Function at 0x1004519
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x100700c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x424]
mov dword [ebp - 0x428], esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x42c], esi
call fcn.010023ea
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or eax, 0x2001f
push eax
push esi
push 0x1001260
mov ebx, 0x80000002
push ebx
call edi
cmp eax, esi
je 0x10045a2
cmp eax, 2
jne 0x1004588
push 0x1001fac
call fcn.01002a73
xor eax, eax
pop ecx
inc eax
jmp 0x100489e
push eax
push 0x1001260
push 0x1001f74
call fcn.01002a73
add esp, 0xc
xor eax, eax
jmp 0x100489e
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x418]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], eax
call fcn.010034c6
test eax, eax
je 0x1004878
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x418], esi
call fcn.010023ea
or eax, 0x2001f
push eax
push esi
push 0x1001cc8
push ebx
call edi
cmp eax, esi
je 0x100463a
cmp eax, 2
jne 0x1004622
lea ecx, [ebp - 0x428]
cmp dword [ebp - 0x428], ecx
je 0x1004622
push 0x1001cc8
push 0x1001f38
call fcn.01002a73
pop ecx
pop ecx
jmp 0x1004878
push eax
push 0x1001cc8
push 0x1001f04
call fcn.01002a73
add esp, 0xc
jmp 0x1004878
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x418]
mov edi, 0x104
mov dword [ebp - 0x420], edi
call ebx
mov dword [ebp - 0x41c], 1
jmp 0x10046e9
lea eax, [ebp - 0x20c]
push 0x1001ef4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10046bd
push dword [ebp + 8]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call fcn.010038d5
test eax, eax
jne 0x10046bd
lea eax, [ebp - 0x20c]
push eax
push 0x1001ec4
call fcn.01002a73
pop ecx
pop ecx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], edi
push dword [ebp - 0x418]
call ebx
inc dword [ebp - 0x41c]
cmp eax, esi
je 0x1004672
cmp eax, 0x103
je 0x1004708
push eax
push dword [ebp - 0x41c]
push 0x1001e70
call fcn.01002a73
add esp, 0xc
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1001cc8
push edi
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x418], esi
call fcn.01002275
test eax, eax
jge 0x100473f
push 0x1001cc8
push 0x1001e40
jmp 0x1004616
push 0x1001e30
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.010028f6
test eax, eax
jge 0x1004766
lea eax, [ebp - 0x414]
push eax
push 0x1001dfc
jmp 0x1004616
lea eax, [ebp - 0x418]
push eax
call fcn.010023ea
or eax, 0x2001f
push eax
push esi
lea eax, [ebp - 0x414]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x10047b1
cmp eax, 2
jne 0x10047a4
push 0x1001dd8
call fcn.01002a73
pop ecx
jmp 0x100486e
push eax
lea eax, [ebp - 0x414]
push eax
jmp 0x1004628
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x418]
mov dword [ebp - 0x420], edi
call ebx
mov dword [ebp - 0x41c], 1
jmp 0x100483d
push dword [ebp + 8]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call fcn.010038d5
test eax, eax
jne 0x1004811
lea eax, [ebp - 0x20c]
push eax
push 0x1001ec4
call fcn.01002a73
pop ecx
pop ecx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], edi
push dword [ebp - 0x418]
call ebx
inc dword [ebp - 0x41c]
cmp eax, esi
je 0x10047de
cmp eax, 0x103
je 0x100485c
push eax
push dword [ebp - 0x41c]
push 0x1001d88
call fcn.01002a73
add esp, 0xc
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x42c], 1
cmp dword [ebp - 0x418], esi
je 0x100488c
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x428]
push eax
call fcn.0100287a
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01005b2e
leave
ret 4