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

Disassembly:
push 0xffffffffffffffff
push 0x4075be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [0x40aaa0]
mov ecx, dword [esi + 0xb8]
push eax
push ecx
xor ebx, ebx
push str.uid:_s_rf:_X
push 0x40aab0
mov dword [esp + 0xb4], ebx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40aab0
call fcn.00405830
cmp byte [esp + 0xb0], bl
je 0x4031c9
push 0x40aabc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0xac]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0xa8], 1
call sub.MFC42.DLL_CString::operator_1
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
mov edx, dword [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xb4]
lea eax, [esp + 0x14]
push 0x40aa90
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push edx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403172
mov eax, dword [0x40aa90]
mov ecx, dword [esi + 0xb8]
push eax
push ecx
push str.uid:_s_cps::_X
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40aab0
call fcn.00405830
mov byte [esp + 0xa4], bl
lea ecx, [esp + 0x10]
call fcn.004069cc
lea ecx, [esp + 0xac]
mov dword [esp + 0xa4], 0xffffffff
call fcn.004069cc
mov al, 1
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x9c
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0xb8]
push eax
push edx
push str.uid:_s_cpf::_X
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40aab0
call fcn.00405830
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], bl
call fcn.004069cc
lea ecx, [esp + 0xac]
mov dword [esp + 0xa4], 0xffffffff
call fcn.004069cc
xor al, al
jmp 0x403158
cmp dword [0x40aaa0], ebx
jne 0x40313f
push 0x40aabc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0xb4]
mov byte [esp + 0xa4], 2
cmp eax, ebx
je 0x403213
push eax
mov eax, dword [esp + 0xb0]
push eax
lea ecx, [esp + 0x14]
push str._s__s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x403224
lea edx, [esp + 0xac]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
push ecx
lea eax, [esp + 0xb0]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x60], 0x44
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00402f20
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x40a034], eax
jne 0x40326c
call edi
neg eax
mov dword [0x40a034], eax
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x58]
push 0x40aaa0
push edx
mov eax, dword [ecx - 8]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4032d4
mov eax, dword [0x40aaa0]
mov ecx, dword [esi + 0xb8]
push eax
push ecx
push str.uid:_s_cps:_X
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40aab0
call fcn.00405830
mov byte [esp + 0xa4], bl
lea ecx, [esp + 0xc]
jmp 0x40313a
call edi
mov edx, dword [esi + 0xb8]
mov edi, eax
push edi
push edx
push str.uid:_s_cpf:_X
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40aab0
call fcn.00405830
cmp edi, 0xc1
jne 0x40334e
mov eax, dword [esp + 0xac]
mov ecx, dword [esi + 0xb8]
push edi
push eax
push ecx
push str.uid:_s_rn_fl___s__faild___d__del
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, esi
push 0x40aab0
call fcn.00405830
mov edx, dword [esp + 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [0x40a034], 0xffffff3f
jmp 0x403358
mov dword [0x40a034], 0xffffff3e
lea ecx, [esp + 0xc]
mov byte [esp + 0xa4], bl
call fcn.004069cc
lea ecx, [esp + 0xac]
mov dword [esp + 0xa4], 0xffffffff
call fcn.004069cc
xor al, al
jmp 0x403158