Function at 0x40c050
Capabilities:
Create process on windows
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe58
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
push 0x42ba24
call fcn.00402800
push 0x68
push 0
call fcn.004094c0
add esp, 0x10
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.0040ba90
add esp, 8
push eax
lea ecx, [ebp - 0xc]
call fcn.00402750
push 3
push 0
lea ecx, [ebp - 0xc]
call fcn.0040b720
lea ecx, [ebp - 0x16c]
call fcn.004032b0
lea ecx, [ebp - 0x16c]
call fcn.00408db0
mov byte [ebp - 0x16c], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
lea eax, [ebp - 0xc]
push eax
call fcn.00402730
lea ecx, [ebp - 0x16c]
call fcn.004097d0
call fcn.00405ad0
push eax
lea ecx, [ebp - 0x44]
call fcn.00402800
push 0xfde9
push 0
lea ecx, [ebp - 0x168]
call fcn.00408a50
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x848]
call fcn.00402560
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 4]
call fcn.00402800
lea ecx, [ebp - 0x848]
call fcn.00403a00
push 0xfde9
push 1
lea ecx, [ebp - 0x168]
call fcn.00408a50
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x640]
call fcn.00402560
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402800
lea ecx, [ebp - 0x640]
call fcn.00403a00
push 0xfde9
push 2
lea ecx, [ebp - 0x168]
call fcn.00408a50
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0xa50]
call fcn.00402560
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x34]
call fcn.00402800
lea ecx, [ebp - 0xa50]
call fcn.00403a00
push 0xfde9
push 3
lea ecx, [ebp - 0x168]
call fcn.00408a50
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x438]
call fcn.00402560
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402800
lea ecx, [ebp - 0x438]
call fcn.00403a00
push 0xfde9
push 4
lea ecx, [ebp - 0x168]
call fcn.00408a50
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0xc58]
call fcn.00402560
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402800
lea ecx, [ebp - 0xc58]
call fcn.00403a00
push 0xfde9
push 5
lea ecx, [ebp - 0x168]
call fcn.00408a50
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x53c]
call fcn.00402560
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x38]
call fcn.00402800
lea ecx, [ebp - 0x53c]
call fcn.00403a00
push 0xfde9
push 6
lea ecx, [ebp - 0x168]
call fcn.00408a50
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x744]
call fcn.00402560
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x14]
call fcn.00402800
lea ecx, [ebp - 0x744]
call fcn.00403a00
push 0xfde9
push 7
lea ecx, [ebp - 0x168]
call fcn.00408a50
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x94c]
call fcn.00402560
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x10]
call fcn.00402800
lea ecx, [ebp - 0x94c]
call fcn.00403a00
push 0xfde9
push 8
lea ecx, [ebp - 0x168]
call fcn.00408a50
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0xb54]
call fcn.00402560
mov ecx, eax
call fcn.00405c90
push eax
lea ecx, [ebp - 0x18]
call fcn.00402800
lea ecx, [ebp - 0xb54]
call fcn.00403a00
push str..lnk
lea ecx, [ebp - 0x1c]
push ecx
push 0x42ba40
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.00404420
add esp, 0xc
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00404380
add esp, 0xc
push eax
lea edx, [ebp - 0x40]
push edx
call fcn.00404420
add esp, 0xc
lea ecx, [ebp - 0x5c]
call fcn.004039e0
lea ecx, [ebp - 0x54]
call fcn.004039e0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0x42ba44
call fcn.00402800
push 0x66
push 0
call fcn.004094c0
add esp, 0x10
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.0040ba90
add esp, 8
mov dword [ebp - 0x60], eax
call fcn.004095b0
push eax
lea ecx, [ebp - 8]
call fcn.00402800
push 1
lea ecx, [ebp - 0x22c]
call fcn.00402b40
push 0x40
push 0x33
lea ecx, [ebp - 8]
call fcn.00405c90
push eax
lea ecx, [ebp - 0x22c]
call fcn.00409f30
mov eax, dword [ebp - 0x24]
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x21c]
call fcn.0040b020
lea ecx, [ebp - 0x22c]
call fcn.00408d80
push 0x42ba54
lea eax, [ebp - 4]
push eax
call fcn.004041d0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40c446
push 0x5c
lea ecx, [ebp - 8]
call fcn.00406980
push eax
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 8]
call fcn.00405fc0
push eax
lea ecx, [ebp - 4]
call fcn.00404190
lea ecx, [ebp - 0x4c]
call fcn.004039e0
lea ecx, [ebp - 4]
call fcn.00405c90
push eax
lea ecx, [ebp - 0x2b0]
call fcn.004028c0
mov ecx, eax
call fcn.00405c90
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea ecx, [ebp - 0x2b0]
call fcn.00403a00
lea ecx, [ebp - 4]
call fcn.00405c90
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 8]
call fcn.00405c90
push eax
lea ecx, [ebp - 0x334]
call fcn.004028c0
mov ecx, eax
call fcn.00405c90
push eax
call fcn.0040bc50
add esp, 4
lea ecx, [ebp - 0x334]
call fcn.00403a00
lea ecx, [ebp - 8]
call fcn.00405c90
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x42ba58
lea eax, [ebp - 0x3c]
push eax
call fcn.004041d0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40c566
lea edx, [ebp - 0xe58]
push edx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0xe58]
push eax
lea ecx, [ebp - 4]
call fcn.004041b0
push 0x42ba5c
lea ecx, [ebp - 4]
call fcn.0040b580
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00404380
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004027c0
lea ecx, [ebp - 0x30]
call fcn.00405a60
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405a60
push eax
lea ecx, [ebp - 0x40]
call fcn.00405a60
push eax
lea ecx, [ebp - 0x20]
call fcn.00405a60
push eax
call fcn.00405230
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.004039e0
lea ecx, [ebp - 0x20]
call fcn.004039e0
call fcn.00405510
lea ecx, [ebp - 0x14]
call fcn.00405a60
push eax
call fcn.004055b0
add esp, 4
test eax, eax
je 0x40c595
push 1
push 0
lea ecx, [ebp - 0x14]
call fcn.00405a60
push eax
call fcn.00406ff0
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00405a60
push eax
call fcn.004055b0
add esp, 4
test eax, eax
je 0x40c5c9
push 1
push 0
push 0x42ba60
lea ecx, [ebp - 0x10]
call fcn.00405a60
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x2c]
call fcn.00405a60
push eax
call fcn.0040b840
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x38]
call fcn.00405a60
push eax
call fcn.0040b840
lea ecx, [ebp - 0x18]
call fcn.00405a60
push eax
call fcn.004055b0
add esp, 4
test eax, eax
je 0x40c61a
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.00405a60
push eax
call fcn.00406ff0
add esp, 0xc
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x22c]
call fcn.004044c0
lea ecx, [ebp - 8]
call fcn.004039e0
lea ecx, [ebp - 0x40]
call fcn.004039e0
lea ecx, [ebp - 0x18]
call fcn.004039e0
lea ecx, [ebp - 0x10]
call fcn.004039e0
lea ecx, [ebp - 0x14]
call fcn.004039e0
lea ecx, [ebp - 0x38]
call fcn.004039e0
lea ecx, [ebp - 0x2c]
call fcn.004039e0
lea ecx, [ebp - 0x1c]
call fcn.004039e0
lea ecx, [ebp - 0x34]
call fcn.004039e0
lea ecx, [ebp - 0x3c]
call fcn.004039e0
lea ecx, [ebp - 4]
call fcn.004039e0
lea ecx, [ebp - 0x44]
call fcn.004039e0
lea ecx, [ebp - 0x16c]
call fcn.00403d30
lea ecx, [ebp - 0xc]
call fcn.004039e0
mov eax, dword [ebp - 0x50]
mov esp, ebp
pop ebp
ret 0x10