Function at 0x497b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x497b78
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x497de0
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 0x3c8]
mov eax, dword [0x497df0]
mov dword [esi + 0x64], eax
lea eax, [esi + 0x68]
mov edx, 0x497dfc
call fcn.00404814
mov eax, dword [ebx + 0x3c8]
add eax, 0x7c
mov edx, 0x497e28
call fcn.00404814
mov eax, dword [ebx + 0x3c8]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x497dbd
mov eax, dword [ebx + 0x3c8]
mov eax, dword [eax + 0x84]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x497dbd
mov eax, ebx
call fcn.0045e210
mov eax, dword [ebx + 0x3c8]
mov eax, dword [eax + 0x84]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x497d99
inc eax
mov dword [ebp - 8], eax
xor esi, esi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebx + 0x3c8]
mov eax, dword [eax + 0x84]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00409360
mov eax, dword [ebp - 0x10]
call fcn.00404a9c
push eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx + 0x3c8]
mov eax, dword [eax + 0x84]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00409360
mov eax, dword [ebp - 0x18]
call fcn.00404a9c
sub eax, 3
push eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebx + 0x3c8]
mov eax, dword [eax + 0x84]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409360
mov eax, dword [ebp - 0x20]
pop edx
pop ecx
call fcn.00404cfc
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 4]
call fcn.00408664
mov eax, dword [ebp - 4]
call fcn.00404a9c
test eax, eax
jle 0x497d8f
push 1
push 0x497e30
push 0x497e3c
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx + 0x3c8]
mov eax, dword [eax + 0x84]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x2c]
push 0x497e3c
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404b5c
mov eax, dword [ebp - 0x28]
call fcn.00404c9c
push eax
push 0x497e3c
lea edx, [ebp - 0x34]
mov eax, dword [0x49ee9c]
mov eax, dword [eax]
call fcn.004624c8
push dword [ebp - 0x34]
push 0x497e3c
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404b5c
mov eax, dword [ebp - 0x30]
call fcn.00404c9c
push eax
push 0x497e40
mov eax, ebx
call fcn.00447310
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x49ee9c]
mov eax, dword [eax]
call fcn.00461bc4
push 0x398
call sub.kernel32.dll_Sleep
mov eax, dword [0x49ee9c]
mov eax, dword [eax]
call fcn.00461bc4
jmp 0x497d7f
mov eax, dword [0x49ee9c]
mov eax, dword [eax]
call fcn.00461bc4
push 0x398
call sub.kernel32.dll_Sleep
mov eax, dword [0x49ee9c]
mov eax, dword [eax]
call fcn.00461bc4
push 0
push 0x497e48
call sub.user32.dll_FindWindowA
test eax, eax
ja 0x497d5d
inc esi
dec dword [ebp - 8]
jne 0x497c14
mov edx, dword [ebx + 0x410]
mov eax, ebx
call fcn.0048d7bc
mov eax, dword [ebx + 0x3c8]
add eax, 0x80
call fcn.004047c0
mov eax, ebx
call fcn.0045e218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497de7
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004047e4
lea eax, [ebp - 4]
call fcn.004047c0
ret