Function at 0x140029dc4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x31c0
call fcn.14004c67c
sub rsp, rax
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x31b0], rax
lea rbp, [rcx + 0xd0]
mov rdi, rdx
mov ebx, r8d
mov rax, qword [rbp]
mov r15, rcx
mov qword [rsp + 0x38], rcx
lea rdx, [0x14004ff50]
mov rcx, rbp
mov dword [rsp + 0x30], ebx
call qword [rax + 0x50]
mov rdx, qword [r15 + 8]
lea rcx, [rsp + 0x40]
call fcn.140030374
mov r12d, 0x2f
add rdi, 0xa
lea r14d, [r12 + 0x2d]
test ebx, ebx
jns 0x140029f0c
xor esi, esi
mov rax, rdi
mov edx, esi
cmp word [rax], r12w
je 0x140029e55
cmp word [rax], r14w
jne 0x140029e5d
inc edx
add rax, 2
jmp 0x140029e49
mov eax, edx
mov r13d, 0x20
lea rbx, [rdi + rax*2]
movzx eax, word [rbx]
or rax, r13
add rax, 0xffffffffffffff9f
cmp rax, 0x19
ja 0x140029e83
lea eax, [rdx + 1]
cmp word [rdi + rax*2], 0x3a
je 0x140029ebd
cmp edx, 3
je 0x140029ebd
cmp edx, 2
jae 0x140029ea8
lea r8, [0x1400514d0]
lea rcx, [0x1400514d0]
xor r9d, r9d
mov edx, 0x396c6471
call fcn.140016320
lea rdx, [0x14006a384]
lea rcx, [rsp + 0x50]
call fcn.14002fe38
cmp eax, esi
je 0x140029ed2
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14002ff7c
cmp eax, esi
jne 0x140029f5a
lea rcx, [rsp + 0x40]
call fcn.140030470
mov eax, 0x8007000e
mov rcx, qword [rsp + 0x31b0]
xor rcx, rsp
call fcn.140008a98
mov rbx, qword [rsp + 0x3218]
add rsp, 0x31c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp word [rdi], r12w
je 0x140029f18
cmp word [rdi], r14w
jne 0x140029f1e
add rdi, 2
jmp 0x140029f0c
movzx eax, word [rdi]
mov r13d, 0x20
or rax, r13
add rax, 0xffffffffffffff9f
cmp rax, 0x19
ja 0x14002a050
cmp word [rdi + 2], 0x3a
jne 0x14002a050
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.14002fe38
xor esi, esi
cmp eax, esi
je 0x14002a046
mov rax, qword [rsp + 0x50]
mov edx, 0x23
lea rcx, [rsp + 0x50]
lea r8d, [rdx - 0x1f]
xor r9d, r9d
call qword [rax + 0x128]
cmp eax, 0xffffffff
je 0x140029f87
lea rcx, [rsp + 0x50]
mov edx, eax
call fcn.14002f86c
mov rax, qword [rsp + 0x50]
bt dword [rsp + 0x30], 0x1f
lea rcx, [rsp + 0x50]
mov ebx, esi
cmovb ebx, r13d
call qword [rax + 0x20]
lea rcx, [rsp + 0x50]
mov rdi, rax
lea r14, [r15 + 0xc0]
call fcn.14002f3b4
mov r9d, ebx
mov rdx, rdi
mov rcx, r15
mov r8d, eax
mov qword [rsp + 0x20], r14
call fcn.14002506c
cmp eax, esi
mov ebx, eax
jl 0x14002a4ce
lea rcx, [r14 + 0x10]
mov r8d, 0x5c
mov edx, r12d
mov rax, qword [rcx]
xor r9d, r9d
call qword [rax + 0x158]
mov r12d, dword [rsp + 0x30]
test r12b, 4
je 0x14002a161
lea rcx, [r14 + 0x10]
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x30]
cmp ax, 0x3a
jne 0x14002a161
lea rcx, [r14 + 0x10]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x30]
movzx eax, ax
or rax, r13
add rax, 0xffffffffffffff9f
cmp rax, 0x19
ja 0x14002a161
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x38]
cmp eax, 0x824
jbe 0x14002a073
mov ebx, 0x8007000e
jmp 0x14002a4ce
lea rdx, [0x14006a37c]
lea rcx, [rsp + 0x50]
call fcn.14002fe38
xor esi, esi
cmp eax, esi
je 0x140029ed2
mov rdx, rdi
jmp 0x140029ec0
inc eax
lea rcx, [r14 + 0x10]
movsxd rdi, eax
mov rax, qword [rcx]
add rdi, rdi
call qword [rax + 0x20]
lea rcx, [rsp + 0x1110]
mov rdx, rax
mov r8, rdi
call fcn.140008ec4
mov rax, qword [r15]
lea rdx, [rsp + 0x1110]
mov r8d, 0x825
mov rcx, r15
call qword [rax + 0x10]
cmp eax, esi
mov ebx, eax
jl 0x14002a4ce
cmp word [rsp + 0x1110], si
je 0x14002a161
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
lea rcx, [rsp + 0x1110]
mov r8d, 4
mov rdx, rax
call fcn.1400210b8
cmp eax, esi
jne 0x14002a161
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1110]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jg 0x14002a161
mov rax, qword [rbp]
mov r8d, ecx
lea rdx, [rsp + 0x1110]
mov rcx, rbp
call qword [rax + 0x58]
cmp eax, esi
je 0x14002a046
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rbp]
mov rcx, rbp
mov rdi, rax
call qword [rdx + 0x38]
mov r9d, r12d
mov rdx, rdi
mov rcx, r15
mov r8d, eax
call fcn.140029ae0
cmp eax, esi
mov ebx, eax
jl 0x14002a4ce
mov rcx, r15
call fcn.1400257f0
test r12b, 8
je 0x14002a31a
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
lea rdx, [rsp + 0xc0]
mov r8d, 0x824
mov rcx, rax
call sub.KERNEL32.dll_GetShortPathNameW
mov r12d, eax
cmp eax, esi
jne 0x14002a284
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14002a31a
mov rdi, qword [rbp]
mov rcx, rbp
call qword [rdi + 0x38]
mov rcx, rbp
mov edx, eax
call qword [rdi + 0x198]
mov rdx, qword [rbp]
mov rcx, rbp
mov r15, rax
call qword [rdx + 0x38]
mov r13d, 0x5c
mov edx, eax
mov r8d, r13d
mov rcx, r15
call fcn.140019a30
mov rdi, rax
cmp rax, rsi
je 0x14002a31a
lea rdx, [rsp + 0xc0]
mov r8d, 0x824
mov rcx, r15
mov word [rax], si
call sub.KERNEL32.dll_GetShortPathNameW
mov word [rdi], r13w
mov r12d, eax
lea ecx, [r12 - 1]
cmp ecx, 0x823
ja 0x14002a272
mov rax, rdi
sub rax, r15
sar rax, 1
cmp r12, rax
jle 0x14002a23c
lea r8, [0x1400514d0]
lea rcx, [0x1400514d0]
xor r9d, r9d
mov edx, 0x6462646c
call fcn.140016320
mov eax, 0x825
sub eax, r12d
cmp eax, esi
jle 0x14002a260
lea rcx, [rsp + r12*2 + 0xc0]
movsxd rdx, eax
or r9, 0xffffffffffffffff
mov r8, rdi
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
dec rcx
add r12d, ecx
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x1a0]
mov r15, qword [rsp + 0x38]
lea eax, [r12 - 1]
cmp eax, 0x823
ja 0x14002a31a
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
lea rcx, [rsp + 0xc0]
mov r8d, 4
mov rdx, rax
call fcn.1400210b8
cmp eax, esi
jne 0x14002a31a
cmp r12d, 0x104
ja 0x14002a31a
mov rax, qword [rbp]
lea rdx, [rsp + 0xc0]
mov r8d, r12d
mov rcx, rbp
call qword [rax + 0x58]
cmp eax, esi
je 0x14002a046
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rbp]
mov rcx, rbp
mov rdi, rax
call qword [rdx + 0x38]
mov r9d, dword [rsp + 0x30]
mov rdx, rdi
mov rcx, r15
mov r8d, eax
call fcn.140029ae0
cmp eax, esi
mov ebx, eax
jl 0x14002a4ce
mov rcx, r15
call fcn.1400257f0
mov r13d, dword [rsp + 0x30]
test r13b, 0x10
je 0x14002a4ce
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rbp]
mov rcx, rbp
mov rdi, rax
call qword [rdx + 0x38]
mov rcx, rdi
mov edx, eax
call fcn.1400248fc
cmp eax, esi
je 0x14002a4ce
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
lea rdx, [rsp + 0x2160]
mov r8d, 0x824
mov rcx, rax
call sub.KERNEL32.dll_GetLongPathNameW
mov r12d, eax
cmp eax, esi
jne 0x14002a445
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14002a4ce
mov rdi, qword [rbp]
mov rcx, rbp
call qword [rdi + 0x38]
mov rcx, rbp
mov edx, eax
call qword [rdi + 0x198]
mov rdx, qword [rbp]
mov rcx, rbp
mov r13, rax
call qword [rdx + 0x38]
mov r15d, 0x5c
mov edx, eax
mov r8d, r15d
mov rcx, r13
call fcn.140019a30
mov rdi, rax
cmp rax, rsi
je 0x14002a433
lea rdx, [rsp + 0x2160]
mov r8d, 0x824
mov rcx, r13
mov word [rax], si
call sub.KERNEL32.dll_GetLongPathNameW
mov word [rdi], r15w
mov r12d, eax
lea ecx, [r12 - 1]
cmp ecx, 0x823
ja 0x14002a433
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x38]
mov rcx, rdi
sub rcx, r13
sar rcx, 1
sub eax, ecx
lea r13d, [rax + r12]
cmp r13d, 0x824
ja 0x14002a430
inc eax
lea rcx, [rsp + r12*2 + 0x2160]
mov rdx, rdi
movsxd r8, eax
add r8, r8
call fcn.140008ec4
mov r12d, r13d
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x1a0]
mov r13d, dword [rsp + 0x30]
lea eax, [r12 - 1]
cmp eax, 0x823
ja 0x14002a4ce
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
lea rcx, [rsp + 0x2160]
mov r8d, 4
mov rdx, rax
call fcn.1400210b8
cmp eax, esi
jne 0x14002a4ce
cmp r12d, 0x104
ja 0x14002a4ce
mov rax, qword [rbp]
lea rdx, [rsp + 0x2160]
mov r8d, r12d
mov rcx, rbp
call qword [rax + 0x58]
cmp eax, esi
je 0x14002a046
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rbp]
mov rcx, rbp
mov rdi, rax
call qword [rdx + 0x38]
mov rdx, rdi
mov rdi, qword [rsp + 0x38]
mov r9d, r13d
mov r8d, eax
mov rcx, rdi
call fcn.140029ae0
cmp eax, esi
mov ebx, eax
jge 0x14002a4df
lea rcx, [rsp + 0x40]
call fcn.140030470
mov eax, ebx
jmp 0x140029ee1
mov rcx, rdi
call fcn.1400257f0
jmp 0x14002a4ce