Function at 0x140003540
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 [0x14000f040]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rsi, rcx
xor r12d, r12d
lea rdx, [rcx + 0x78]
lea rcx, [rbp - 0x68]
call fcn.140001db0
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 0x1400035c0
mov rax, qword [rsp + 0x70]
cmp rdx, rax
ja 0x140003602
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 0x140003613
lea r9, [rbp - 0x40]
xor r8d, r8d
lea rcx, [rsp + 0x58]
call fcn.140001880
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 0x140003651
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 0x140003820
mov rsi, qword [rbp - 0x58]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, rsi
cmp rax, 0x1f
jb 0x140003b5e
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 0x140003753
mov rdi, r14
or rdi, 7
cmp rdi, rcx
jbe 0x140003719
mov rdi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140003746
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003b64
mov rcx, rax
call fcn.140004b24
test rax, rax
je 0x140003b58
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000374e
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140003b64
add rcx, rcx
jne 0x1400036e4
mov rbx, r12
jmp 0x14000374e
call fcn.140004b24
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 [0x14000b540]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [0x14000b550]
movups xmmword [rbx + 0x20], xmm0
movsd xmm0, qword [0x14000b560]
movsd qword [rbx + 0x30], xmm0
mov eax, dword [0x14000b568]
mov dword [rbx + 0x38], eax
movzx eax, word [0x14000b56c]
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 0x140003a8c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b58
jmp 0x140003a87
cmp qword [rsi + 8], 0
jne 0x140003a90
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 0x140003b6a
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 0x140003933
mov rbx, rsi
or rbx, 7
cmp rbx, rcx
jbe 0x1400038f9
mov rbx, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140003926
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003b70
mov rcx, rax
call fcn.140004b24
test rax, rax
je 0x140003b76
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000392e
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140003b70
add rcx, rcx
jne 0x1400038c4
mov rdi, r12
jmp 0x14000392e
call fcn.140004b24
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 [0x14000b468]
movups xmmword [rbx + rdi], xmm0
movsd xmm0, qword [0x14000b478]
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 0x1400039ce
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 0x1400039ed
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.1400019e0
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x38]
cmp r14, 7
jbe 0x140003a28
lea rdx, [r14*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140003a20
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b76
mov rcx, rdi
call fcn.140004b60
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 0x140003a8c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b7c
call fcn.140004b60
xor bl, bl
jmp 0x140003a92
mov bl, 1
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140003ad4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003acf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b82
call fcn.140004b60
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x140003b24
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b1f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b52
call fcn.140004b60
movzx eax, bl
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140004f20
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.140008910
nop
call fcn.140008910
nop
call fcn.140004230
int3
call fcn.1400041a0
nop
call fcn.140004230
int3
call fcn.1400041a0
int3
call fcn.140008910
nop
call fcn.140008910
nop
call fcn.140008910
int3