Function at 0x140052df4
Capabilities:
Resolve path using msvcrt

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov rax, qword [0x1401f7030]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r13, qword [rcx + 0x10e0]
mov rdi, r9
mov qword [rsp + 0x28], rdx
xor edx, edx
cmp r9, r13
mov qword [rsp + 0x58], r9
mov byte [rsp + 0x20], r8b
mov r14d, edx
sete bpl
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x30], rdx
mov r15d, edx
mov qword [rsp + 0x38], rdx
mov r12d, edx
mov qword [rsp + 0x40], rdx
mov esi, edx
mov qword [rsp + 0x50], rdx
mov ebx, edx
test r8b, r8b
je 0x140053188
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetcwd]
lea rcx, [rsp + 0x80]
call fcn.14002ad20
mov rcx, rax
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
inc rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__get_wpgmptr]
test eax, eax
jne 0x1400a9a7c
mov rcx, qword [rsp + 0x60]
call fcn.14002ad20
mov rcx, rax
mov r15, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
mov rcx, qword [0x1401fac68]
inc rax
mov qword [rsp + 0x38], rax
call fcn.14002ad20
mov rcx, rax
mov r12, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
inc rax
mov qword [rsp + 0x40], rax
cmp rdi, r13
jne 0x140052f5b
mov ecx, dword [0x1401f7898]
sub ecx, dword [0x1401f7890]
mov ebx, ecx
add rcx, 2
call qword [sym.imp.tbbmalloc.dll_scalable_malloc]
mov rdi, rax
test rax, rax
je 0x1400a9a84
mov rdx, qword [0x1401f7890]
mov r8d, ebx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
shr rbx, 1
mov rcx, rdi
mov word [rdi + rbx*2], si
call fcn.14002ad20
mov rcx, rax
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
mov rcx, rdi
lea rbx, [rax + 1]
mov qword [rsp + 0x50], rbx
call qword [sym.imp.tbbmalloc.dll_scalable_free]
mov rax, qword [rsp + 0x58]
lea rdi, [rbx + 0x16]
cmp rax, r13
mov ecx, 0x12
cmovne rdi, rcx
add rdi, qword [rsp + 0x40]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x30]
cmp rdi, 0x10000
ja 0x1400a9a91
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
mov qword [rsp + 0x48], rax
add rax, 0x42
add rax, rdi
mov rcx, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.tbbmalloc.dll_scalable_malloc]
xor edx, edx
mov r13, rax
test rax, rax
je 0x1400a9b05
mov rcx, qword [rsp + 0x48]
lea rbx, [rax + 4]
mov dword [rax], 4
mov dword [rbx], 0xf1
lea eax, [rcx + 0x36]
mov dword [rbx + 0xc], edx
mov rdx, qword [rsp + 0x28]
lea r8, [rcx + 1]
add eax, edi
mov dword [rbx + 4], eax
add rbx, 8
lea eax, [rcx + 7]
mov word [rbx], ax
lea rcx, [rbx + 8]
mov eax, 0x1101
mov word [rbx + 2], ax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x68]
add rbx, qword [rsp + 0x48]
movzx ecx, word [rax + 0x48]
call fcn.14005329c
mov word [0x1401f7098], ax
movups xmm0, xmmword [0x1401f7090]
movups xmmword [rbx + 9], xmm0
movups xmm1, xmmword [0x1401f70a0]
movups xmmword [rbx + 0x19], xmm1
movsd xmm0, qword [0x1401f70b0]
movsd qword [rbx + 0x29], xmm0
mov eax, dword [0x1401f70b8]
mov dword [rbx + 0x31], eax
mov al, byte [0x1401f70bc]
mov byte [rbx + 0x35], al
xor eax, eax
cmp byte [rsp + 0x20], al
je 0x140053142
mov r8, qword [rsp + 0x30]
sub di, 2
mov dword [rsp + 0x2a], 0x113d
mov rdx, r14
mov word [rsp + 0x28], di
mov eax, dword [rsp + 0x28]
mov dword [rbx + 0x36], eax
mov al, byte [rsp + 0x2c]
mov byte [rbx + 0x3a], al
mov dword [rbx + 0x3b], 0x647763
add rbx, 0x3f
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
add rbx, qword [rsp + 0x30]
mov rdx, r15
mov r8, qword [rsp + 0x38]
mov dword [rbx], 0x657865
add rbx, 4
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
add rbx, qword [rsp + 0x38]
mov rdx, r12
mov r8, qword [rsp + 0x40]
mov dword [rbx], 0x626470
add rbx, 4
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
add rbx, qword [rsp + 0x40]
xor edi, edi
test bpl, bpl
je 0x140053102
mov r8, qword [rsp + 0x50]
mov rdx, rsi
mov dword [rbx], 0x646d63
add rbx, 4
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
add rbx, qword [rsp + 0x50]
mov byte [rbx], dil
test r12, r12
je 0x140053113
mov rcx, r12
call qword [sym.imp.tbbmalloc.dll_scalable_free]
test r15, r15
je 0x140053121
mov rcx, r15
call qword [sym.imp.tbbmalloc.dll_scalable_free]
test r14, r14
je 0x14005312f
mov rcx, r14
call qword [sym.imp.tbbmalloc.dll_scalable_free]
test bpl, bpl
je 0x140053142
test rsi, rsi
je 0x140053142
mov rcx, rsi
call qword [sym.imp.tbbmalloc.dll_scalable_free]
mov r8, qword [rsp + 0x58]
mov rcx, r13
mov edx, dword [rsp + 0x70]
call qword [0x1401f8788]
mov rcx, r13
call qword [sym.imp.tbbmalloc.dll_scalable_free]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14005a600
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdi, rdx
jmp 0x140052f8c
xor ecx, ecx
call fcn.14005e418
int3
mov edx, 0x44e
xor ecx, ecx
call fcn.14005e3e8
int3
cmp rax, r13
jne 0x1400a9ac6
mov rax, 0xfffffffffffffffc
xor r13d, r13d
sub rax, rbx
add rdi, rax
test rsi, rsi
je 0x1400a9ab4
mov rcx, rsi
call qword [sym.imp.tbbmalloc.dll_scalable_free]
mov bpl, r13b
cmp rdi, 0x10000
jbe 0x140052f8c
jmp 0x1400a9ac9
xor r13d, r13d
mov byte [rsp + 0x20], r13b
mov rdi, r13
test r12, r12
je 0x1400a9adf
mov rcx, r12
call qword [sym.imp.tbbmalloc.dll_scalable_free]
test r15, r15
je 0x1400a9aed
mov rcx, r15
call qword [sym.imp.tbbmalloc.dll_scalable_free]
test r14, r14
je 0x140052f8c
mov rcx, r14
call qword [sym.imp.tbbmalloc.dll_scalable_free]
nop
jmp 0x140052f8c
mov edx, 0x44e
xor ecx, ecx
call fcn.14005e3e8
int3