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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x208c
call fcn.00454c70
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push edi
mov edi, ecx
jne 0x431c5b
cmp dword [edi + 8], 4
jne 0x431c5b
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
call fcn.004120ba
test eax, eax
je 0x431c5b
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
mov byte [esp + 0x13], 1
call fcn.004120ba
jmp 0x431c61
mov byte [esp + 0x13], bl
xor eax, eax
mov ecx, eax
lea eax, [esp + 0x24]
call fcn.00410ded
push 0x44
pop esi
push esi
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.004512d0
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.00411fc5
push eax
lea eax, [esp + 0x109c]
push eax
call fcn.0044f360
cmp dword [ebp + 0x10], 2
pop ecx
pop ecx
jb 0x431cec
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00411fc5
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0044f360
pop ecx
pop ecx
jmp 0x431cf3
mov byte [esp + 0x98], bl
cmp byte [esp + 0x98], bl
jne 0x431d0f
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [ebp + 0x10], 3
jb 0x431d28
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
call fcn.004120ba
mov word [esp + 0x80], ax
cmp byte [esp + 0x13], bl
je 0x431d90
lea esi, [esp + 0x24]
call fcn.00410ee2
cmp eax, 0xffffffff
mov dword [esp + 0x8c], eax
jne 0x431d47
mov byte [esp + 0x13], bl
lea esi, [esp + 0x24]
call fcn.00410f9e
cmp eax, 0xffffffff
mov dword [esp + 0x90], eax
jne 0x431d60
mov byte [esp + 0x13], bl
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
lea eax, [esp + 0x28]
call fcn.00411226
cmp eax, 0xffffffff
mov dword [esp + 0x88], eax
jne 0x431d82
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], bl
je 0x431d90
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 0x431de5
mov eax, dword [ebp + 8]
push ebx
push 1
call fcn.0041c3d2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
call fcn.0041c405
mov esi, dword [ebp + 0x14]
push ebx
call fcn.00412565
jmp 0x431e58
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], bl
je 0x431e1b
lea edi, [esp + 0x24]
call fcn.00411108
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.00411123
mov esi, dword [ebp + 8]
add esi, 0x47c
mov eax, edi
call fcn.00435017
cmp byte [ebp + 0xc], bl
je 0x431e2f
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x454], eax
jmp 0x431e58
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x431e41
fadd qword [0x46eb90]
mov esi, dword [ebp + 0x14]
push ecx
push ecx
fstp qword [esp]
call fcn.00412611
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x24]
call fcn.00410e96
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10