Function at 0x408940
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416c38
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x41e028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov edx, dword [ebp + 8]
push 0x2710
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 4], edi
push edx
mov dword [ebp - 0x14], edi
call fcn.00406640
test eax, eax
je 0x4089af
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x408b4b
push eax
jmp 0x408b43
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x2c
jb 0x408997
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 0x24]
lea edx, [eax + 0x2c]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
cmp edx, ecx
jne 0x408b5d
cmp eax, edi
je 0x408b5d
cmp dword [esi + 0x28], edi
je 0x4089ea
mov dword [ebp - 0x14], 1
cmp dword [0x420690], edi
jne 0x4089ed
mov dword [ebp - 0x14], edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0xa0]
push ebx
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0xa4], 0x44
call fcn.0040e850
mov cx, word [esi + 0x20]
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi]
add esp, 0xc
mov word [ebp - 0x74], cx
cmp eax, 0xffffffff
je 0x408a38
lea edx, [eax + esi + 0x2c]
mov dword [ebp - 0x18], edx
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
je 0x408a47
lea eax, [ecx + esi + 0x2c]
mov dword [ebp - 0x1c], eax
mov edx, dword [esi + 8]
cmp edx, 0xffffffff
lea edx, [edx + esi + 0x2c]
jne 0x408a55
mov edx, ebx
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
je 0x408a61
lea ebx, [ecx + esi + 0x2c]
mov ecx, dword [esi + 0x18]
lea eax, [ecx + esi + 0x2c]
cmp ecx, 0xffffffff
jne 0x408a70
mov eax, dword [ebp - 0x34]
mov ecx, dword [esi + 0x1c]
cmp ecx, 0xffffffff
je 0x408a7c
lea edi, [ecx + esi + 0x2c]
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x44]
push ecx
je 0x408ab3
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0xa4]
push eax
push edi
push ecx
mov ecx, dword [ebp - 0x1c]
push ebx
push edx
mov edx, dword [ebp - 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
lea edx, [ebp - 0x58]
call fcn.00401100
jmp 0x408ad4
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, dword [esi + 0x14]
push edi
push eax
mov eax, dword [ebp - 0x18]
push ecx
mov ecx, dword [esi + 0x10]
push ecx
push ebx
push edx
mov edx, dword [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x408afe
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 1
jne 0x408af6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x408b12
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x20], ecx
jmp 0x408b12
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x408b08
push eax
call edi
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x408b12
push eax
call edi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x408b1c
push eax
call edi
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x408b26
push eax
call edi
xor edi, edi
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0x24]
push edx
push eax
mov eax, 8
call fcn.00406860
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.00409587
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x24], 2
jmp 0x408b28