Function at 0x415601
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420b33
mov eax, dword fs:[0]
push eax
sub esp, 0x580
mov eax, dword [0x4231e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x534], ecx
and dword [ebp - 0x54c], 0
and dword [ebp - 0x520], 0
lea eax, [ebp - 0x520]
push eax
push 0x403ba8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x415904
mov dword [ebp - 0x538], 0x100
and dword [ebp - 0x518], 0
jmp 0x415681
mov eax, dword [ebp - 0x518]
inc eax
mov dword [ebp - 0x518], eax
push dword [ebp - 0x538]
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x518]
push dword [ebp - 0x520]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4158f8
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x310]
cmp eax, 0x7b
jne 0x4158f3
push 2
pop eax
imul eax, eax, 0x25
movzx eax, word [ebp + eax - 0x310]
cmp eax, 0x7d
jne 0x4158f3
push 0x484
call fcn.0040b3d0
mov dword [ebp - 0x524], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x524], 0
je 0x415706
mov ecx, dword [ebp - 0x524]
call fcn.00413e89
mov dword [ebp - 0x528], eax
jmp 0x41570d
and dword [ebp - 0x528], 0
mov eax, dword [ebp - 0x528]
mov dword [ebp - 0x53c], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x53c]
mov dword [ebp - 0x514], eax
cmp dword [ebp - 0x514], 0
jne 0x415737
jmp 0x415674
mov dword [ebp - 0x540], 0x100
lea eax, [ebp - 0x310]
push eax
push 0x4054b4
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x510]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov eax, dword [ebp - 0x514]
mov dword [eax + 4], 8
mov eax, dword [ebp - 0x514]
mov dword [eax + 0x6c], 1
mov eax, dword [ebp - 0x514]
mov dword [eax + 0x70], 1
lea eax, [ebp - 0x310]
push eax
call fcn.0040b696
mov dword [ebp - 0x52c], eax
cmp dword [ebp - 0x52c], 0
je 0x4157d7
mov eax, dword [ebp - 0x514]
add eax, 8
push eax
push dword [ebp - 0x52c]
call dword [sym.imp.ole32.dll_CLSIDFromString]
jmp 0x415837
mov eax, dword [ebp - 0x514]
mov dword [ebp - 0x544], eax
mov eax, dword [ebp - 0x544]
mov dword [ebp - 0x51c], eax
cmp dword [ebp - 0x51c], 0
je 0x41582b
push 1
mov eax, dword [ebp - 0x51c]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x530], eax
mov ecx, dword [ebp - 0x530]
call dword [0x42486c]
mov ecx, dword [ebp - 0x51c]
call dword [ebp - 0x530]
mov dword [ebp - 0x548], eax
jmp 0x415832
and dword [ebp - 0x548], 0
jmp 0x415674
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x514]
add eax, 0x84
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x534]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x58c], eax
mov dword [ebp - 0x588], 0xffff0003
and dword [ebp - 0x578], 0
mov dword [ebp - 0x584], 0x27
mov eax, dword [ebp - 0x514]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x568], eax
mov eax, dword [ebp - 0x568]
mov dword [ebp - 0x56c], eax
mov eax, dword [ebp - 0x514]
mov dword [ebp - 0x560], eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4158ce
lea eax, [ebp - 0x310]
push eax
push 0x4054c8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x110]
mov dword [ebp - 0x574], eax
lea eax, [ebp - 0x58c]
push eax
mov ecx, dword [ebp - 0x534]
call fcn.004179ae
mov ecx, eax
call fcn.00417f0b
jmp 0x415674
push dword [ebp - 0x520]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f3a0
leave
ret 4