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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x408c
call fcn.00454df0
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push edi
mov edi, ecx
jne 0x431e30
cmp dword [edi + 8], 4
jne 0x431e30
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
call fcn.00412462
test eax, eax
je 0x431e30
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
mov byte [esp + 0x13], 1
call fcn.00412462
jmp 0x431e36
mov byte [esp + 0x13], bl
xor eax, eax
mov ecx, eax
lea eax, [esp + 0x24]
call fcn.00411195
push 0x44
pop esi
push esi
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.00451720
xor eax, eax
inc eax
mov dword [esp + 0x88], eax
mov word [esp + 0x8c], ax
mov eax, dword [edi + 4]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov word [esp + 0x8e], bx
mov dword [esp + 0x90], ebx
mov esi, dword [eax]
add esp, 0xc
call fcn.00412367
push eax
lea eax, [esp + 0x209c]
push eax
call fcn.0044f88d
cmp dword [ebp + 0x10], 2
pop ecx
pop ecx
jb 0x431ec1
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00412367
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0044f88d
pop ecx
pop ecx
jmp 0x431ec9
mov word [esp + 0x98], bx
cmp word [esp + 0x98], bx
jne 0x431ee6
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
cmp dword [ebp + 0x10], 3
jb 0x431eff
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
call fcn.00412462
mov word [esp + 0x80], ax
cmp byte [esp + 0x13], bl
je 0x431f67
lea esi, [esp + 0x24]
call fcn.0041128a
cmp eax, 0xffffffff
mov dword [esp + 0x8c], eax
jne 0x431f1e
mov byte [esp + 0x13], bl
lea esi, [esp + 0x24]
call fcn.00411346
cmp eax, 0xffffffff
mov dword [esp + 0x90], eax
jne 0x431f37
mov byte [esp + 0x13], bl
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
lea eax, [esp + 0x28]
call fcn.004115ce
cmp eax, 0xffffffff
mov dword [esp + 0x88], eax
jne 0x431f59
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], bl
je 0x431f67
or dword [esp + 0x7c], 0x100
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xa0]
push eax
movzx eax, byte [esp + 0x1f]
push ebx
push ebx
push eax
push ebx
push ebx
lea eax, [esp + 0x20b8]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x431fbc
mov eax, dword [ebp + 8]
push ebx
push 1
call fcn.0041c7b4
push ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov eax, dword [ebp + 8]
call fcn.0041c7e7
mov esi, dword [ebp + 0x14]
push ebx
call fcn.00412945
jmp 0x43202f
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esp + 0x13], bl
je 0x431ff2
lea edi, [esp + 0x24]
call fcn.004114b0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.004114cb
mov esi, dword [ebp + 8]
add esi, 0x57c
mov eax, edi
call fcn.00435345
cmp byte [ebp + 0xc], bl
je 0x432006
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x554], eax
jmp 0x43202f
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x432018
fadd qword [0x4726a8]
mov esi, dword [ebp + 0x14]
push ecx
push ecx
fstp qword [esp]
call fcn.004129f1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0x24]
call fcn.0041123e
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10