Function at 0x407d40
Capabilities:
Check for peb beingdebugged flag
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41dfdb
mov eax, dword fs:[0]
push eax
mov eax, 0x208c
call fcn.004195b0
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0x2084], eax
push ebx
push esi
push edi
mov eax, dword [0x4251ac]
xor eax, esp
push eax
lea eax, [esp + 0x209c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20ac]
mov dword [esp + 0x28], eax
xor eax, eax
push 0x44
mov edi, ecx
push eax
lea ecx, [esp + 0x34]
push ecx
mov esi, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00410510
push 0x1000
lea edx, [esp + 0x10a4]
push 0
push edx
mov dword [esp + 0x44], 0x44
call fcn.00410510
push 0x421ad0
lea eax, [esp + 0x10b0]
push 0x800
push eax
call fcn.0040a931
push 0x1000
lea ecx, [esp + 0xbc]
push 0
push ecx
call fcn.00410510
add esp, 0x30
push 0x800
lea edx, [esp + 0x98]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x94]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e15
sub eax, edx
sar eax, 1
dec eax
test eax, eax
jle 0x407e4b
mov ecx, 0x5c
mov edi, edi
cmp word [esp + eax*2 + 0x94], cx
je 0x407e41
dec eax
test eax, eax
jg 0x407e30
jmp 0x407e4b
xor ecx, ecx
mov word [esp + eax*2 + 0x94], cx
push str.MSI_
lea edx, [esp + 0x98]
push 0x800
push edx
call fcn.0040bb4d
push esi
lea eax, [esp + 0xa4]
push 0x800
push eax
call fcn.0040bb4d
push 0x421a30
lea ecx, [esp + 0xb0]
push 0x800
push ecx
call fcn.0040bb4d
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x10bc]
push 0x800
push eax
call fcn.0040bb4d
add esp, 0x30
xor ecx, ecx
mov eax, edi
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], cx
lea edx, [eax + 2]
jmp 0x407ed0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407ed0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x7c]
call fcn.00404bb0
mov esi, edi
mov dword [esp + 0x20a4], 0
call fcn.00407bb0
push 0x421a54
mov ebx, 5
lea eax, [esp + 0x7c]
call fcn.004094f0
cmp eax, 0xffffffff
je 0x407f2b
push 3
push 0x421a84
push ebx
mov ebx, eax
lea esi, [esp + 0x84]
call fcn.00409340
push 0x421a60
mov ebx, 5
lea eax, [esp + 0x7c]
call fcn.004094f0
cmp eax, 0xffffffff
je 0x407f59
push 3
push 0x421a84
push ebx
mov ebx, eax
lea esi, [esp + 0x84]
call fcn.00409340
push str._nola
mov ebx, 5
lea eax, [esp + 0x7c]
call fcn.004094f0
cmp eax, 0xffffffff
je 0x407f87
push 3
push 0x421a84
push ebx
mov ebx, eax
lea esi, [esp + 0x84]
call fcn.00409340
push str._NOLA
mov ebx, 5
lea eax, [esp + 0x7c]
call fcn.004094f0
cmp eax, 0xffffffff
je 0x407fb5
push 3
push 0x421a84
push ebx
mov ebx, eax
lea esi, [esp + 0x84]
call fcn.00409340
mov edi, 8
push str._passive
mov ebx, edi
lea eax, [esp + 0x7c]
call fcn.004094f0
cmp eax, 0xffffffff
je 0x407fe5
push 3
push 0x421a84
push edi
mov ebx, eax
lea esi, [esp + 0x84]
call fcn.00409340
push str._quiet
mov ebx, 6
lea eax, [esp + 0x7c]
call fcn.004094f0
cmp eax, 0xffffffff
je 0x408013
push 3
push 0x421a84
push ebx
mov ebx, eax
lea esi, [esp + 0x84]
call fcn.00409340
push str._NODISP
mov ebx, 7
lea eax, [esp + 0x7c]
call fcn.004094f0
cmp eax, 0xffffffff
je 0x408041
push 3
push 0x421b00
push ebx
mov ebx, eax
lea esi, [esp + 0x84]
call fcn.00409340
lea ecx, [esp + 0x78]
call fcn.00407c50
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], edi
jae 0x40805b
lea eax, [esp + 0x7c]
push eax
lea edx, [esp + 0x1098]
push 0x800
push edx
call fcn.0040bb4d
mov esi, dword [esp + 0x34]
add esp, 0xc
test esi, esi
je 0x4080a6
push 0x421acc
lea eax, [esp + 0x1098]
push 0x800
push eax
call fcn.0040bb4d
push esi
lea ecx, [esp + 0x10a4]
push 0x800
push ecx
call fcn.0040bb4d
add esp, 0x18
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0
push 0
push 0
mov edx, 1
mov word [esp + 0x78], dx
push 0
lea edx, [esp + 0x10b4]
push edx
push 0
mov dword [esp + 0x80], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x90], edi
jb 0x408134
mov edx, dword [esp + 0x7c]
push edx
call fcn.0040ad4f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x209c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2084]
xor ecx, esp
call fcn.0040a922
add esp, 0x2098
ret