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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rsi, rcx
xor r12d, r12d
lea rdx, [rcx + 0x78]
lea rcx, [rbp - 0x68]
call fcn.140001bd0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
lea rdx, [rbp - 0x40]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rbp - 0x40]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400033e0
mov rax, qword [rsp + 0x70]
cmp rdx, rax
ja 0x140003422
lea rdi, [rsp + 0x58]
cmp rax, 7
cmova rdi, qword [rsp + 0x58]
mov qword [rsp + 0x68], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp - 0x40]
mov rcx, rdi
call sub.msvcrt.dll_memmove
mov word [rbx + rdi], r12w
jmp 0x140003433
lea r9, [rbp - 0x40]
xor r8d, r8d
lea rcx, [rsp + 0x58]
call fcn.1400016a0
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, str.python3.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsi + 0x10], rax
test rax, rax
je 0x140003471
lea rdx, str.Py_Main
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 8], rax
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp qword [rsi + 0x10], 0
jne 0x140003640
mov rsi, qword [rbp - 0x58]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, rsi
cmp rax, 0x1f
jb 0x14000397e
lea r15, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova r15, qword [rbp - 0x68]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea r14, [rsi + 0x1f]
mov edi, 7
lea rbx, [rsp + 0x38]
cmp r14, rdi
jbe 0x140003573
mov rdi, r14
or rdi, 7
cmp rdi, rcx
jbe 0x140003539
mov rdi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140003566
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003984
mov rcx, rax
call fcn.1400047f0
test rax, rax
je 0x140003978
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000356e
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140003984
add rcx, rcx
jne 0x140003504
mov rbx, r12
jmp 0x14000356e
call fcn.1400047f0
mov rbx, rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], rdi
movaps xmm0, xmmword [str.Cannot_load_python3.dll_from:_r_n]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [0x14000a520]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [0x14000a530]
movups xmmword [rbx + 0x20], xmm0
movsd xmm0, qword [0x14000a540]
movsd qword [rbx + 0x30], xmm0
mov eax, dword [0x14000a548]
mov dword [rbx + 0x38], eax
movzx eax, word [0x14000a54c]
mov word [rbx + 0x3c], ax
lea rcx, [rbx + 0x3e]
lea r8, [rsi + rsi]
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov word [rbx + r14*2], r12w
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rdx, qword [rsp + 0x38]
xor r9d, r9d
lea r8, str.ERROR
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x1400038ac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003978
jmp 0x1400038a7
cmp qword [rsi + 8], 0
jne 0x1400038b0
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov r8d, 0x1b
lea rdx, str.Cannot_find_Py_Main___in:_r_n
lea rcx, [rsp + 0x78]
call fcn.1400010a0
nop
mov r14, qword [rbp - 0x58]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r14
cmp rax, 0xc
jb 0x14000398a
lea r15, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova r15, qword [rbp - 0x68]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rsi, [r14 + 0xc]
mov ebx, 7
lea rdi, [rsp + 0x38]
cmp rsi, rbx
jbe 0x140003753
mov rbx, rsi
or rbx, 7
cmp rbx, rcx
jbe 0x140003719
mov rbx, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140003746
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003990
mov rcx, rax
call fcn.1400047f0
test rax, rax
je 0x140003996
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000374e
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140003990
add rcx, rcx
jne 0x1400036e4
mov rdi, r12
jmp 0x14000374e
call fcn.1400047f0
mov rdi, rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call sub.msvcrt.dll_memcpy
movups xmm0, xmmword [0x14000a448]
movups xmmword [rbx + rdi], xmm0
movsd xmm0, qword [0x14000a458]
movsd qword [rbx + rdi + 0x10], xmm0
mov word [rdi + rsi*2], r12w
lea r9, [rsp + 0x38]
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x50]
cmp r14, 7
cmova r9, rdi
mov r15, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
sub rax, r15
mov rsi, qword [rsp + 0x48]
cmp rsi, rax
ja 0x1400037ee
lea rax, [rsi + r15]
mov qword [rbp - 0x78], rax
lea rbx, [rsp + 0x78]
cmp rcx, 7
cmova rbx, qword [rsp + 0x78]
lea rcx, [rbx + r15*2]
lea r8, [rsi + rsi]
mov rdx, r9
call sub.msvcrt.dll_memmove
lea rax, [rsi + r15]
mov word [rbx + rax*2], r12w
jmp 0x14000380d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.140001800
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x38]
cmp r14, 7
jbe 0x140003848
lea rdx, [r14*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140003840
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003996
mov rcx, rdi
call fcn.14000482c
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rdx, qword [rsp + 0x78]
xor r9d, r9d
lea r8, str.ERROR
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x1400038ac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000399c
call fcn.14000482c
xor bl, bl
jmp 0x1400038b2
mov bl, 1
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x1400038f4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400039a2
call fcn.14000482c
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x140003944
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000393f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003972
call fcn.14000482c
movzx eax, bl
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140004b70
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400085a0
nop
call fcn.1400085a0
nop
call fcn.140004050
int3
call fcn.140003fc0
nop
call fcn.140004050
int3
call fcn.140003fc0
int3
call fcn.1400085a0
nop
call fcn.1400085a0
nop
call fcn.1400085a0
int3