Function at 0x402240
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x40c210
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [str.TAHA]
mov dword [esp + 0x64], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 2
call fcn.00401270
push 0x40d239
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
push ebp
lea ecx, [esp + 0x14]
call fcn.004011e0
test eax, eax
mov ebx, dword [esp + 0x10]
je 0x4022c1
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov esi, 0x40d239
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], ebp
mov byte [ebx + ebp], 0
mov ebp, dword [esp + 0x6c]
mov al, byte [ebp]
cmp al, 0x22
je 0x4022d4
cmp al, 0x27
jne 0x4023b0
cmp dword [ebp - 8], 1
jle 0x4023b0
movsx eax, al
lea ecx, [ebp + 1]
push eax
push ecx
call fcn.0040305f
add esp, 8
test eax, eax
je 0x4023b0
sub eax, ebp
mov esi, eax
js 0x4023b0
lea ecx, [esi - 1]
push ecx
push 1
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x78]
call fcn.00402100
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 3
call fcn.00401270
mov eax, dword [esp + 0x14]
mov edx, dword [0x410044]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x64], 2
je 0x402357
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x402357
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00403a67
add esp, 4
add esi, 2
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x74]
call fcn.00402210
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 4
call fcn.00401270
mov eax, dword [esp + 0x1c]
mov edx, dword [0x410044]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x64], 2
je 0x4023ac
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4023ac
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00403a67
add esp, 4
mov ebx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x20], 0x3c
mov ecx, 0xe
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x40], 1
mov dword [esp + 0x30], 0x40d234
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [str.TAHA]
mov dword [esp + 0x14], ecx
test eax, eax
mov byte [esp + 0x64], 5
lea edx, [esp + 0x14]
jne 0x4024e6
push ebp
push str.Cannot___s__Program___
push edx
call fcn.00401780
mov esi, dword [esp + 0x20]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x410044]
lea eax, [esi - 0xc]
cmp eax, ecx
mov byte [esp + 0x64], 2
je 0x402452
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x402452
push esi
call fcn.00403a67
add esp, 4
mov eax, dword [0x410044]
lea ecx, [ebx - 0xc]
cmp ecx, eax
mov byte [esp + 0x64], 1
je 0x40247a
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40247a
push ebx
call fcn.00403a67
add esp, 4
mov eax, dword [0x410044]
lea edx, [edi - 0xc]
cmp edx, eax
mov byte [esp + 0x64], 0
je 0x4024a2
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4024a2
push esi
call fcn.00403a67
add esp, 4
mov ecx, dword [0x410044]
lea eax, [ebp - 0xc]
cmp eax, ecx
mov dword [esp + 0x64], 0xffffffff
je 0x4024ce
lea esi, [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4024ce
push esi
call fcn.00403a67
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 0x58]
push ecx
push ebp
push str.__s__Executiton_is_successfull____PID:_ld_
push edx
call fcn.00401780
mov esi, dword [esp + 0x24]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x410044]
lea eax, [esi - 0xc]
cmp eax, ecx
mov byte [esp + 0x64], 2
je 0x40252e
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40252e
push esi
call fcn.00403a67
add esp, 4
mov eax, dword [0x410044]
lea ecx, [ebx - 0xc]
cmp ecx, eax
mov byte [esp + 0x64], 1
je 0x40255a
lea esi, [ebx - 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
call ebx
test eax, eax
jg 0x402560
push esi
call fcn.00403a67
add esp, 4
jmp 0x402560
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [0x410044]
lea edx, [edi - 0xc]
cmp edx, eax
mov byte [esp + 0x64], 0
je 0x402584
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x402584
push esi
call fcn.00403a67
add esp, 4
mov ecx, dword [0x410044]
lea eax, [ebp - 0xc]
cmp eax, ecx
mov dword [esp + 0x64], 0xffffffff
je 0x4025ac
lea esi, [ebp - 0xc]
push esi
call ebx
test eax, eax
jg 0x4025ac
push esi
call fcn.00403a67
add esp, 4
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret