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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa9c
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.004012ae
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
test eax, eax
jg 0x40154c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
push dword [0x4030ec]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
push dword [0x4030e8]
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0xc]
sub edi, ebx
mov dword [ebp - 4], edi
and byte [ebp - 0x110], 0
lea eax, [ebp - 0x294]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
ja 0x40157c
lea eax, [ebp - 0x294]
push 0x4041b8
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
xor bl, bl
call fcn.0040124d
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
test eax, eax
je 0x4015d7
mov ecx, dword [ebp - 8]
call fcn.0040124d
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x4015d7
mov ecx, dword [ebp - 8]
call fcn.0040124d
push eax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x110]
push str._s_s
push eax
call edi
lea eax, [ebp - 0x110]
push eax
push str.Custom_File_Name:
call fcn.004010cd
add esp, 0x18
inc bl
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
ja 0x401626
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x294]
push 0x404198
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x401626
push str.Cannot_create_temp_file_name
call fcn.004010a7
mov eax, dword [esi]
pop ecx
push dword [0x4030ec]
mov ecx, esi
push 0
call dword [eax + 0xc]
jmp 0x40172e
test bl, bl
jne 0x40163d
lea eax, [ebp - 0x110]
push eax
push str.Temp_file_name:
call fcn.004010cd
pop ecx
pop ecx
mov eax, dword [0x403100]
lea ecx, [ebp - 0xa9c]
or eax, dword [0x4030fc]
or eax, dword [0x4030f4]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00401fa6
lea ecx, [ebp - 0xa9c]
call fcn.0040209a
test al, al
je 0x40171b
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jle 0x4016ad
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test al, al
je 0x4016ad
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, esi
inc ebx
call dword [eax + 0x14]
push dword [ebp - 0xc]
lea ecx, [ebp - 0xa9c]
call fcn.004020a1
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jl 0x40167e
lea ecx, [ebp - 0xa9c]
call fcn.004020b3
push ebx
lea eax, [ebp - 0x190]
push dword [ebp - 4]
push str.Size_should_be:__ld__Actual_Size_ld
push eax
call edi
lea eax, [ebp - 0x190]
push eax
call fcn.004010a7
add esp, 0x14
cmp dword [ebp - 4], ebx
jne 0x40170d
mov ecx, dword [ebp - 8]
call fcn.00401250
dec eax
jne 0x40172e
lea eax, [ebp - 0x110]
push eax
push str.Executing
call fcn.004010cd
pop ecx
lea eax, [ebp - 0x110]
pop ecx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40172e
lea eax, [ebp - 0x110]
push eax
push str.ERROR:_Copying_file
jmp 0x401727
lea eax, [ebp - 0x110]
push eax
push str.Cannot_create_temp_file:
call fcn.004010cd
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4