Function at 0x40e9c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0xc0c
mov eax, dword [0x4630e0]
xor eax, esp
mov dword [esp + 0xc08], eax
cmp byte [0x464aec], 0
je 0x40eca7
cmp dword [0x464bec], 0
jl 0x40eca7
mov eax, 1
cmp dword [0x464d08], eax
jl 0x40ec85
cmp dword [0x464d0c], eax
jl 0x40ec85
cmp byte [0x464c04], 0
jne 0x40ea6b
lea eax, [esp + 0x304]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x464c04
push 0
push 0x453830
lea ecx, [esp + 0x310]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, 0x464c04
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x40ea50
mov edx, dword [str..txt]
mov cl, byte [0x45382c]
mov dword [eax], edx
mov byte [eax + 4], cl
mov edx, dword [0x464d08]
mov eax, dword [0x460004]
push ebx
push ebp
push esi
push edi
push 0
push edx
push eax
call fcn.0040a3a0
add esp, 0xc
cmp eax, dword [0x464d08]
jne 0x40ec7b
push 0x1000
push 0x464c04
call fcn.0040a330
mov ebp, eax
add esp, 8
test ebp, ebp
jl 0x40ec6d
mov esi, dword [0x464d0c]
xor ebx, ebx
test esi, esi
jle 0x40eb18
lea ebx, [ebx]
sub esi, ebx
cmp esi, 0x400
jl 0x40eacf
mov esi, 0x400
mov edx, dword [0x460004]
push esi
lea ecx, [esp + 0x61c]
push ecx
push edx
movzx edi, si
call fcn.0040a3c0
add esp, 0xc
cmp eax, edi
jne 0x40ec6d
push esi
lea eax, [esp + 0x61c]
push eax
push ebp
call fcn.0040a3f0
add esp, 0xc
cmp eax, edi
jne 0x40ec6d
add ebx, esi
mov esi, dword [0x464d0c]
cmp ebx, esi
jl 0x40eac0
push ebp
call fcn.0040a380
add esp, 4
test eax, eax
jne 0x40ec7b
lea ecx, [esp + 0x210]
push ecx
push str..htm
call fcn.0040dc90
add esp, 8
test eax, eax
je 0x40eb68
push 0xa5
call fcn.0040ab70
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc08]
xor ecx, esp
call fcn.0043b76b
add esp, 0xc0c
ret
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov ebx, eax
call esi
mov ebp, eax
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x464aec]
mov byte [esp + eax + 0x10], cl
add eax, 1
test cl, cl
jne 0x40eb80
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40eb98
sub eax, edx
lea edx, [esp + 0x10]
push 0x3f
push edx
mov esi, eax
call fcn.0043afd0
add esp, 8
test eax, eax
je 0x40ebdb
cmp byte [esp + esi + 0xf], 0x26
je 0x40ebf6
lea edi, [esp + 0x10]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40ebc6
mov ax, word [0x453824]
mov word [edi], ax
jmp 0x40ebf6
lea edi, [esp + 0x10]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40ebe2
mov cx, word [0x453820]
mov word [edi], cx
lea edx, [esp + 0xa18]
push edx
push 0x464c04
call fcn.004086b0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
mov eax, dword [0x464bec]
push eax
lea ecx, [esp + 0x428]
push str.P_d_refreshencap_s
push ecx
call esi
lea edx, [esp + 0x430]
push edx
push ebp
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x238]
push ecx
lea edx, [esp + 0x644]
push str._s__ssdx_dsdy_dvectorid_s
push edx
call esi
add esp, 0x34
push 1
lea eax, [esp + 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x40eb4f
push 0x7a
jmp 0x40eb47
cmp ebp, 0xffffffff
jle 0x40ec7b
push ebp
call fcn.0040a380
add esp, 4
push 0xb6
jmp 0x40eb47
push 0xb7
call fcn.0040ab70
add esp, 4
mov ecx, dword [esp + 0xc08]
xor ecx, esp
call fcn.0043b76b
add esp, 0xc0c
ret
push 0x95
call fcn.0040ab70
mov ecx, dword [esp + 0xc0c]
add esp, 4
xor ecx, esp
call fcn.0043b76b
add esp, 0xc0c
ret