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

Disassembly:
sub esp, 0xc0c
mov eax, dword [0x4630b0]
xor eax, esp
mov dword [esp + 0xc08], eax
cmp byte [0x464aac], 0
je 0x40ef57
cmp dword [0x464bac], 0
jl 0x40ef57
mov eax, 1
cmp dword [0x464cc8], eax
jl 0x40ef35
cmp dword [0x464ccc], eax
jl 0x40ef35
cmp byte [0x464bc4], 0
jne 0x40ed1b
lea eax, [esp + 0x304]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x464bc4
push 0
push 0x453830
lea ecx, [esp + 0x310]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, 0x464bc4
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x40ed00
mov edx, dword [str..txt]
mov cl, byte [0x45382c]
mov dword [eax], edx
mov byte [eax + 4], cl
mov edx, dword [0x464cc8]
mov eax, dword [0x460004]
push ebx
push ebp
push esi
push edi
push 0
push edx
push eax
call fcn.0040a650
add esp, 0xc
cmp eax, dword [0x464cc8]
jne 0x40ef2b
push 0x1000
push 0x464bc4
call fcn.0040a5e0
mov ebp, eax
add esp, 8
test ebp, ebp
jl 0x40ef1d
mov esi, dword [0x464ccc]
xor ebx, ebx
test esi, esi
jle 0x40edc8
lea ebx, [ebx]
sub esi, ebx
cmp esi, 0x400
jl 0x40ed7f
mov esi, 0x400
mov edx, dword [0x460004]
push esi
lea ecx, [esp + 0x61c]
push ecx
push edx
movzx edi, si
call fcn.0040a670
add esp, 0xc
cmp eax, edi
jne 0x40ef1d
push esi
lea eax, [esp + 0x61c]
push eax
push ebp
call fcn.0040a6a0
add esp, 0xc
cmp eax, edi
jne 0x40ef1d
add ebx, esi
mov esi, dword [0x464ccc]
cmp ebx, esi
jl 0x40ed70
push ebp
call fcn.0040a630
add esp, 4
test eax, eax
jne 0x40ef2b
lea ecx, [esp + 0x210]
push ecx
push str..htm
call fcn.0040df40
add esp, 8
test eax, eax
je 0x40ee18
push 0xa5
call fcn.0040ae20
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc08]
xor ecx, esp
call fcn.0043b3fc
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 + 0x464aac]
mov byte [esp + eax + 0x10], cl
add eax, 1
test cl, cl
jne 0x40ee30
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ee48
sub eax, edx
lea edx, [esp + 0x10]
push 0x3f
push edx
mov esi, eax
call fcn.0043b5f0
add esp, 8
test eax, eax
je 0x40ee8b
cmp byte [esp + esi + 0xf], 0x26
je 0x40eea6
lea edi, [esp + 0x10]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40ee76
mov ax, word [0x453824]
mov word [edi], ax
jmp 0x40eea6
lea edi, [esp + 0x10]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40ee92
mov cx, word [0x453820]
mov word [edi], cx
lea edx, [esp + 0xa18]
push edx
push 0x464bc4
call fcn.00408960
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
mov eax, dword [0x464bac]
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 0x40edff
push 0x7a
jmp 0x40edf7
cmp ebp, 0xffffffff
jle 0x40ef2b
push ebp
call fcn.0040a630
add esp, 4
push 0xb6
jmp 0x40edf7
push 0xb7
call fcn.0040ae20
add esp, 4
mov ecx, dword [esp + 0xc08]
xor ecx, esp
call fcn.0043b3fc
add esp, 0xc0c
ret
push 0x95
call fcn.0040ae20
mov ecx, dword [esp + 0xc0c]
add esp, 4
xor ecx, esp
call fcn.0043b3fc
add esp, 0xc0c
ret