Function at 0x408558
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x710
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push edi
lea ecx, [ebp - 0x6a8]
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6c0], esi
call main
mov ebx, 0x104
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_wcsnlen]
push eax
push edi
call main
add esp, 0x10
push edi
lea ecx, [ebp - 0x670]
call main
push 0xffffffffffffffff
xor edi, edi
inc edi
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x6b0]
push eax
lea ecx, [ebp - 0x670]
mov dword [ebp - 0x6b0], 0x2e
call main
push eax
lea ecx, [ebp - 0x670]
call main
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x6b0]
push eax
lea ecx, [ebp - 0x670]
mov dword [ebp - 0x6b0], 0x5c
call main
push eax
push esi
lea ecx, [ebp - 0x670]
call main
push ecx
mov dword [ebp - 0x6b4], esp
lea eax, [ebp - 0x6b5]
mov dword [ebp - 0x6b4], esp
push eax
lea ecx, [ebp - 0x710]
call main
mov eax, dword [ebp + 0x10]
cmp eax, esi
jle 0x408699
mov edi, dword [ebp - 0x6ac]
add edi, 8
mov dword [ebp - 0x6ac], eax
push dword [edi - 8]
lea ecx, [ebp - 0x654]
call main
push 8
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov eax, dword [edi - 4]
mov dword [ebx], eax
mov eax, dword [edi]
pop ecx
mov dword [ebx + 4], eax
lea eax, [ebp - 0x654]
push eax
lea ecx, [ebp - 0x710]
call fcn.0040833e
push esi
push 1
lea ecx, [ebp - 0x654]
mov dword [eax], ebx
call main
add edi, 0xc
dec dword [ebp - 0x6ac]
jne 0x408642
xor edi, edi
inc edi
mov ebx, 0x104
push 0xf003f
push dword [0x438380]
lea ecx, [ebp - 0x6f4]
push SysReAllocString
mov dword [ebp - 0x6e8], esi
mov dword [ebp - 0x6e4], esi
mov dword [ebp - 0x6e0], esi
mov dword [ebp - 0x6f4], esi
mov dword [ebp - 0x6f0], esi
mov dword [ebp - 0x6ec], esi
call main
test eax, eax
jne 0x408b85
push esi
push esi
push 0x2001f
push esi
push esi
push dword [0x438384]
lea ecx, [ebp - 0x6cc]
push dword [ebp - 0x6f4]
mov dword [ebp - 0x6cc], esi
mov dword [ebp - 0x6c8], esi
mov dword [ebp - 0x6c4], esi
call main
test eax, eax
jne 0x408b78
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x6ac], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x6b0], ebx
lea eax, [ebp - 0x6d4]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x6ac]
push dword [ebp - 0x6cc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4089f5
mov word [ebp - 0x68c], ax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x68c]
mov dword [ebp - 0x678], 7
mov dword [ebp - 0x67c], esi
call main
push dword [0x438380]
lea ecx, [ebp - 0x654]
call main
push dword [0x438384]
lea ecx, [ebp - 0x638]
call main
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x654]
call main
push esi
push edi
lea ecx, [ebp - 0x638]
call main
push 0x5c
push edi
lea ecx, [ebp - 0x654]
call main
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x654]
call main
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x6bc]
push eax
lea ecx, [ebp - 0x710]
call main
mov eax, dword [ebp - 0x6bc]
cmp eax, dword [ebp - 0x70c]
je 0x40883c
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x6e8]
call main
jmp 0x4089ca
cmp dword [ebp - 0x640], 8
mov eax, dword [ebp - 0x654]
mov dword [ebp - 0x700], esi
mov dword [ebp - 0x6fc], esi
mov dword [ebp - 0x6f8], esi
jae 0x408863
lea eax, [ebp - 0x654]
push 0x20019
push eax
push SysReAllocString
lea ecx, [ebp - 0x700]
call main
test eax, eax
jne 0x4089bf
lea eax, [ebp - 0x6b4]
push eax
lea eax, [ebp - 0x61c]
push eax
push esi
lea ecx, [ebp - 0x700]
mov dword [ebp - 0x6b4], ebx
call main
test eax, eax
jne 0x4089bf
lea eax, [ebp - 0x61c]
push ebx
push eax
call main
xor eax, eax
pop ecx
pop ecx
mov word [ebp - 0x638], ax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x624], 7
mov dword [ebp - 0x628], esi
call main
push 6
push esi
push str.res:__
lea ecx, [ebp - 0x638]
call main
test eax, eax
jne 0x4089b2
push 6
push esi
lea ecx, [ebp - 0x638]
call main
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x6b4]
push eax
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x6b4], 0x2f
call main
mov ecx, dword [ebp - 0x628]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x638]
call main
cmp dword [ebp - 0x624], 8
mov eax, dword [ebp - 0x638]
jae 0x408955
lea eax, [ebp - 0x638]
push ebx
lea ecx, [ebp - 0x414]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetLongPathNameW]
test eax, eax
je 0x4089b2
lea eax, [ebp - 0x414]
push ebx
push eax
call main
cmp dword [ebp - 0x65c], 8
mov eax, dword [ebp - 0x670]
pop ecx
pop ecx
jae 0x40898c
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.MSVCR100.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4089b2
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x6e8]
call main
push esi
push edi
lea ecx, [ebp - 0x638]
call main
lea ecx, [ebp - 0x700]
call fcn.00402601
inc dword [ebp - 0x6ac]
push esi
push edi
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x6b0], ebx
call main
push esi
push edi
lea ecx, [ebp - 0x68c]
call main
jmp 0x408742
mov ebx, dword [ebp - 0x6e8]
jmp 0x408a18
cmp dword [ebx + 0x14], 8
jb 0x408a07
mov eax, dword [ebx]
jmp 0x408a09
mov eax, ebx
push eax
lea ecx, [ebp - 0x6cc]
call main
add ebx, 0x1c
cmp ebx, dword [ebp - 0x6e4]
jne 0x4089fd
mov ecx, dword [ebp - 0x70c]
mov eax, dword [ecx]
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6bc], ecx
cmp eax, ecx
je 0x408b78
mov ebx, dword [eax + 0x28]
add eax, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x6d8], esi
mov dword [ebp - 0x6d4], esi
mov dword [ebp - 0x6d0], esi
jb 0x408a5c
mov eax, dword [eax]
push esi
push esi
push 0x2001f
push esi
push esi
push eax
push dword [ebp - 0x6cc]
lea ecx, [ebp - 0x6d8]
call main
test eax, eax
jne 0x408b4a
push str.res:__
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x624], 7
mov dword [ebp - 0x628], esi
mov word [ebp - 0x638], ax
call main
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x6a8]
push eax
lea ecx, [ebp - 0x638]
call main
push 0x2f
push edi
lea ecx, [ebp - 0x638]
call main
push dword [ebx]
lea ecx, [ebp - 0x654]
call main
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x638]
call main
push esi
push edi
lea ecx, [ebp - 0x654]
call main
cmp dword [ebp - 0x624], 8
mov eax, dword [ebp - 0x638]
jae 0x408b07
lea eax, [ebp - 0x638]
push edi
push eax
push esi
lea ecx, [ebp - 0x6d8]
call main
mov eax, dword [ebx + 4]
push 4
mov dword [ebp - 0x6b4], eax
lea eax, [ebp - 0x6b4]
push eax
push 4
push esi
push str.Contexts
push dword [ebp - 0x6d8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push edi
lea ecx, [ebp - 0x638]
call main
jmp 0x408b50
mov dword [ebp - 0x6c0], edi
lea ecx, [ebp - 0x6ac]
call fcn.00407606
lea ecx, [ebp - 0x6d8]
call fcn.00402601
mov eax, dword [ebp - 0x6ac]
cmp eax, dword [ebp - 0x6bc]
jne 0x408a3c
lea ecx, [ebp - 0x6cc]
call fcn.00402601
jmp 0x408b8b
mov dword [ebp - 0x6c0], edi
mov ecx, dword [ebp - 0x70c]
mov eax, dword [ecx]
mov dword [ebp - 0x6b0], eax
mov ebx, ecx
cmp eax, ecx
je 0x408bbd
push dword [eax + 0x28]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x6b0]
call fcn.00407606
mov eax, dword [ebp - 0x6b0]
cmp eax, ebx
jne 0x408b9f
lea ecx, [ebp - 0x6f4]
call fcn.00402601
lea ecx, [ebp - 0x6e8]
call main
lea ecx, [ebp - 0x710]
call fcn.004083ad
push esi
push edi
lea ecx, [ebp - 0x670]
call main
push esi
push edi
lea ecx, [ebp - 0x6a8]
call main
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x6c0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e764
leave
ret 0x10