Function at 0x401060
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be5f6
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x507a74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0x40a
ja 0x4010ca
cmp dword [ebp - 0xbc], 0x40a
je 0x401122
cmp dword [ebp - 0xbc], 0x110
je 0x4010db
cmp dword [ebp - 0xbc], 0x111
je 0x4012c0
jmp 0x40138c
cmp dword [ebp - 0xbc], 0x40b
je 0x401148
jmp 0x40138c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov ecx, dword [ebp + 8]
call fcn.00401490
movzx eax, al
test eax, eax
jne 0x4010fb
mov ecx, dword [ebp + 8]
call fcn.00401460
push 0x27100000
push 0
push 0x401
push 0x3e9
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401390
push 0
mov edx, dword [ebp + 0x14]
push edx
push 0x402
push 0x3e9
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401390
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
call fcn.00402a70
cmp dword [ebp + 0x14], 0
je 0x401225
push 5
push 0
push 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
add ecx, 4
call fcn.004018c0
push eax
push str.open
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x401218
push 0
push 0
push 7
lea ecx, [ebp - 0x28]
push ecx
call fcn.00403050
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc4]
call fcn.00401900
push eax
push 0
push 6
lea eax, [ebp - 0x44]
push eax
call fcn.00403050
add esp, 0xc
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xcc]
call fcn.00401900
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004018e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004018e0
mov ecx, dword [ebp + 8]
call fcn.00401460
jmp 0x4012bb
push 0
push 0
push 4
lea eax, [ebp - 0x60]
push eax
call fcn.00403050
add esp, 0xc
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0xd4]
call fcn.00401900
push eax
push 0
push 4
lea edx, [ebp - 0x7c]
push edx
call fcn.00403050
add esp, 0xc
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xdc]
call fcn.00401900
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.004018e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004018e0
mov ecx, dword [ebp + 8]
call fcn.00401460
jmp 0x401390
mov edx, dword [ebp + 0x14]
and edx, 0xffff
movzx eax, dx
cmp eax, 2
jne 0x40138a
push 4
push 0
push 5
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00403050
add esp, 0xc
mov dword [ebp - 0xe0], eax
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], edx
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0xe4]
call fcn.00401900
push eax
push 0
push 5
lea eax, [ebp - 0xb8]
push eax
call fcn.00403050
add esp, 0xc
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xec], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xec]
call fcn.00401900
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
cmp eax, 6
sete cl
mov byte [ebp - 0x7d], cl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.004018e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.004018e0
movzx edx, byte [ebp - 0x7d]
test edx, edx
je 0x40138a
mov ecx, dword [ebp + 8]
call fcn.00401460
jmp 0x401390
xor eax, eax
jmp 0x401395
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14