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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ffdb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x454688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00405100
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004050e0
mov byte [ebp - 4], 3
push 0x5c
lea ecx, [ebp - 0x5c]
call fcn.00409a80
push eax
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004053d0
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x10]
call fcn.004051a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
call fcn.00401130
lea ecx, [ebp - 0x10]
call fcn.00405590
test eax, eax
jle 0x40724f
lea ecx, [ebp - 0x10]
call fcn.004054b0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x3c
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.0042ca00
add esp, 0xc
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x40
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], 0x447db4
lea ecx, [ebp + 8]
call fcn.004054b0
mov dword [ebp - 0x48], eax
lea ecx, [ebp + 0xc]
call fcn.004054b0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x10]
call fcn.004054b0
mov dword [ebp - 0x40], eax
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x4072ac
mov dword [ebp - 0x3c], 1
jmp 0x4072b3
mov dword [ebp - 0x3c], 2
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x8c]
add ecx, 0x57d0
call fcn.004051a0
push 0x447db8
mov ecx, dword [ebp - 0x8c]
add ecx, 0x57d0
call fcn.00405200
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x8c]
add ecx, 0x57d0
call fcn.004051e0
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x7c], 0
je 0x4073bf
push 0x4ff
push 0xfa
push 1
lea ecx, [ebp - 0x20]
push ecx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x407340
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x14], 0xffffffff
jmp 0x4073bf
cmp dword [ebp - 0x18], 1
je 0x40738e
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, 1
jne 0x40738e
cmp dword [ebp - 0x1c], 0x103
jne 0x40736b
mov dword [ebp - 0x7c], 1
jmp 0x40738e
cmp dword [ebp - 0x1c], 0
jne 0x407381
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x7c], 0
jmp 0x40738e
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x7c], 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4073ba
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40738e
jmp 0x407300
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00401130
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00401130
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401130
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc