Function at 0x408545
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.00401947
mov ebx, 0x104
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_wcsnlen]
push eax
push edi
call fcn.00405cd6
add esp, 0x10
push edi
lea ecx, [ebp - 0x670]
call fcn.00401947
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.0040754a
push eax
lea ecx, [ebp - 0x670]
call fcn.004014d0
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x6b0]
push eax
lea ecx, [ebp - 0x670]
mov dword [ebp - 0x6b0], 0x5c
call fcn.0040754a
push eax
push esi
lea ecx, [ebp - 0x670]
call fcn.004014d0
push ecx
mov dword [ebp - 0x6b4], esp
lea eax, [ebp - 0x6b5]
mov dword [ebp - 0x6b4], esp
push eax
lea ecx, [ebp - 0x710]
call fcn.00407681
mov eax, dword [ebp + 0x10]
cmp eax, esi
jle 0x408686
mov edi, dword [ebp - 0x6ac]
add edi, 8
mov dword [ebp - 0x6ac], eax
push dword [edi - 8]
lea ecx, [ebp - 0x654]
call fcn.00401947
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.0040832b
push esi
push 1
lea ecx, [ebp - 0x654]
mov dword [eax], ebx
call fcn.00401487
add edi, 0xc
dec dword [ebp - 0x6ac]
jne 0x40862f
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.00402682
test eax, eax
jne 0x408b72
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.0040261a
test eax, eax
jne 0x408b65
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 0x4089e2
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.004018ec
push dword [0x438380]
lea ecx, [ebp - 0x654]
call fcn.00401947
push dword [0x438384]
lea ecx, [ebp - 0x638]
call fcn.00401947
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x654]
call fcn.004079b2
push esi
push edi
lea ecx, [ebp - 0x638]
call fcn.00401487
push 0x5c
push edi
lea ecx, [ebp - 0x654]
call fcn.0040794f
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x654]
call fcn.004079b2
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x6bc]
push eax
lea ecx, [ebp - 0x710]
call fcn.00407a57
mov eax, dword [ebp - 0x6bc]
cmp eax, dword [ebp - 0x70c]
je 0x408829
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x6e8]
call fcn.004084da
jmp 0x4089b7
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 0x408850
lea eax, [ebp - 0x654]
push 0x20019
push eax
push SysReAllocString
lea ecx, [ebp - 0x700]
call fcn.00402682
test eax, eax
jne 0x4089ac
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.004053f3
test eax, eax
jne 0x4089ac
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.00405cd6
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.004018ec
push 6
push esi
push str.res:__
lea ecx, [ebp - 0x638]
call fcn.004074ab
test eax, eax
jne 0x40899f
push 6
push esi
lea ecx, [ebp - 0x638]
call fcn.004014d0
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x6b4]
push eax
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x6b4], 0x2f
call fcn.0040754a
mov ecx, dword [ebp - 0x628]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x638]
call fcn.004014d0
cmp dword [ebp - 0x624], 8
mov eax, dword [ebp - 0x638]
jae 0x408942
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 0x40899f
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00405cd6
cmp dword [ebp - 0x65c], 8
mov eax, dword [ebp - 0x670]
pop ecx
pop ecx
jae 0x408979
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 0x40899f
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x6e8]
call fcn.004084da
push esi
push edi
lea ecx, [ebp - 0x638]
call fcn.00401487
lea ecx, [ebp - 0x700]
call fcn.004025ff
inc dword [ebp - 0x6ac]
push esi
push edi
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x6b0], ebx
call fcn.00401487
push esi
push edi
lea ecx, [ebp - 0x68c]
call fcn.00401487
jmp 0x40872f
mov ebx, dword [ebp - 0x6e8]
jmp 0x408a05
cmp dword [ebx + 0x14], 8
jb 0x4089f4
mov eax, dword [ebx]
jmp 0x4089f6
mov eax, ebx
push eax
lea ecx, [ebp - 0x6cc]
call fcn.004032b2
add ebx, 0x1c
cmp ebx, dword [ebp - 0x6e4]
jne 0x4089ea
mov ecx, dword [ebp - 0x70c]
mov eax, dword [ecx]
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6bc], ecx
cmp eax, ecx
je 0x408b65
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 0x408a49
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.0040261a
test eax, eax
jne 0x408b37
push str.res:__
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x624], 7
mov dword [ebp - 0x628], esi
mov word [ebp - 0x638], ax
call fcn.004018ec
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x6a8]
push eax
lea ecx, [ebp - 0x638]
call fcn.004079b2
push 0x2f
push edi
lea ecx, [ebp - 0x638]
call fcn.0040794f
push dword [ebx]
lea ecx, [ebp - 0x654]
call fcn.00401947
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x638]
call fcn.004079b2
push esi
push edi
lea ecx, [ebp - 0x654]
call fcn.00401487
cmp dword [ebp - 0x624], 8
mov eax, dword [ebp - 0x638]
jae 0x408af4
lea eax, [ebp - 0x638]
push edi
push eax
push esi
lea ecx, [ebp - 0x6d8]
call fcn.004026d1
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.00401487
jmp 0x408b3d
mov dword [ebp - 0x6c0], edi
lea ecx, [ebp - 0x6ac]
call fcn.0042b9b9
lea ecx, [ebp - 0x6d8]
call fcn.004025ff
mov eax, dword [ebp - 0x6ac]
cmp eax, dword [ebp - 0x6bc]
jne 0x408a29
lea ecx, [ebp - 0x6cc]
call fcn.004025ff
jmp 0x408b78
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 0x408baa
push dword [eax + 0x28]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x6b0]
call fcn.0042b9b9
mov eax, dword [ebp - 0x6b0]
cmp eax, ebx
jne 0x408b8c
lea ecx, [ebp - 0x6f4]
call fcn.004025ff
lea ecx, [ebp - 0x6e8]
call fcn.004081de
lea ecx, [ebp - 0x710]
call fcn.0040839a
push esi
push edi
lea ecx, [ebp - 0x670]
call fcn.00401487
push esi
push edi
lea ecx, [ebp - 0x6a8]
call fcn.00401487
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x6c0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e766
leave
ret 0x10