Function at 0x40f99f
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 [0x44d948]
xor eax, ebp
mov dword [ebp + 0x82c], eax
push 0xac
mov eax, 0x4398cf
call fcn.0041f00d
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.00404378
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp - 0xb8]
call fcn.004230c8
pop ecx
mov dword [ebp - 0x10], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb4]
cmp dword [ebp - 0xb8], eax
je 0x40fa4c
push dword [ebp - 0xb8]
call fcn.00421538
pop ecx
cmp dword [ebp - 0x10], edi
jne 0x40fbc9
push ebx
call fcn.0040f91a
pop ecx
cmp esi, edi
je 0x40fbc9
push esi
call fcn.0041f168
pop ecx
test eax, eax
jbe 0x40fbc9
push 0x4413ac
lea ecx, [ebp - 0x34]
call fcn.004062e4
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push esi
push eax
lea eax, [ebp]
push eax
call fcn.00406973
add esp, 0xc
mov byte [ebp - 4], 3
push edi
push ebx
lea ecx, [ebp - 0x34]
call fcn.004048ea
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 0x40fb9b
push 0x7fe
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.00420d30
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x43e49c
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fb70
cmp dword [ebp - 0x18], ebx
jne 0x40fb70
cmp dword [ebp - 0x10], edi
jbe 0x40fb70
lea esi, [ebp + 0x1c]
cmp word [ebp + 0x1c], di
je 0x40fb70
movzx eax, word [ebp + 0x1c]
cmp ax, 0x20
jne 0x40fb2d
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x40fb1d
movzx eax, word [esi]
cmp ax, di
je 0x40fb70
xor ecx, ecx
cmp ax, 0x22
jne 0x40fb41
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.0041e8d6
pop ecx
pop ecx
cmp eax, edi
je 0x40fb5e
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40fb6a
lea eax, [ebp + 4]
push ebx
push edi
push eax
push esi
jmp 0x40fb84
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40fb7c
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 0x40fbbb
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40fba7
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.004048ea
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.0041effe
add ebp, 0x830
leave
ret