Function at 0x102287e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
xor eax, eax
mov dword [esp + 4], eax
push ebx
mov byte [esp + 7], al
push esi
mov esi, dword [esp + 0x70]
push edi
push ebp
cmp esi, 4
ja case.default.0x102287fa
jmp dword [esi*4 + 0x10228a40]
call sym.MSVCRT40.dll__errno
mov dword [eax], 0x16
call sym.MSVCRT40.dll___doserrno
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x64
ret
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x1c], ecx
mov ax, word [ecx]
test ax, ax
je 0x10228857
add ecx, 2
cmp word [ecx], 0
jne 0x1022883c
lea eax, [ecx + 2]
cmp word [eax], 0
je 0x10228834
mov word [ecx], 0x20
mov ecx, eax
jmp 0x10228834
lea edi, [esp + 0x30]
xor eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], 0x44
mov edi, dword [0x1024dc00]
cmp edi, eax
je 0x102288a0
xor ecx, ecx
lea ebx, [edi - 1]
mov eax, ebx
mov edx, ebx
and eax, 0xffffffe7
and edx, 0x1f
sar eax, 3
shl edx, 2
mov ebp, dword [eax + 0x1024db00]
lea eax, [edx + edx*8]
cmp byte [ebp + eax + 4], cl
jne 0x102288a0
mov edi, ebx
test ebx, ebx
jne 0x10228878
mov eax, edi
push 1
imul ax, ax, 5
add ax, 4
mov word [esp + 0x66], ax
xor eax, eax
mov ax, word [esp + 0x66]
push eax
call sym.MSVCRT40.dll_calloc
mov dword [esp + 0x6c], eax
add esp, 8
xor ecx, ecx
mov dword [eax], edi
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x64]
add edx, 4
lea ebx, [eax + edi + 4]
test edi, edi
jle 0x1022890d
mov eax, ecx
mov ebp, ecx
and eax, 0xffffffe7
and ebp, 0x1f
sar eax, 3
inc ecx
shl ebp, 2
inc edx
mov eax, dword [eax + 0x1024db00]
add ebx, 4
lea ebp, [ebp + ebp*8]
add ebp, eax
cmp edi, ecx
mov al, byte [ebp + 4]
mov byte [edx - 1], al
mov ebp, dword [ebp]
mov dword [ebx - 4], ebp
jg 0x102288dc
cmp byte [esp + 0x13], 0
je 0x10228949
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x64]
add ecx, 4
lea eax, [eax + edi + 4]
cmp edi, 3
jl 0x1022892d
mov edi, 3
test edi, edi
jle 0x10228941
mov byte [ecx], 0
inc ecx
mov dword [eax], 0xffffffff
add eax, 4
dec edi
jne 0x10228931
mov dword [esp + 0x14], 8
call sym.MSVCRT40.dll___doserrno
mov edi, eax
call sym.MSVCRT40.dll__errno
lea ecx, [esp + 0x30]
mov dword [eax], 0
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x84]
push eax
mov dword [edi], 0
or dword [esp + 0x18], 0x400
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push 0
push edx
push eax
mov edx, dword [esp + 0x90]
push 1
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x64]
push eax
call sym.MSVCRT40.dll_free
add esp, 4
test edi, edi
jne 0x102289cc
push ebx
call fcn.102155c0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret
cmp esi, 2
jne 0x102289dd
push 0
call sym.MSVCRT40.dll__exit
add esp, 4
jmp 0x10228a29
test esi, esi
jne 0x10228a0b
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10228a29
mov eax, dword [esp + 0x20]
cmp esi, 4
jne 0x10228a25
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], 0
jmp 0x10228a29
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret