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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x44
xor edi, edi
lea eax, [esp + 0x74]
push edi
push eax
call fcn.004131f0
xor eax, eax
add esp, 0xc
mov ecx, 1
xor ebx, ebx
mov dword [esp + 0x70], 0x44
mov dword [esp + 0x9c], 1
mov word [esp + 0xa0], cx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
cmp byte [ebp + 0x10], al
je 0x463fc4
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0xc]
call fcn.0040c760
cmp dword [esi + 8], 7
mov dword [esp + 0x28], eax
jbe 0x463fb6
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1c]
call fcn.0040c760
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0x1c]
mov edi, eax
and edi, 0xffff0000
call fcn.0040c760
and eax, 0xffff
mov dword [esp + 0x24], eax
cmp dword [esi + 8], 6
jbe 0x46400a
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0x18]
jmp 0x463ffd
cmp dword [esi + 8], 3
jbe 0x463ff1
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0xc]
call fcn.0040c760
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xc]
and edi, 0xffff0000
call fcn.0040c760
and eax, 0xffff
mov dword [esp + 0x24], eax
cmp dword [esi + 8], 2
jbe 0x46400a
mov edx, dword [esi + 4]
mov ecx, dword [edx + 8]
call fcn.0040c760
mov word [esp + 0xa0], ax
test edi, 0x10000
je 0x46401a
mov dword [esp + 0x20], 0x10
mov eax, dword [esi + 4]
mov eax, dword [eax]
push eax
call fcn.00453081
mov edi, eax
call fcn.0040fff0
cmp byte [ebp + 0x10], bl
je 0x464176
mov ecx, dword [esi + 4]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
push eax
call fcn.00453081
mov edi, eax
call fcn.0040fff0
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 8]
push eax
call fcn.00453081
mov edi, eax
call fcn.0040fff0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x10]
push eax
call fcn.00453081
mov edi, eax
call fcn.0040fff0
cmp dword [esi + 8], 5
mov dword [esp + 0x1c], eax
jbe 0x4640ac
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x14]
push eax
call fcn.00453081
mov edi, eax
call fcn.0040fff0
mov dword [esp + 0x18], eax
test eax, eax
je 0x4640ac
push eax
call fcn.004112d5
add esp, 4
test eax, eax
jne 0x4640de
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push 0
call ebx
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041171a
add esp, 4
push edi
push eax
mov dword [esp + 0x20], eax
call ebx
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov edi, 0x4848e8
call fcn.0040e6d0
mov ecx, dword [esi + 4]
mov ebx, dword [ecx + 4]
call fcn.0040e6d0
mov edx, dword [esi + 4]
mov ebx, dword [edx + 8]
call fcn.0040e6d0
mov ebx, dword [esp + 0x30]
cmp dword [esi + 8], 1
mov dword [esp + 0x1c], eax
jbe 0x4641aa
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
push eax
call fcn.00453081
mov edi, eax
call fcn.0040fff0
mov esi, eax
test esi, esi
je 0x4641aa
push esi
call fcn.004112d5
add esp, 4
test eax, eax
jne 0x46410b
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call edi