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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44029b
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.00404ef0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00404ed0
mov byte [ebp - 4], 3
push 0x5c
lea ecx, [ebp - 0x5c]
call fcn.0040a0f0
push eax
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004051c0
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.00404f90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
call fcn.00401130
lea ecx, [ebp - 0x10]
call fcn.00405370
test eax, eax
jle 0x406f7f
lea ecx, [ebp - 0x10]
call fcn.00405390
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x3c
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.0042cd90
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], 0x447da0
lea ecx, [ebp + 8]
call fcn.00405390
mov dword [ebp - 0x48], eax
lea ecx, [ebp + 0xc]
call fcn.00405390
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x10]
call fcn.00405390
mov dword [ebp - 0x40], eax
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x406fdc
mov dword [ebp - 0x3c], 1
jmp 0x406fe3
mov dword [ebp - 0x3c], 2
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x8c]
add ecx, 0x55c8
call fcn.00404f90
push 0x447da4
mov ecx, dword [ebp - 0x8c]
add ecx, 0x55c8
call fcn.00404ff0
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x8c]
add ecx, 0x55c8
call fcn.00404fd0
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x7c], 0
je 0x4070ef
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 0x407070
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x14], 0xffffffff
jmp 0x4070ef
cmp dword [ebp - 0x18], 1
je 0x4070be
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, 1
jne 0x4070be
cmp dword [ebp - 0x1c], 0x103
jne 0x40709b
mov dword [ebp - 0x7c], 1
jmp 0x4070be
cmp dword [ebp - 0x1c], 0
jne 0x4070b1
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x7c], 0
jmp 0x4070be
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 0x4070ea
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 0x4070be
jmp 0x407030
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