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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x710
mov eax, dword [0x43b4b0]
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.00406f90
mov ebx, 0x104
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_wcsnlen]
push eax
push edi
call fcn.00404cb4
add esp, 0x10
push edi
lea ecx, [ebp - 0x670]
call fcn.00406f90
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.0040663c
push eax
lea ecx, [ebp - 0x670]
call fcn.0040684c
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x6b0]
push eax
lea ecx, [ebp - 0x670]
mov dword [ebp - 0x6b0], 0x5c
call fcn.0040663c
push eax
push esi
lea ecx, [ebp - 0x670]
call fcn.0040684c
push ecx
mov dword [ebp - 0x6b4], esp
lea eax, [ebp - 0x6b5]
mov dword [ebp - 0x6b4], esp
push eax
lea ecx, [ebp - 0x710]
call fcn.0042af59
mov eax, dword [ebp + 0x10]
cmp eax, esi
jle 0x407b78
mov edi, dword [ebp - 0x6ac]
add edi, 8
mov dword [ebp - 0x6ac], eax
push dword [edi - 8]
lea ecx, [ebp - 0x654]
call fcn.00406f90
push 8
call fcn.0042dee0
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.0040781d
push esi
push 1
lea ecx, [ebp - 0x654]
mov dword [eax], ebx
call fcn.004066c8
add edi, 0xc
dec dword [ebp - 0x6ac]
jne 0x407b21
xor edi, edi
inc edi
mov ebx, 0x104
push 0xf003f
push dword [0x437348]
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.00401622
test eax, eax
jne 0x408064
push esi
push esi
push 0x2001f
push esi
push esi
push dword [0x43734c]
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.004015ba
test eax, eax
jne 0x408057
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 0x407ed4
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.00406f3e
push dword [0x437348]
lea ecx, [ebp - 0x654]
call fcn.00406f90
push dword [0x43734c]
lea ecx, [ebp - 0x638]
call fcn.00406f90
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x654]
call fcn.00406db2
push esi
push edi
lea ecx, [ebp - 0x638]
call fcn.004066c8
push 0x5c
push edi
lea ecx, [ebp - 0x654]
call fcn.00406cb3
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x654]
call fcn.00406db2
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x6bc]
push eax
lea ecx, [ebp - 0x710]
call fcn.00406efd
mov eax, dword [ebp - 0x6bc]
cmp eax, dword [ebp - 0x70c]
je 0x407d1b
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x6e8]
call fcn.004079cc
jmp 0x407ea9
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 0x407d42
lea eax, [ebp - 0x654]
push 0x20019
push eax
push SysReAllocString
lea ecx, [ebp - 0x700]
call fcn.00401622
test eax, eax
jne 0x407e9e
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.004043d1
test eax, eax
jne 0x407e9e
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.00404cb4
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.00406f3e
push 6
push esi
push str.res:__
lea ecx, [ebp - 0x638]
call fcn.0040659d
test eax, eax
jne 0x407e91
push 6
push esi
lea ecx, [ebp - 0x638]
call fcn.0040684c
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x6b4]
push eax
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x6b4], 0x2f
call fcn.0040663c
mov ecx, dword [ebp - 0x628]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x638]
call fcn.0040684c
cmp dword [ebp - 0x624], 8
mov eax, dword [ebp - 0x638]
jae 0x407e34
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 0x407e91
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00404cb4
cmp dword [ebp - 0x65c], 8
mov eax, dword [ebp - 0x670]
pop ecx
pop ecx
jae 0x407e6b
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 0x407e91
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x6e8]
call fcn.004079cc
push esi
push edi
lea ecx, [ebp - 0x638]
call fcn.004066c8
lea ecx, [ebp - 0x700]
call fcn.0040159f
inc dword [ebp - 0x6ac]
push esi
push edi
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x6b0], ebx
call fcn.004066c8
push esi
push edi
lea ecx, [ebp - 0x68c]
call fcn.004066c8
jmp 0x407c21
mov ebx, dword [ebp - 0x6e8]
jmp 0x407ef7
cmp dword [ebx + 0x14], 8
jb 0x407ee6
mov eax, dword [ebx]
jmp 0x407ee8
mov eax, ebx
push eax
lea ecx, [ebp - 0x6cc]
call fcn.0040224f
add ebx, 0x1c
cmp ebx, dword [ebp - 0x6e4]
jne 0x407edc
mov ecx, dword [ebp - 0x70c]
mov eax, dword [ecx]
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6bc], ecx
cmp eax, ecx
je 0x408057
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 0x407f3b
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.004015ba
test eax, eax
jne 0x408029
push str.res:__
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x624], 7
mov dword [ebp - 0x628], esi
mov word [ebp - 0x638], ax
call fcn.00406f3e
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x6a8]
push eax
lea ecx, [ebp - 0x638]
call fcn.00406db2
push 0x2f
push edi
lea ecx, [ebp - 0x638]
call fcn.00406cb3
push dword [ebx]
lea ecx, [ebp - 0x654]
call fcn.00406f90
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x638]
call fcn.00406db2
push esi
push edi
lea ecx, [ebp - 0x654]
call fcn.004066c8
cmp dword [ebp - 0x624], 8
mov eax, dword [ebp - 0x638]
jae 0x407fe6
lea eax, [ebp - 0x638]
push edi
push eax
push esi
lea ecx, [ebp - 0x6d8]
call fcn.00401671
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.004066c8
jmp 0x40802f
mov dword [ebp - 0x6c0], edi
lea ecx, [ebp - 0x6ac]
call fcn.0042ae19
lea ecx, [ebp - 0x6d8]
call fcn.0040159f
mov eax, dword [ebp - 0x6ac]
cmp eax, dword [ebp - 0x6bc]
jne 0x407f1b
lea ecx, [ebp - 0x6cc]
call fcn.0040159f
jmp 0x40806a
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 0x40809c
push dword [eax + 0x28]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x6b0]
call fcn.0042ae19
mov eax, dword [ebp - 0x6b0]
cmp eax, ebx
jne 0x40807e
lea ecx, [ebp - 0x6f4]
call fcn.0040159f
lea ecx, [ebp - 0x6e8]
call fcn.004076d0
lea ecx, [ebp - 0x710]
call fcn.0040788c
push esi
push edi
lea ecx, [ebp - 0x670]
call fcn.004066c8
push esi
push edi
lea ecx, [ebp - 0x6a8]
call fcn.004066c8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x6c0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042dc86
leave
ret 0x10