Function at 0x496234
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x49623c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4964a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 0x3c8]
mov eax, dword [0x4964b4]
mov dword [esi + 0x64], eax
lea eax, [esi + 0x68]
mov edx, 0x4964c0
call fcn.00404814
mov eax, dword [ebx + 0x3c8]
add eax, 0x7c
mov edx, 0x4964ec
call fcn.00404814
mov eax, dword [ebx + 0x3c8]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x496481
mov eax, dword [ebx + 0x3c8]
mov eax, dword [eax + 0x84]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x496481
mov eax, ebx
call fcn.0045e1b4
mov eax, dword [ebx + 0x3c8]
mov eax, dword [eax + 0x84]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x49645d
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.00409370
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.00409370
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.00409370
mov eax, dword [ebp - 0x20]
pop edx
pop ecx
call fcn.00404cfc
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 4]
call fcn.00408674
mov eax, dword [ebp - 4]
call fcn.00404a9c
test eax, eax
jle 0x496453
push 1
push 0x4964f4
push 0x496500
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 0x496500
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404b5c
mov eax, dword [ebp - 0x28]
call fcn.00404c9c
push eax
push 0x496500
lea edx, [ebp - 0x34]
mov eax, dword [0x49ce98]
mov eax, dword [eax]
call fcn.0046246c
push dword [ebp - 0x34]
push 0x496500
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404b5c
mov eax, dword [ebp - 0x30]
call fcn.00404c9c
push eax
push 0x496504
mov eax, ebx
call fcn.004472b4
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x49ce98]
mov eax, dword [eax]
call fcn.00461b68
push 0x398
call sub.kernel32.dll_Sleep
mov eax, dword [0x49ce98]
mov eax, dword [eax]
call fcn.00461b68
jmp 0x496443
mov eax, dword [0x49ce98]
mov eax, dword [eax]
call fcn.00461b68
push 0x398
call sub.kernel32.dll_Sleep
mov eax, dword [0x49ce98]
mov eax, dword [eax]
call fcn.00461b68
push 0
push 0x49650c
call sub.user32.dll_FindWindowA
test eax, eax
ja 0x496421
inc esi
dec dword [ebp - 8]
jne 0x4962d8
mov edx, dword [ebx + 0x410]
mov eax, ebx
call fcn.0048be9c
mov eax, dword [ebx + 0x3c8]
add eax, 0x80
call fcn.004047c0
mov eax, ebx
call fcn.0045e1bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4964ab
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004047e4
lea eax, [ebp - 4]
call fcn.004047c0
ret