Function at 0x401150
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x2f8
push ebx
push ebp
push esi
push edi
push 0xff
mov dword [esp + 0x20], 0
call fcn.00410abf
push 0xff
mov esi, eax
call fcn.00410abf
mov ebx, eax
push 0xff
mov dword [esp + 0x2c], ebx
call fcn.00410abf
add esp, 0xc
mov ebp, eax
push ebx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xff
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.00401080
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
call fcn.00401000
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x174], 0x41e128
call fcn.00402ac0
push 0
lea eax, [esp + 0x180]
push 0
push eax
lea ecx, [esp + 0x180]
call fcn.00402ad0
push 0
lea ecx, [esp + 0x180]
call fcn.00403250
push 0x21
push esi
mov ecx, dword [esp + 0x17c]
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x184]
mov dword [esp + edx + 0x17c], 0x41e124
call fcn.004033e0
test eax, eax
jne 0x401239
push eax
mov eax, dword [esp + 0x178]
push 2
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x17c]
call fcn.004017d0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x12], 1
mov byte [esp + 0x13], 0
mov dword [esp + 0x58], 0x41e11c
call fcn.00402ac0
push 0
push 1
lea edx, [esp + 0x64]
push 0
push edx
lea ecx, [esp + 0x68]
mov edi, 3
call fcn.00402a00
push 0
lea ecx, [esp + 0x60]
call fcn.00403250
push esi
push ebx
mov eax, dword [esp + 0x60]
push str._s_s_tmp
push ebp
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x68], 0x41e118
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x5c]
push 0x32
push ebp
call fcn.004033e0
test eax, eax
jne 0x4012be
mov edx, dword [esp + 0x58]
push eax
push 2
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x60]
call fcn.004017d0
mov ecx, dword [esp + 0x30c]
push 0x7f8a
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [esp + 0x174]
call fcn.00402b80
cmp eax, 0xffffffff
je 0x4012ed
mov byte [esp + 0x14], al
lea edx, [esp + 0x174]
test edx, edx
jne 0x4012fc
xor eax, eax
jmp 0x40130d
mov eax, dword [esp + 0x174]
mov ecx, dword [eax + 4]
lea eax, [esp + ecx + 0x174]
mov edx, dword [eax + 4]
and dl, 6
neg dl
sbb edx, edx
not edx
test eax, edx
je 0x4016cf
mov eax, dword [esp + 0x14]
push eax
call fcn.00401050
add esp, 4
call fcn.00401020
test al, al
je 0x4016ac
mov al, byte [esp + 0x13]
test al, al
je 0x4016a2
mov al, byte [esp + 0x12]
test al, al
je 0x401356
mov byte [esp + 0x12], 0
jmp 0x4012d8
mov ecx, dword [esp + 0x58]
xor esi, esi
mov edx, dword [ecx + 4]
mov cl, byte [esp + edx + 0x5c]
test cl, 6
lea eax, [esp + edx + 0x58]
jne 0x401380
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401380
mov esi, 4
mov eax, dword [esp + 0x58]
push 0
push esi
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x60]
call fcn.004017d0
lea ecx, [esp + 0x5c]
call fcn.004034e0
test eax, eax
jne 0x4013b3
mov edx, dword [esp + 0x58]
push eax
push 2
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x60]
call fcn.004017d0
lea ecx, [esp + 0x140]
mov dword [esp + 0xe4], 0x41e128
call fcn.00402ac0
push 0
lea ecx, [esp + 0xf0]
push 0
push ecx
lea ecx, [esp + 0xf0]
or edi, 4
call fcn.00402ad0
push 0
lea ecx, [esp + 0xf0]
call fcn.00403250
push 0x21
push ebp
mov edx, dword [esp + 0xec]
lea ecx, [esp + 0xf4]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0xec], 0x41e124
call fcn.004033e0
test eax, eax
jne 0x401434
mov ecx, dword [esp + 0xe4]
push eax
push 2
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0xec]
call fcn.004017d0
lea ecx, [esp + 0x25c]
mov dword [esp + 0x204], 0x41e11c
call fcn.00402ac0
push 0
push 1
lea eax, [esp + 0x210]
or edi, 8
push 0
push eax
lea ecx, [esp + 0x214]
mov dword [esp + 0x2c], edi
call fcn.00402a00
push 0
lea ecx, [esp + 0x20c]
call fcn.00403250
mov ecx, dword [esp + 0x204]
mov eax, dword [esp + 0x18]
push eax
push ebx
mov edx, dword [ecx + 4]
push str._s_s
push ebp
mov dword [esp + edx + 0x214], 0x41e118
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x208]
push 0x32
push ebp
call fcn.004033e0
test eax, eax
jne 0x4014d0
mov ecx, dword [esp + 0x204]
push eax
push 2
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x20c]
call fcn.004017d0
mov eax, dword [esp + 0xe4]
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0xe8], 6
jne 0x401507
push 1
mov eax, ecx
push 2
lea edx, [esp + 0x2c8]
mov ecx, dword [esp + eax + 0x114]
push 0
push edx
call fcn.004030f0
mov eax, dword [esp + 0xe4]
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0xe8], 6
jne 0x401532
mov edx, ecx
push 1
push 1
lea eax, [esp + 0x2e0]
mov ecx, dword [esp + edx + 0x114]
push 0
push eax
call fcn.004030f0
jmp 0x401540
push 0xffffffffffffffff
lea ecx, [esp + 0x2ac]
call fcn.00401800
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x40]
sub esp, 0x18
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
mov eax, esp
mov dword [esp + 0x3c], esp
lea ebx, [edx + ecx - 7]
mov dword [eax], 0
mov ecx, dword [0x41e1b8]
mov dword [eax + 8], ecx
mov edx, dword [0x41e1bc]
mov dword [eax + 0xc], edx
mov ecx, dword [0x425528]
mov dword [eax + 0x10], ecx
lea ecx, [esp + 0xfc]
call fcn.00401850
mov eax, dword [esp + 0xe4]
mov edx, dword [eax + 4]
test byte [esp + edx + 0xe8], 6
jne 0x4015c1
mov eax, edx
push 1
push 1
lea edx, [esp + 0x298]
mov ecx, dword [esp + eax + 0x114]
push 0
push edx
call fcn.004030f0
jmp 0x4015cf
push 0xffffffffffffffff
lea ecx, [esp + 0x2f4]
call fcn.00401800
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
add ecx, eax
cmp ecx, ebx
jae 0x401615
lea edx, [esp + 0x14]
lea ecx, [esp + 0xe4]
push edx
call fcn.00401830
lea ecx, [esp + 0x204]
mov eax, dword [esp + 0x14]
push eax
push ecx
call fcn.00403dc0
add esp, 8
jmp 0x40158f
lea ecx, [esp + 0x204]
call fcn.00401760
lea ecx, [esp + 0x204]
call fcn.004026a0
push 1
push 0
push 0
push ebp
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x7f00
mov edx, dword [esp + 0x310]
push edx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push str._s__s
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x58]
push 0x30
push ebp
call fcn.004025c0
lea ecx, [esp + 0x204]
call fcn.00401740
lea ecx, [esp + 0xe4]
call fcn.00401720
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x4012d8
mov byte [esp + 0x13], 1
jmp 0x4012d8
mov al, byte [esp + 0x12]
test al, al
jne 0x4012d8
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x58]
push edx
push eax
call fcn.00403dc0
add esp, 8
jmp 0x4012d8
lea ecx, [esp + 0x58]
call fcn.00401760
lea ecx, [esp + 0x58]
call fcn.004026a0
push 1
push 0
push 0
push ebp
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x58]
call fcn.00401740
lea ecx, [esp + 0x174]
call fcn.00401720
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2f8
ret 0x10