Function at 0x40cbb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a33f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x4cbc38]
push ebx
push ebp
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
je 0x40cbec
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40cc0f
push ebx
push 0x4cbc40
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
mov dword [0x4cbc38], eax
je 0x40cc0f
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [0x4cbc38], eax
mov eax, dword [0x4cbc3c]
cmp eax, ebx
je 0x40cc23
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40cc29
mov dword [0x4cbc3c], ebx
mov edi, dword [esp + 0x7c]
cmp dword [edi], 0x3d
jne 0x40cc5c
push ebx
lea eax, [edi + 4]
lea esi, [ebp + 0x550]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
test eax, eax
mov ecx, esi
jge 0x40cc56
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Empty]
jmp 0x40d076
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Empty]
cmp dword [0x4cbc38], ebx
mov esi, dword [esp + 0x84]
jne 0x40ce1a
cmp esi, ebx
je 0x40cc88
cmp dword [0x4cbc3c], ebx
je 0x40cc88
cmp dword [0x4cbc34], 1
jne 0x40ce1a
push ebx
call dword [sym.imp.MSVCR71.dll__time64]
mov esi, eax
mov eax, dword [esp + 0x84]
add esp, 4
test eax, eax
mov ebx, edx
je 0x40cf21
mov eax, dword [ebp + 0x4bc]
mov edx, dword [ebp + 0x4c0]
mov ecx, esi
sub ecx, eax
mov eax, ebx
sbb eax, edx
mov edx, dword [ebp + 0x4b8]
test edx, edx
je 0x40ccd6
test eax, eax
jg 0x40ccd6
jl 0x40cf21
cmp ecx, 0xa
jb 0x40cf21
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x28], 0x44
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov edx, dword [0x4cc908]
mov eax, dword [0x4cbdc0]
push edx
push eax
lea ecx, [esp + 0x88]
push str._s_s.exe__NULL
push ecx
mov dword [esp + 0x84], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x400
lea ecx, [esp + 0xa4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x1c]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40cd7a
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40cd85
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x4bc], esi
mov dword [ebp + 0x4b8], 1
mov dword [ebp + 0x4c0], ebx
mov dword [0x4cbc38], 0
mov esi, 0x12c
push 0xa
dec esi
call edi
mov eax, dword [0x4cbc38]
test eax, eax
je 0x40cdc9
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40cded
push 0
push 0x4cbc40
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
mov dword [0x4cbc38], eax
je 0x40cdf6
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [0x4cbc38], eax
mov eax, dword [0x4cbc38]
test eax, eax
jne 0x40cdfa
test esi, esi
jg 0x40cdb0
lea ecx, [esp + 0x80]
mov dword [esp + 0x74], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x7c]
test esi, esi
mov ecx, dword [ebp + 0x20]
mov dword [edi + 0x408], ecx
je 0x40ce3d
cmp esi, 1
je 0x40cf4d
cmp dword [0x4cbc34], 2
je 0x40cf4d
mov eax, dword [0x4cbc38]
test eax, eax
je 0x40cf4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40cf4d
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 0x404]
mov ebx, 0x40c
cmp eax, ebx
mov edi, 0x6abe51
jne 0x40cea5
push ebx
call sub.MFC71.DLL_operator_new_1
add esp, 4
test eax, eax
je 0x40ce95
mov ecx, eax
call fcn.00407820
mov esi, eax
mov eax, dword [esp + 0x7c]
push eax
mov ecx, esi
call fcn.004077e0
jmp 0x40ced0
mov eax, dword [esp + 0x7c]
xor esi, esi
push eax
mov ecx, esi
call fcn.004077e0
jmp 0x40ced0
mov ebx, 0x620
push ebx
call sub.MFC71.DLL_operator_new_1
add esp, 4
test eax, eax
je 0x40cec2
mov ecx, eax
call fcn.00407950
mov esi, eax
jmp 0x40cec4
xor esi, esi
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, esi
call fcn.00407840
push 0x14
call sub.MFC71.DLL_operator_new_1
add esp, 4
test eax, eax
je 0x40cef2
xor edx, edx
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
jmp 0x40cef4
xor eax, eax
mov edx, dword [0x4cbc38]
lea ecx, [eax + 8]
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [eax], edx
mov dword [eax + 4], 0x4a
mov dword [ecx + 8], esi
mov ecx, dword [ebp + 0x548]
test ecx, ecx
jne 0x40cf38
push 1
mov ecx, eax
call fcn.00408c00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 0xc
push eax
call fcn.00438bd0
mov esi, dword [esp + 0x84]
mov dword [esp + 0x10], 1
cmp esi, 3
je 0x40cf68
cmp esi, 1
je 0x40cf68
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40d076
cmp esi, 2
jne 0x40cf21
cmp dword [0x4cbc34], 1
je 0x40d062
mov eax, dword [0x4cbc3c]
test eax, eax
je 0x40d062
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40d062
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 0x404]
mov edi, 0x40c
cmp eax, edi
mov ebx, 0x6abe51
jne 0x40cfdd
push edi
call sub.MFC71.DLL_operator_new_1
add esp, 4
test eax, eax
je 0x40cfcd
mov ecx, eax
call fcn.00407820
mov esi, eax
mov eax, dword [esp + 0x7c]
push eax
mov ecx, esi
call fcn.004077e0
jmp 0x40d008
mov eax, dword [esp + 0x7c]
xor esi, esi
push eax
mov ecx, esi
call fcn.004077e0
jmp 0x40d008
mov edi, 0x620
push edi
call sub.MFC71.DLL_operator_new_1
add esp, 4
test eax, eax
je 0x40cffa
mov ecx, eax
call fcn.00407950
mov esi, eax
jmp 0x40cffc
xor esi, esi
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, esi
call fcn.00407840
push 0x14
call sub.MFC71.DLL_operator_new_1
add esp, 4
test eax, eax
je 0x40d02a
xor edx, edx
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
jmp 0x40d02c
xor eax, eax
mov edx, dword [0x4cbc3c]
lea ecx, [eax + 8]
mov dword [ecx], ebx
mov dword [ecx + 4], edi
mov dword [eax], edx
mov dword [eax + 4], 0x4a
mov dword [ecx + 8], esi
mov ecx, dword [ebp + 0x548]
test ecx, ecx
je 0x40cf18
push eax
call fcn.00438bd0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40d076
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40cf21
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 0xc