Function at 0x140003728
Capabilities:
Resolve path using msvcrt

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x388]
sub rsp, 0x460
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov rdi, rcx
mov ecx, 0x160
call fcn.1400023c0
mov rbx, rax
mov qword [rsp + 0x20], rax
mov esi, 0x1000
xor r13d, r13d
test rax, rax
je 0x1400037d1
mov word [rax + 0x18], r13w
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
lea rcx, [rax + 0x138]
mov qword [rax + 0x30], rcx
mov dword [rax + 0x14], esi
lea rax, [0x140006ce8]
mov qword [rcx], rax
lea rax, [rbx + 0x38]
mov qword [rcx + 8], rax
mov edx, 0x100
mov qword [rcx + 0x10], rdx
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], edx
mov qword [rbx + 0x150], r13
or dword [rbx + 0x158], 0xffffffff
jmp 0x1400037d4
mov rbx, r13
mov qword [0x1400097b0], rbx
mov edx, 4
mov rcx, rbx
call fcn.140001384
test al, al
je 0x1400037f6
xor edx, edx
mov rcx, rbx
call fcn.140001384
mov ecx, 0x460
call fcn.1400023c0
mov rdx, rax
mov qword [rsp + 0x20], rax
lea rax, [0x140006ce8]
mov r8d, 0x400
test rdx, rdx
je 0x14000385f
mov dword [rdx], 0xf1
mov word [rdx + 0x20], r13w
mov qword [rdx + 0x28], r13
mov qword [rdx + 0x30], r13
lea rcx, [rdx + 0x440]
mov qword [rdx + 0x38], rcx
mov dword [rdx + 0x1c], esi
mov qword [rcx], rax
lea rax, [rdx + 0x40]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], r8
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov dword [rdx + 0x18], r8d
mov qword [rdx + 0x458], r13
jmp 0x140003862
mov rdx, r13
mov qword [0x1400097c0], rdx
mov r15d, 0x104
mov r8d, r15d
mov rdx, rdi
lea rcx, [rbp + 0x140]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
test rax, rax
cmove rax, rdi
mov rcx, rax
call fcn.140002484
mov r14, rax
mov rcx, rax
call fcn.1400023f0
mov rsi, rax
or rdi, 0xffffffffffffffff
mov rbx, rdi
inc rbx
cmp byte [rax + rbx], r13b
jne 0x1400038a6
lea eax, [rbx + 7]
mov word [rsp + 0x20], ax
mov eax, 0x1101
mov word [rsp + 0x22], ax
mov dword [rsp + 0x24], r13d
mov rcx, qword [0x1400097c0]
add rcx, 8
mov r8d, 8
lea rdx, [rsp + 0x20]
call fcn.1400014b4
mov rcx, qword [0x1400097c0]
add rcx, 8
lea r8, [rbx + 1]
mov rdx, rsi
call fcn.1400014b4
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1400097c0]
add rcx, 8
mov r8d, 0x2f
lea rdx, [0x140009038]
call fcn.1400014b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p__wpgmptr]
mov rcx, qword [rax]
call fcn.140002484
mov r12, rax
mov rcx, rax
call fcn.1400023f0
mov r14, rax
mov rbx, rdi
inc rbx
cmp byte [rax + rbx], r13b
jne 0x14000393d
mov edx, r15d
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetcwd]
lea rcx, [rsp + 0x30]
call fcn.140002484
mov r15, rax
mov rcx, rax
call fcn.1400023f0
mov rsi, rax
inc rdi
cmp byte [rax + rdi], r13b
jne 0x14000396c
inc rdi
mov dword [rsp + 0x22], 0x113d
lea eax, [rbx + 0xd]
add ax, di
mov word [rsp + 0x20], ax
mov rcx, qword [0x1400097c0]
add rcx, 8
mov r8d, 5
lea rdx, [rsp + 0x20]
call fcn.1400014b4
mov rcx, qword [0x1400097c0]
add rcx, 8
mov r8d, 4
lea rdx, [0x140006ce0]
call fcn.1400014b4
mov rcx, qword [0x1400097c0]
add rcx, 8
mov r8, rdi
mov rdx, rsi
call fcn.1400014b4
mov rcx, qword [0x1400097c0]
add rcx, 8
mov r8d, 4
lea rdx, [0x140006ce4]
call fcn.1400014b4
mov rcx, qword [0x1400097c0]
add rcx, 8
lea r8, [rbx + 1]
mov rdx, r14
call fcn.1400014b4
mov rsi, qword [0x1400097c0]
movsxd r8, dword [rsi + 0x18]
mov eax, r8d
sub eax, dword [rsi + 0x10]
add eax, dword [rsi + 8]
mov r9d, 1
cmp eax, r9d
jge 0x140003b13
mov ecx, 0x7fffffff
sub rcx, r8
cmp rcx, r9
jb 0x140003b29
mov al, byte [rsi + 0x20]
test al, al
je 0x140003a63
cmp al, 2
jne 0x140003a52
cmp byte [rsi + 0x21], r13b
jne 0x140003a63
cmp al, r9b
jne 0x140003a5d
cmp byte [rsi + 0x21], r13b
je 0x140003a63
lea ebx, [r8 + 1]
jmp 0x140003a8a
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [rsi + 0x1c]
cmp eax, r9d
cmovl eax, r9d
add eax, ecx
lea ebx, [r8 - 1]
add ebx, eax
neg ecx
and ebx, ecx
lea eax, [r8 + 1]
cmp eax, ebx
cmovg ebx, eax
mov rcx, qword [rsi + 0x38]
mov rax, qword [rcx]
mov edx, ebx
call qword [rax]
mov r14, rax
test rax, rax
je 0x140003b29
mov dword [rsi + 0x18], ebx
mov edi, dword [rsi + 0x10]
sub edi, dword [rsi + 8]
movsxd rbx, edi
mov r8, rbx
mov rdx, qword [rsi + 8]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add rbx, r14
mov eax, dword [rsi + 0x18]
sub eax, edi
movsxd r8, eax
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsi + 0x38]
mov rax, qword [rcx]
mov rdx, qword [rsi + 8]
call qword [rax + 0x10]
mov rdx, qword [rsi + 8]
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rbx
cmp rdx, r14
je 0x140003b02
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x140003b02
mov r8, r14
mov rcx, qword [rsi + 0x30]
call rax
mov r9d, 1
mov byte [rsi + 0x21], r9b
mov dword [rsi + 0x1c], 0x1000
mov rcx, qword [rsi + 0x10]
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov byte [rcx], r13b
add qword [rsi + 0x458], r9
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, 0x8b8
call fcn.1400023c0
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140003b59
mov rcx, rax
call fcn.140002ac8
jmp 0x140003b5c
mov rax, r13
mov qword [0x140009820], rax
mov ecx, 0x468
call fcn.1400023c0
mov rdx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140003bde
mov dword [rax], 0xf4
mov word [rax + 0x20], r13w
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], r13
lea rcx, [rax + 0x440]
mov qword [rax + 0x38], rcx
mov dword [rax + 0x1c], 0x1000
lea rax, [0x140006ce8]
mov qword [rcx], rax
lea rax, [rdx + 0x40]
mov qword [rcx + 8], rax
mov r8d, 0x400
mov qword [rcx + 0x10], r8
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov dword [rdx + 0x18], r8d
mov qword [rdx + 0x458], r13
mov rax, qword [0x140009820]
mov qword [rdx + 0x460], rax
jmp 0x140003be1
mov rdx, r13
mov qword [0x1400097c8], rdx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140005220
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret