Function at 0x40a230
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4446a8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4571dc]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
push 0x44760c
lea ecx, [esp + 0x18]
xor ebx, ebx
xor ebp, ebp
call fcn.004018a0
push 0x44760c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], ebx
call fcn.004018a0
mov esi, dword [esp + 0x68]
mov byte [esp + 0x60], 1
cmp esi, ebx
jne 0x40a28c
xor eax, eax
jmp 0x40a2a0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a291
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401610
mov eax, dword [esp + 0x14]
push 0x5c
push eax
call fcn.00428cb0
add esp, 8
or edi, 0xffffffff
cmp eax, ebx
jne 0x40a2c5
mov eax, edi
jmp 0x40a2cd
sub eax, dword [esp + 0x14]
sar eax, 1
je 0x40a30f
push eax
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402470
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 2
call fcn.00401770
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x60], 1
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a30f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 4
push 0x447b48
lea ecx, [esp + 0x20]
call fcn.00401610
cmp esi, ebx
jne 0x40a327
xor eax, eax
jmp 0x40a33f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a330
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004024f0
push 1
push 0x447b44
lea ecx, [esp + 0x20]
call fcn.004024f0
push 0x3c
lea ecx, [esp + 0x20]
push ebx
push ecx
call fcn.00428a10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x30], 0x447b3c
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, ebx
jne 0x40a3fc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x60], bl
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a3d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x60], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40a3f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40a4c7
mov eax, dword [esp + 0x54]
cmp eax, ebx
jne 0x40a44c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x60], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a427
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x60], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40a3f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40a4c7
cmp dword [esp + 0x70], ebx
je 0x40a476
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x68]
push ecx
push edx
mov dword [esp + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, ebx
je 0x40a476
mov ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x60], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x60], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40a4c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0xc