Function at 0x408592
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 fcn.00401946
mov ebx, 0x104
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_wcsnlen]
push eax
push edi
call fcn.00405cc9
add esp, 0x10
push edi
lea ecx, [ebp - 0x670]
call fcn.00401946
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 fcn.0040758d
push eax
lea ecx, [ebp - 0x670]
call fcn.004014cf
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x6b0]
push eax
lea ecx, [ebp - 0x670]
mov dword [ebp - 0x6b0], 0x5c
call fcn.0040758d
push eax
push esi
lea ecx, [ebp - 0x670]
call fcn.004014cf
push ecx
mov dword [ebp - 0x6b4], esp
lea eax, [ebp - 0x6b5]
mov dword [ebp - 0x6b4], esp
push eax
lea ecx, [ebp - 0x710]
call fcn.004076ba
mov eax, dword [ebp + 0x10]
cmp eax, esi
jle 0x4086d3
mov edi, dword [ebp - 0x6ac]
add edi, 8
mov dword [ebp - 0x6ac], eax
push dword [edi - 8]
lea ecx, [ebp - 0x654]
call fcn.00401946
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.00408378
push esi
push 1
lea ecx, [ebp - 0x654]
mov dword [eax], ebx
call fcn.00401486
add edi, 0xc
dec dword [ebp - 0x6ac]
jne 0x40867c
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 fcn.00402678
test eax, eax
jne 0x408bbf
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 fcn.00402610
test eax, eax
jne 0x408bb2
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 0x408a2f
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 fcn.004018eb
push dword [0x438380]
lea ecx, [ebp - 0x654]
call fcn.00401946
push dword [0x438384]
lea ecx, [ebp - 0x638]
call fcn.00401946
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x654]
call fcn.004079ff
push esi
push edi
lea ecx, [ebp - 0x638]
call fcn.00401486
push 0x5c
push edi
lea ecx, [ebp - 0x654]
call fcn.0040799c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x654]
call fcn.004079ff
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x6bc]
push eax
lea ecx, [ebp - 0x710]
call fcn.00407aa4
mov eax, dword [ebp - 0x6bc]
cmp eax, dword [ebp - 0x70c]
je 0x408876
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x6e8]
call fcn.00408527
jmp 0x408a04
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 0x40889d
lea eax, [ebp - 0x654]
push 0x20019
push eax
push SysReAllocString
lea ecx, [ebp - 0x700]
call fcn.00402678
test eax, eax
jne 0x4089f9
lea eax, [ebp - 0x6b4]
push eax
lea eax, [ebp - 0x61c]
push eax
push esi
lea ecx, [ebp - 0x700]
mov dword [ebp - 0x6b4], ebx
call fcn.004053e6
test eax, eax
jne 0x4089f9
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.00405cc9
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 fcn.004018eb
push 6
push esi
push str.res:__
lea ecx, [ebp - 0x638]
call fcn.004074ee
test eax, eax
jne 0x4089ec
push 6
push esi
lea ecx, [ebp - 0x638]
call fcn.004014cf
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x6b4]
push eax
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x6b4], 0x2f
call fcn.0040758d
mov ecx, dword [ebp - 0x628]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x638]
call fcn.004014cf
cmp dword [ebp - 0x624], 8
mov eax, dword [ebp - 0x638]
jae 0x40898f
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 0x4089ec
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00405cc9
cmp dword [ebp - 0x65c], 8
mov eax, dword [ebp - 0x670]
pop ecx
pop ecx
jae 0x4089c6
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 0x4089ec
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x6e8]
call fcn.00408527
push esi
push edi
lea ecx, [ebp - 0x638]
call fcn.00401486
lea ecx, [ebp - 0x700]
call fcn.004025f5
inc dword [ebp - 0x6ac]
push esi
push edi
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x6b0], ebx
call fcn.00401486
push esi
push edi
lea ecx, [ebp - 0x68c]
call fcn.00401486
jmp 0x40877c
mov ebx, dword [ebp - 0x6e8]
jmp 0x408a52
cmp dword [ebx + 0x14], 8
jb 0x408a41
mov eax, dword [ebx]
jmp 0x408a43
mov eax, ebx
push eax
lea ecx, [ebp - 0x6cc]
call fcn.004032a5
add ebx, 0x1c
cmp ebx, dword [ebp - 0x6e4]
jne 0x408a37
mov ecx, dword [ebp - 0x70c]
mov eax, dword [ecx]
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6bc], ecx
cmp eax, ecx
je 0x408bb2
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 0x408a96
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 fcn.00402610
test eax, eax
jne 0x408b84
push str.res:__
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x624], 7
mov dword [ebp - 0x628], esi
mov word [ebp - 0x638], ax
call fcn.004018eb
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x6a8]
push eax
lea ecx, [ebp - 0x638]
call fcn.004079ff
push 0x2f
push edi
lea ecx, [ebp - 0x638]
call fcn.0040799c
push dword [ebx]
lea ecx, [ebp - 0x654]
call fcn.00401946
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x638]
call fcn.004079ff
push esi
push edi
lea ecx, [ebp - 0x654]
call fcn.00401486
cmp dword [ebp - 0x624], 8
mov eax, dword [ebp - 0x638]
jae 0x408b41
lea eax, [ebp - 0x638]
push edi
push eax
push esi
lea ecx, [ebp - 0x6d8]
call fcn.004026c7
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 fcn.00401486
jmp 0x408b8a
mov dword [ebp - 0x6c0], edi
lea ecx, [ebp - 0x6ac]
call fcn.0042b9f5
lea ecx, [ebp - 0x6d8]
call fcn.004025f5
mov eax, dword [ebp - 0x6ac]
cmp eax, dword [ebp - 0x6bc]
jne 0x408a76
lea ecx, [ebp - 0x6cc]
call fcn.004025f5
jmp 0x408bc5
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 0x408bf7
push dword [eax + 0x28]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x6b0]
call fcn.0042b9f5
mov eax, dword [ebp - 0x6b0]
cmp eax, ebx
jne 0x408bd9
lea ecx, [ebp - 0x6f4]
call fcn.004025f5
lea ecx, [ebp - 0x6e8]
call fcn.0040822b
lea ecx, [ebp - 0x710]
call fcn.004083e7
push esi
push edi
lea ecx, [ebp - 0x670]
call fcn.00401486
push esi
push edi
lea ecx, [ebp - 0x6a8]
call fcn.00401486
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x6c0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e7ae
leave
ret 0x10