Function at 0x4031b0
Capabilities:
Create process on windows
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40695e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push edi
mov eax, dword [0x409d68]
mov ecx, dword [0x409d08]
push eax
push ecx
xor ebx, ebx
push str.uid:_s_run_file::_X
push 0x409b68
mov dword [esp + 0xb0], ebx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
cmp byte [esp + 0xac], bl
je 0x40333e
push 0x409e74
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0xa8]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0xa4], 1
call sub.MFC42.DLL_CString::operator
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x10]
mov edx, dword [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xb0]
lea eax, [esp + 0x10]
push 0x409d58
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push edx
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4032e4
mov eax, dword [0x409d58]
mov ecx, dword [0x409d08]
push eax
push ecx
push str.uid:_s_create_process_succeed::_X
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
mov byte [esp + 0xa0], bl
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa8]
mov dword [esp + 0xa0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x98]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x9c
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x409d08]
push eax
push edx
push str.uid:_s_create_process_failed::_X
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
lea ecx, [esp + 0xc]
mov byte [esp + 0xa0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa8]
mov dword [esp + 0xa0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4032cb
cmp dword [0x409d68], ebx
jne 0x4032b2
push 0x409e74
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0xb0]
mov byte [esp + 0xa0], 2
cmp eax, ebx
je 0x403388
push eax
mov eax, dword [esp + 0xac]
push eax
lea ecx, [esp + 0x10]
push str._s__s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x403399
lea edx, [esp + 0xa8]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x54]
push 0x409d68
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x58]
push ecx
push ebx
push ebx
push ebx
mov dword [esp + 0x68], 0x44
mov eax, dword [eax - 8]
push ebx
push ebx
push ebx
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403419
mov edx, dword [0x409d68]
mov eax, dword [0x409d08]
push edx
push eax
push str.uid:_s_create_process_succeed::_X
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
mov byte [esp + 0xa0], bl
lea ecx, [esp + 8]
jmp 0x4032ad
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x409d08]
mov esi, eax
push esi
push ecx
push str.uid:_s_create_process_failed::_X
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
cmp esi, 0xc1
pop esi
jne 0x403496
mov edx, dword [esp + 0xa8]
mov eax, dword [0x409d08]
push 0xc1
push edx
push eax
push str.uid:_s_rn_fl___s__faild___d__del
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
mov ecx, dword [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
mov byte [esp + 0xa0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa8]
mov dword [esp + 0xa0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4032cb