Function at 0x10011980
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016d3c9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x101e8118]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0x34
call fcn.100059c0
test eax, eax
je 0x100119e3
push 0x34
push 0x10188890
push 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x34
call fcn.10005f10
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x100119e3
mov eax, 0xfffffe6f
jmp 0x10011c19
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.100addf0
add esp, 8
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
call fcn.10005f10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x21], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006030
movzx edx, byte [ebp - 0x21]
test edx, edx
je 0x10011a92
push 0x1018889c
push 0x101888a8
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xb4]
call eax
mov dword [ebp - 0x18], eax
push 0x10
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.10005f10
push eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xa8]
call eax
mov eax, 0xfffffffb
jmp 0x10011c19
mov ecx, dword [ebp - 0x30]
add ecx, 0x2c
call fcn.100059c0
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xa4]
call edx
mov dword [ebp - 0x14], eax
push 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x2c
call fcn.10005f10
push eax
push 0x101888bc
mov eax, dword [ebp - 0x14]
push eax
call fcn.1013b37a
add esp, 0xc
push 0xfde9
push 1
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xbc]
call edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.1013e98f
add esp, 4
cmp eax, 0x104
jbe 0x10011b0e
mov ecx, dword [ebp - 0x14]
mov word [ecx + 0x208], 0
push 1
push 0
mov edx, dword [ebp - 0x14]
push edx
push 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x28
call fcn.10005f10
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
jge 0x10011c03
mov eax, dword [ebp - 0x30]
add eax, 0x28
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.100addf0
add esp, 8
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.10019590
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.10006030
push 1
push 0
mov edx, dword [ebp - 0x14]
push edx
push 0
lea ecx, [ebp - 0x1c]
call fcn.10005f10
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
jge 0x10011bf4
push 0x101888c4
push 0x101888d0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xb4]
call eax
mov dword [ebp - 0x20], eax
push 0x10
mov ecx, dword [ebp - 0x20]
push ecx
push 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.10005f10
push eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xa8]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10006030
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xa8]
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8