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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x408c
call fcn.00454dd0
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push edi
mov edi, ecx
jne 0x431e19
cmp dword [edi + 8], 4
jne 0x431e19
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
call fcn.00412431
test eax, eax
je 0x431e19
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
mov byte [esp + 0x13], 1
call fcn.00412431
jmp 0x431e1f
mov byte [esp + 0x13], bl
xor eax, eax
mov ecx, eax
lea eax, [esp + 0x24]
call fcn.00411164
push 0x44
pop esi
push esi
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.00451700
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.00412336
push eax
lea eax, [esp + 0x209c]
push eax
call fcn.0044f86d
cmp dword [ebp + 0x10], 2
pop ecx
pop ecx
jb 0x431eaa
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00412336
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0044f86d
pop ecx
pop ecx
jmp 0x431eb2
mov word [esp + 0x98], bx
cmp word [esp + 0x98], bx
jne 0x431ecf
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
cmp dword [ebp + 0x10], 3
jb 0x431ee8
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
call fcn.00412431
mov word [esp + 0x80], ax
cmp byte [esp + 0x13], bl
je 0x431f50
lea esi, [esp + 0x24]
call fcn.00411259
cmp eax, 0xffffffff
mov dword [esp + 0x8c], eax
jne 0x431f07
mov byte [esp + 0x13], bl
lea esi, [esp + 0x24]
call fcn.00411315
cmp eax, 0xffffffff
mov dword [esp + 0x90], eax
jne 0x431f20
mov byte [esp + 0x13], bl
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
lea eax, [esp + 0x28]
call fcn.0041159d
cmp eax, 0xffffffff
mov dword [esp + 0x88], eax
jne 0x431f42
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], bl
je 0x431f50
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 0x431fa5
mov eax, dword [ebp + 8]
push ebx
push 1
call fcn.0041c783
push ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov eax, dword [ebp + 8]
call fcn.0041c7b6
mov esi, dword [ebp + 0x14]
push ebx
call fcn.00412914
jmp 0x432018
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esp + 0x13], bl
je 0x431fdb
lea edi, [esp + 0x24]
call fcn.0041147f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.0041149a
mov esi, dword [ebp + 8]
add esi, 0x57c
mov eax, edi
call fcn.0043532e
cmp byte [ebp + 0xc], bl
je 0x431fef
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x554], eax
jmp 0x432018
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x432001
fadd qword [0x4726a8]
mov esi, dword [ebp + 0x14]
push ecx
push ecx
fstp qword [esp]
call fcn.004129c0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0x24]
call fcn.0041120d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10