Function at 0x403322
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x40f920
call fcn.0040ef70
sub esp, 0x28
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x1a8], ebx
je 0x4033e7
mov eax, dword [esi + 0x1b8]
cmp dword [esi + 0x1f4], eax
jge 0x4033f5
cmp dword [esi + 0x1f8], 0x200000
jge 0x4033f5
mov edi, dword [esi + 0x1f4]
push 2
imul edi, edi, 0x32f
add edi, dword [esi + 0x1b4]
pop ecx
push 0x10
mov dword [ebp - 0x34], ecx
pop edx
mov dword [ebp - 0x30], edx
mov eax, dword [edi + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 8]
inc dword [esi + 0x1ac]
mov dword [ebp - 0x28], eax
lea eax, [esi + 0x1ac]
push ebx
push ebx
push ebx
mov eax, dword [eax]
push ecx
mov ecx, dword [esi + 0x1a8]
push eax
push 0xc738
lea eax, [ebp - 0x34]
push edx
push eax
call fcn.004071c0
test eax, eax
je 0x4033d2
inc dword [esi + 0x1f4]
mov ecx, dword [edi + 0x21b]
mov eax, dword [esi + 0x1f4]
add dword [esi + 0x1f8], ecx
cmp eax, dword [esi + 0x1b8]
jl 0x403346
jmp 0x4033f5
push ebx
push ebx
push 0x41643c
call sub.MFC42.DLL_AfxMessageBox
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4033f5
push 1
push 0x3e9
mov ecx, esi
call fcn.00404c4b
mov eax, dword [esi + 0x1b8]
cmp dword [esi + 0x1ec], eax
jl 0x403746
push ebx
push 0x64
push 0x402
push dword [esi + 0x144]
call dword [sym.imp.USER32.dll_SendMessageA]
push str.100_
lea ecx, [esi + 0x64]
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x1b8]
mov dword [ebp - 4], ebx
cmp eax, ebx
mov dword [ebp - 0x18], ebx
jle 0x4035ee
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp - 0x14]
add edi, dword [esi + 0x1b4]
cmp dword [edi + 0x239], ebx
je 0x40352a
cmp dword [edi + 0x235], ebx
jbe 0x40352a
lea eax, [edi + 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040edce
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00403755
lea eax, [edi + 0x10d]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00402de8
push ecx
lea ecx, [ebp - 0x1c]
mov eax, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 2
call fcn.00402c22
call fcn.00407d5c
pop ecx
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::CFile
push ebx
push 0x1001
push dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x403548
push dword [edi + 0x235]
lea ecx, [ebp - 0x34]
push dword [edi + 0x239]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::Close
push dword [edi + 0x239]
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [edi + 0x239], ebx
lea ecx, [ebp - 0x34]
mov dword [edi + 0x235], ebx
mov byte [ebp - 4], 2
call fcn.0040ee76
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040ebd0
inc dword [ebp - 0x18]
add dword [ebp - 0x14], 0x32f
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0x1b8]
jl 0x403447
jmp 0x4035ee
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push 0x416400
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp esi, ebx
jne 0x403570
xor eax, eax
jmp 0x403573
mov eax, dword [esi + 0x20]
push 0x112
push dword [0x416020]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 3
je 0x4035c4
cmp eax, 4
je 0x40359c
inc dword [ebp - 0x18]
add dword [ebp - 0x14], 0x32f
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040ebd0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0040ee76
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040ebd0
jmp 0x403534
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040ebd0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0040ee76
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
jmp 0x403728
mov ecx, esi
call fcn.00403cbf
mov ecx, esi
call fcn.0040399d
lea eax, [esi + 0x164]
push 0x416c9c
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MFC42.DLL_operator
push dword [ebp - 0x20]
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0040378a
test eax, eax
je 0x403704
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00407eb0
cmp al, bl
pop ecx
je 0x4036ba
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040502c
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00404e1b
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x14], ebx
mov byte [ebp - 4], 6
je 0x403684
cmp dword [ebp - 0x24], ebx
jbe 0x403684
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push ebx
push str._LoginType_d__User_u__Pwd
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 5
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 2
mov ecx, esi
call fcn.00404caa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.0040ebd0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0040ebd0
jmp 0x40373a
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push 0x4163ac
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp esi, ebx
jne 0x4036e2
xor eax, eax
jmp 0x4036e5
mov eax, dword [esi + 0x20]
push ebx
push dword [0x416020]
push dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0040ebd0
jmp 0x403722
cmp esi, ebx
jne 0x40370c
xor eax, eax
jmp 0x40370f
mov eax, dword [esi + 0x20]
push ebx
push dword [0x416020]
push 0x416374
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.0040ebd0
push ebx
mov dword [esi + 0x28c], ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ebd0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret