Function at 0x4022f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x18c
mov eax, dword [esp + 0x194]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
mov dword [esp + 0x14], ebx
push ebp
push eax
push str.ZPrint32Class
call esi
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x40236a
push ebx
call fcn.00401b70
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x1a4]
push eax
push edi
call fcn.00401d10
add esp, 8
mov edi, eax
test edi, edi
je 0x40236a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x402328
push eax
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 8]
push ecx
call fcn.00401d70
add esp, 8
test eax, eax
je 0x402364
mov ebx, 1
cmp dword [eax + 0x10], edi
je 0x402366
xor ebx, ebx
test ebx, ebx
je 0x402328
xor eax, eax
test ebx, ebx
jne 0x402563
mov dword [esp + 0x14], eax
push eax
mov dword [esp + 0x14], eax
call fcn.00401b70
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x1a4]
push eax
push edi
call fcn.00401d10
add esp, 8
mov edi, eax
test edi, edi
je 0x402423
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x402387
mov eax, dword [ebx + 8]
push eax
call fcn.00402190
add esp, 4
test eax, eax
je 0x402387
mov eax, dword [ebx + 0xc]
mov ebp, dword [eax + 4]
test ebp, ebp
je 0x402387
mov ebx, dword [ebp + 8]
test byte [ebx + 0x34], 0xd
jne 0x4023f0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4023f9
mov eax, dword [eax + 8]
push eax
push str.ZPrint32Class
call esi
test eax, eax
jne 0x4023f0
mov dword [ebx + 0x34], 3
mov dword [ebp + 0x10], 0
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x4023c3
jmp 0x402387
cmp dword [esp + 0x14], 0
je 0x402416
mov eax, dword [esp + 0x14]
push eax
push ebp
call fcn.00402210
add esp, 8
test eax, eax
jle 0x402387
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edi
jmp 0x402387
cmp dword [esp + 0x14], 0
je 0x40254b
cmp dword [esp + 0x10], 0
je 0x40254b
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
push eax
push str.ZPrint32Class
call esi
mov edi, eax
test edi, edi
jne 0x402512
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x11c]
mov eax, dword [ecx + 8]
push eax
push str.ZPrint32
push str._s__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [esp + 0x1b0]
add esp, 0x10
lea eax, [esp + 0x11c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
mov ebp, eax
jb 0x4024a6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
push eax
push str.ZPrint32Class
call esi
mov edi, eax
jmp 0x402507
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push 0x100
lea eax, [esp + 0x20]
mov ecx, dword [0x4077f0]
push eax
push 1
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
test ebp, ebp
je 0x4024ef
lea eax, [esp + 0x1c]
push 0
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
push ebp
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [esp + 0x11c]
push 5
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebp, eax
cmp ebp, 4
je 0x40247c
jmp 0x402519
mov ebx, dword [esp + 0x1a0]
test edi, edi
je 0x402563
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ecx
push eax
push edi
push ebx
call fcn.00402260
mov dword [esp + 0x28], eax
add esp, 0x10
test eax, eax
je 0x402563
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [eax + 0x10], edx
jmp 0x402563
cmp dword [esp + 0x1c], 0
je 0x402563
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18c
ret