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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420c80
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x4231e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c8], ecx
and dword [ebp - 0x558], 0
mov eax, dword [ebp - 0x4c8]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x50c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp - 0x4bc]
cmp dword [eax + 0x78], 0
jne 0x416d4e
mov eax, dword [ebp - 0x4bc]
cmp dword [eax + 4], 1
jne 0x416cbd
push 0
mov eax, dword [ebp - 0x50c]
push dword [eax + 0x70]
mov ecx, dword [ebp - 0x4bc]
call fcn.00415010
mov dword [ebp - 0x4cc], eax
jmp 0x416d3e
mov eax, dword [ebp - 0x4bc]
add eax, 0x78
push eax
mov eax, dword [ebp - 0x4bc]
add eax, 0x7c
push eax
mov ecx, dword [ebp - 0x4c8]
call fcn.00414899
mov dword [ebp - 0x4cc], eax
cmp dword [ebp - 0x4cc], 0
jge 0x416d3e
lea ecx, [ebp - 0x4d4]
call fcn.0041de44
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x4bc]
add ecx, 0x7c
call fcn.0040b3f4
push eax
push 0x405508
lea eax, [ebp - 0x4d4]
push eax
call sub.MFC42u.dll_CString::Format
add esp, 0xc
push dword [ebp - 0x4cc]
lea eax, [ebp - 0x4d4]
push eax
call fcn.0041d91d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4d4]
call sub.MFC42u.dll_CString::CString
cmp dword [ebp - 0x4cc], 0
jge 0x416d4e
xor eax, eax
jmp 0x417395
mov dword [ebp - 0x54c], 8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x548], eax
lea eax, [ebp - 0x54c]
push eax
mov ecx, dword [ebp - 0x4c8]
call fcn.004179ae
mov ecx, eax
call fcn.004178fa
mov dword [ebp - 0x54c], 8
mov dword [ebp - 0x540], 0x10
mov eax, dword [ebp - 0x544]
or eax, 0x10
mov dword [ebp - 0x544], eax
lea eax, [ebp - 0x54c]
push eax
mov ecx, dword [ebp - 0x4c8]
call fcn.004179ae
mov ecx, eax
call fcn.00419230
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x554], eax
mov dword [ebp - 0x550], 0xffff0003
mov dword [ebp - 0x54c], 0x27
mov dword [ebp - 0x530], 0x10
mov eax, dword [ebp - 0x530]
mov dword [ebp - 0x534], eax
and dword [ebp - 0x4c4], 0
mov dword [ebp - 0x4e4], 1
and dword [ebp - 0x4d8], 0
and dword [ebp - 0x4dc], 0
lea eax, [ebp - 0x4e0]
push eax
push 0x401cec
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41738f
lea eax, [ebp - 0x4c4]
push eax
push 0x409e5c
mov eax, dword [ebp - 0x4bc]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [eax]
push dword [ecx + 0x78]
mov eax, dword [eax]
mov dword [ebp - 0x4e8], eax
mov ecx, dword [ebp - 0x4e8]
call dword [0x42486c]
call dword [ebp - 0x4e8]
test eax, eax
jge 0x416e72
and dword [ebp - 0x4c4], 0
push 0xc0
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x4b8], eax
cmp dword [ebp - 0x4b8], 0
jne 0x416e99
and dword [ebp - 0x4e4], 0
jmp 0x4172ed
and dword [ebp - 0x4b4], 0
jmp 0x416eaf
mov eax, dword [ebp - 0x4b4]
inc eax
mov dword [ebp - 0x4b4], eax
cmp dword [ebp - 0x4b4], 0x10
jae 0x416ef2
push 0x10
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
imul ecx, dword [ebp - 0x4b4], 0xc
mov edx, dword [ebp - 0x4b8]
mov dword [edx + ecx], eax
imul eax, dword [ebp - 0x4b4], 0xc
mov ecx, dword [ebp - 0x4b8]
cmp dword [ecx + eax], 0
jne 0x416ef0
and dword [ebp - 0x4e4], 0
jmp 0x4172ed
jmp 0x416ea2
xor eax, eax
inc eax
je 0x4172ed
and dword [ebp - 0x4d0], 0
and dword [ebp - 0x4b4], 0
cmp dword [ebp - 0x4dc], 0
jne 0x416fce
cmp dword [ebp - 0x4b4], 0x10
jae 0x416fce
push 0x50
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x4d8]
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x416fb2
lea eax, [ebp - 0xb0]
push eax
call fcn.0040b696
mov dword [ebp - 0x4ec], eax
cmp dword [ebp - 0x4ec], 0
je 0x416fb0
lfence
imul eax, dword [ebp - 0x4b4], 0xc
mov ecx, dword [ebp - 0x4b8]
push dword [ecx + eax]
push dword [ebp - 0x4ec]
call dword [sym.imp.ole32.dll_CLSIDFromString]
imul eax, dword [ebp - 0x4b4], 0xc
mov ecx, dword [ebp - 0x4b8]
and dword [ecx + eax + 4], 0
imul eax, dword [ebp - 0x4b4], 0xc
mov ecx, dword [ebp - 0x4b8]
mov dword [ecx + eax + 8], 0x80004005
mov eax, dword [ebp - 0x4b4]
inc eax
mov dword [ebp - 0x4b4], eax
jmp 0x416fbc
mov dword [ebp - 0x4dc], 1
mov eax, dword [ebp - 0x4d8]
inc eax
mov dword [ebp - 0x4d8], eax
jmp 0x416f09
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x4d0], eax
cmp dword [ebp - 0x4c4], 0
je 0x41701d
push dword [ebp - 0x4b8]
push dword [ebp - 0x4d0]
mov eax, dword [ebp - 0x4c4]
mov eax, dword [eax]
push dword [ebp - 0x4c4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x4f0], eax
mov ecx, dword [ebp - 0x4f0]
call dword [0x42486c]
call dword [ebp - 0x4f0]
jmp 0x4170aa
and dword [ebp - 0x4b4], 0
jmp 0x417033
mov eax, dword [ebp - 0x4b4]
inc eax
mov dword [ebp - 0x4b4], eax
mov eax, dword [ebp - 0x4b4]
cmp eax, dword [ebp - 0x4d0]
jae 0x4170aa
lfence
imul eax, dword [ebp - 0x4b4], 0xc
mov ecx, dword [ebp - 0x4b8]
lea eax, [ecx + eax + 4]
push eax
imul eax, dword [ebp - 0x4b4], 0xc
mov ecx, dword [ebp - 0x4b8]
push dword [ecx + eax]
mov eax, dword [ebp - 0x4bc]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [eax]
push dword [ecx + 0x78]
mov eax, dword [eax]
mov dword [ebp - 0x4f4], eax
mov ecx, dword [ebp - 0x4f4]
call dword [0x42486c]
call dword [ebp - 0x4f4]
imul ecx, dword [ebp - 0x4b4], 0xc
mov edx, dword [ebp - 0x4b8]
mov dword [edx + ecx + 8], eax
jmp 0x417026
and dword [ebp - 0x4b4], 0
jmp 0x4170c0
mov eax, dword [ebp - 0x4b4]
inc eax
mov dword [ebp - 0x4b4], eax
mov eax, dword [ebp - 0x4b4]
cmp eax, dword [ebp - 0x4d0]
jae 0x4172dd
imul eax, dword [ebp - 0x4b4], 0xc
mov ecx, dword [ebp - 0x4b8]
cmp dword [ecx + eax + 8], 0
jl 0x4172d8
lfence
imul eax, dword [ebp - 0x4b4], 0xc
mov ecx, dword [ebp - 0x4b8]
mov eax, dword [ecx + eax + 4]
imul ecx, dword [ebp - 0x4b4], 0xc
mov edx, dword [ebp - 0x4b8]
mov eax, dword [eax]
push dword [edx + ecx + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x4f8], eax
mov ecx, dword [ebp - 0x4f8]
call dword [0x42486c]
call dword [ebp - 0x4f8]
push 0x100
lea eax, [ebp - 0x4b0]
push eax
imul eax, dword [ebp - 0x4b4], 0xc
mov ecx, dword [ebp - 0x4b8]
push dword [ecx + eax]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x4b0]
push eax
call fcn.0040b696
mov dword [ebp - 0x4fc], eax
cmp dword [ebp - 0x4fc], 0
jne 0x41716e
jmp 0x4170b3
push dword [ebp - 0x4fc]
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x510], 0x200
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x4172d8
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x2b0]
test eax, eax
jne 0x4171e2
lea eax, [ebp - 0xb0]
push eax
push 0x405498
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x484
call fcn.0040b3d0
mov dword [ebp - 0x500], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x500], 0
je 0x417215
mov ecx, dword [ebp - 0x500]
call fcn.00413e89
mov dword [ebp - 0x504], eax
jmp 0x41721c
and dword [ebp - 0x504], 0
mov eax, dword [ebp - 0x504]
mov dword [ebp - 0x514], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x514]
mov dword [ebp - 0x4c0], eax
mov eax, dword [ebp - 0x4c0]
mov dword [eax + 4], 4
imul eax, dword [ebp - 0x4b4], 0xc
mov ecx, dword [ebp - 0x4b8]
mov edi, dword [ebp - 0x4c0]
add edi, 8
mov esi, dword [ecx + eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 2
pop eax
imul eax, eax, 0
xor ecx, ecx
mov edx, dword [ebp - 0x4c0]
mov word [edx + eax + 0x18], cx
mov eax, dword [ebp - 0x4c0]
mov dword [eax + 0x6c], 0x10
mov eax, dword [ebp - 0x4c0]
mov dword [eax + 0x70], 0x10
xor eax, eax
mov ecx, dword [ebp - 0x4c0]
mov word [ecx + 0x68], ax
xor eax, eax
mov ecx, dword [ebp - 0x4c0]
mov word [ecx + 0x68], ax
mov eax, dword [ebp - 0x4c0]
mov dword [ebp - 0x528], eax
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x53c], eax
lea eax, [ebp - 0x554]
push eax
mov ecx, dword [ebp - 0x4c8]
call fcn.004179ae
mov ecx, eax
call fcn.00417f0b
jmp 0x4170b3
cmp dword [ebp - 0x4dc], 0
je 0x4172e8
jmp 0x4172ed
jmp 0x416ef2
cmp dword [ebp - 0x4b8], 0
je 0x417351
and dword [ebp - 0x4b4], 0
jmp 0x41730c
mov eax, dword [ebp - 0x4b4]
inc eax
mov dword [ebp - 0x4b4], eax
cmp dword [ebp - 0x4b4], 0x10
jae 0x417344
imul eax, dword [ebp - 0x4b4], 0xc
mov ecx, dword [ebp - 0x4b8]
cmp dword [ecx + eax], 0
je 0x417342
lfence
imul eax, dword [ebp - 0x4b4], 0xc
mov ecx, dword [ebp - 0x4b8]
push dword [ecx + eax]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x4172ff
push dword [ebp - 0x4b8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x4c4], 0
je 0x417383
mov eax, dword [ebp - 0x4c4]
mov eax, dword [eax]
push dword [ebp - 0x4c4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x508], eax
mov ecx, dword [ebp - 0x508]
call dword [0x42486c]
call dword [ebp - 0x508]
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x4e4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f3a0
leave
ret 4