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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x208c
call fcn.00454c50
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push edi
mov edi, ecx
jne 0x431c2a
cmp dword [edi + 8], 4
jne 0x431c2a
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
call fcn.00412089
test eax, eax
je 0x431c2a
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
mov byte [esp + 0x13], 1
call fcn.00412089
jmp 0x431c30
mov byte [esp + 0x13], bl
xor eax, eax
mov ecx, eax
lea eax, [esp + 0x24]
call fcn.00410dbc
push 0x44
pop esi
push esi
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.004512b0
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.00411f94
push eax
lea eax, [esp + 0x109c]
push eax
call fcn.0044f340
cmp dword [ebp + 0x10], 2
pop ecx
pop ecx
jb 0x431cbb
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00411f94
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0044f340
pop ecx
pop ecx
jmp 0x431cc2
mov byte [esp + 0x98], bl
cmp byte [esp + 0x98], bl
jne 0x431cde
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [ebp + 0x10], 3
jb 0x431cf7
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
call fcn.00412089
mov word [esp + 0x80], ax
cmp byte [esp + 0x13], bl
je 0x431d5f
lea esi, [esp + 0x24]
call fcn.00410eb1
cmp eax, 0xffffffff
mov dword [esp + 0x8c], eax
jne 0x431d16
mov byte [esp + 0x13], bl
lea esi, [esp + 0x24]
call fcn.00410f6d
cmp eax, 0xffffffff
mov dword [esp + 0x90], eax
jne 0x431d2f
mov byte [esp + 0x13], bl
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
lea eax, [esp + 0x28]
call fcn.004111f5
cmp eax, 0xffffffff
mov dword [esp + 0x88], eax
jne 0x431d51
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], bl
je 0x431d5f
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 + 0x10b8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x431db4
mov eax, dword [ebp + 8]
push ebx
push 1
call fcn.0041c3a1
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
call fcn.0041c3d4
mov esi, dword [ebp + 0x14]
push ebx
call fcn.00412534
jmp 0x431e27
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], bl
je 0x431dea
lea edi, [esp + 0x24]
call fcn.004110d7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.004110f2
mov esi, dword [ebp + 8]
add esi, 0x47c
mov eax, edi
call fcn.00434fe6
cmp byte [ebp + 0xc], bl
je 0x431dfe
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x454], eax
jmp 0x431e27
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x431e10
fadd qword [0x46eb90]
mov esi, dword [ebp + 0x14]
push ecx
push ecx
fstp qword [esp]
call fcn.004125e0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x24]
call fcn.00410e65
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10