Function at 0x401980
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51af4b
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x5662f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x44
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0xf8]
push ebx
push ecx
mov edi, edx
mov dword [ebp - 0xa0], eax
call fcn.004f72f0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
xor edx, edx
mov eax, esi
mov dword [ebp - 0xf8], 0x44
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
lea ecx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x401a10
sub eax, ecx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.004050e0
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x548fdc
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], ebx
call fcn.00403120
push eax
mov eax, 0x548fdc
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00403170
add esp, 8
cmp dword [ebp - 0x6c], 8
jb 0x401a65
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004078b0
add esp, 4
mov esi, 7
xor edx, edx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], 8
jb 0x401a8c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004078b0
add esp, 4
xor ecx, ecx
xor edx, edx
mov eax, edi
mov word [ebp - 0x48], dx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401ab0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x48]
call fcn.004050e0
lea eax, [ebp - 0x48]
push eax
mov eax, 0x548fe0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 5
call fcn.00403120
add esp, 4
push ebx
push eax
or eax, 0xffffffff
lea edi, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.00402c30
mov edi, 8
cmp dword [ebp - 0x88], edi
jb 0x401b12
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004078b0
add esp, 4
xor edx, edx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
cmp dword [ebp - 0x34], edi
jb 0x401b3c
mov eax, dword [ebp - 0x48]
push eax
call fcn.004078b0
add esp, 4
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x401b47
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0xf8]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401b7c
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xa0]
mov esi, 1
mov dword [ecx], eax
jmp 0x401b82
mov esi, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], edi
jb 0x401ba0
mov eax, dword [ebp - 0x64]
push eax
call fcn.004078b0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5f9c
mov esp, ebp
pop ebp
ret