Function at 0x1400033a8
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor esi, esi
cmp word [0x14000abd8], si
jne 0x140003401
cmp dword [0x14000abc4], esi
jne 0x1400033f8
call fcn.14000624c
test eax, eax
jne 0x1400033ef
xor eax, eax
jmp 0x140003618
cmp word [0x14000abd8], si
jne 0x140003401
call fcn.140004220
test eax, eax
je 0x1400033e8
call fcn.14000618c
test eax, eax
je 0x1400033e8
call fcn.140006690
test eax, eax
je 0x1400033e8
mov ebx, 0x105
lea rcx, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x140001130]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.140007b48
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140003477
lea rdx, [0x1400012b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140003477
mov rcx, rax
call qword [0x14000d528]
lea rcx, [0x14000b5f0]
xor edx, edx
call rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x14000abc4], esi
jne 0x140003501
cmp dword [0x14000be40], esi
jne 0x140003501
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1400034e4
mov edx, 0x4f0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], FDICopy
call fcn.140004fd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000be5c], ecx
jmp 0x1400033e8
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.140006c54
test eax, eax
je 0x1400033e8
lea rcx, [0x14000b5f0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x140003519
mov edx, 0x4bc
jmp 0x1400034ac
cmp dword [0x14000abcc], esi
jne 0x1400035b4
lea rax, [0x14000af00]
mov ecx, 0x28
mov dword [rax], 1
lea rax, [rax + 0x20]
dec rcx
jne 0x140003531
test byte [0x14000abd8], 1
jne 0x140003591
test byte [0x14000be44], 1
jne 0x140003591
mov eax, dword [0x14000a1f4]
lea r9, [0x140003c80]
mov qword [rsp + 0x28], rsi
neg eax
mov qword [rsp + 0x20], rsi
sbb rdx, rdx
xor r8d, r8d
add rdx, 0x7d5
call fcn.140007a10
test rax, rax
jne 0x14000359a
mov dword [0x14000be5c], 0x8007042b
jmp 0x1400033e8
call fcn.140005f80
test eax, eax
jmp 0x140003580
lea rcx, [0x140007820]
call fcn.1400076a4
test eax, eax
je 0x1400033e8
mov dword [0x14000be5c], esi
mov eax, dword [0x14000aee8]
test al, 0x40
jne 0x1400035d6
test al, al
js 0x1400035d6
movzx ecx, word [0x14000be54]
call fcn.140002634
mov dword [0x14000be50], eax
jmp 0x1400035dc
mov dword [0x14000be50], esi
mov eax, dword [0x14000abc4]
test eax, eax
jne 0x140003601
cmp dword [0x14000be40], esi
jne 0x140003601
call fcn.140004360
test eax, eax
je 0x1400033e8
mov eax, dword [0x14000abc4]
cmp word [0x14000abd8], si
jne 0x140003613
test eax, eax
jne 0x140003613
call fcn.140004b98
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140008340
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret