Function at 0x40770b
Capabilities:
Create process on windows
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x82c
lea ebp, [esp - 4]
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x82c], eax
push 0xac
mov eax, 0x42b327
call fcn.00413eb5
mov ebx, dword [ebp + 0x838]
mov esi, dword [ebp + 0x83c]
xor eax, eax
mov word [ebp + 0x81c], ax
lea edi, [ebp + 0x81e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
lea eax, [ebp + 0x81c]
push eax
push str.INSTALL_TYPE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
push 3
lea eax, [ebp + 0x81c]
push eax
lea ecx, [ebp - 0xb8]
call fcn.004040ea
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp - 0xb8]
call fcn.00416801
pop ecx
mov dword [ebp - 0x10], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb4]
cmp dword [ebp - 0xb8], eax
je 0x4077b8
push dword [ebp - 0xb8]
call fcn.004162b8
pop ecx
cmp dword [ebp - 0x10], edi
jne 0x407935
push ebx
call fcn.0040339d
pop ecx
cmp esi, edi
je 0x407935
push esi
call fcn.00414010
pop ecx
test eax, eax
jbe 0x407935
push 0x42f4bc
lea ecx, [ebp - 0x34]
call fcn.00406082
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push esi
push eax
lea eax, [ebp]
push eax
call fcn.00406711
add esp, 0xc
mov byte [ebp - 4], 3
push edi
push ebx
lea ecx, [ebp - 0x34]
call fcn.00404665
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push str.Applicationsiexplore.exe_shellopencommand
push SysReAllocStringLen
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407907
push 0x7fe
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.00415ab0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x42f3cc
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4078dc
cmp dword [ebp - 0x18], ebx
jne 0x4078dc
cmp dword [ebp - 0x10], edi
jbe 0x4078dc
lea esi, [ebp + 0x1c]
cmp word [ebp + 0x1c], di
je 0x4078dc
movzx eax, word [ebp + 0x1c]
cmp ax, 0x20
jne 0x407899
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x407889
movzx eax, word [esi]
cmp ax, di
je 0x4078dc
xor ecx, ecx
cmp ax, 0x22
jne 0x4078ad
inc esi
inc esi
mov ecx, ebx
xor eax, eax
cmp ecx, edi
setne al
lea eax, [eax + eax + 0x20]
push eax
push esi
call fcn.00413666
pop ecx
pop ecx
cmp eax, edi
je 0x4078ca
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x4078d6
lea eax, [ebp + 4]
push ebx
push edi
push eax
push esi
jmp 0x4078f0
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x4078e8
lea eax, [ebp + 4]
push ebx
push edi
push eax
push str.iexplore
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407927
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x407913
lea eax, [ebp + 4]
push ebx
push edi
push eax
push str.iexplore
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
push edi
push ebx
lea ecx, [ebp]
call fcn.00404665
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x82c]
xor ecx, ebp
call fcn.00413ea6
add ebp, 0x830
leave
ret