Function at 0x140143530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x100
mov rax, qword [0x1405921c0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x41], r9
mov r14, r8
mov r13, rdx
mov rsi, rcx
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x29], rdx
mov dword [rsp + 0x20], 0
mov rax, qword [r8]
mov qword [rsp + 0x50], rax
add rax, 0xfffffffffffffff0
lea r15, [0x140592ec8]
cmp rax, r15
je 0x140143592
lock inc dword [rax]
lea rax, [rsp + 0x50]
mov qword [rbp - 0x31], rax
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.1401353e0
mov rdi, qword [rax]
mov qword [rbp - 0x31], rdi
lea rbx, [rdi - 0x10]
lea rax, [rdi - 0x10]
cmp rax, r15
je 0x1401435bf
lock inc dword [rax]
mov dword [rsp + 0x20], 8
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff0
mov r12, 0xffffffffffffffff
cmp rcx, r15
je 0x1401435f0
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, r12d
jne 0x1401435f0
call fcn.1400c9d7c
nop
mov r8, rdi
mov rdx, r13
mov rcx, rsi
call fcn.1401446f0
mov dword [rsp + 0x20], 9
cmp rbx, r15
je 0x140143621
mov eax, r12d
lock xadd dword [rbx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140143621
mov rcx, rbx
call fcn.1400c9d7c
mov rax, qword [r13]
cmp byte [rax], 0
je 0x140143c82
mov rdx, r13
lea rcx, [rbp - 0x21]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x140143c82
mov r15d, 1
mov r14, qword [r14]
mov qword [rsp + 0x28], r14
lea rax, [r14 - 0x10]
lea rdx, [0x140592ec8]
cmp rax, rdx
je 0x14014366e
lock inc dword [rax]
lea rsi, [0x140592ed8]
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x1401436f6
lea rdx, [rbp - 0x71]
lea rcx, [rsp + 0x28]
call fcn.14000d8c0
mov rbx, qword [rbp - 0x71]
mov rax, r12
lea rax, [rax + 1]
cmp byte [rbx + rax], 0
jne 0x140143694
lea rdi, [rax + rbx]
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x69]
call fcn.140132d10
mov r8, qword [rbp - 0x69]
cmp r8, rbx
ja 0x1401436ce
mov rbx, rsi
mov qword [rsp + 0x58], rbx
mov rcx, rsi
lea r14, [0x140592ec8]
jmp 0x14014371d
cmp r14, rbx
jb 0x1401436d8
cmp r8, rdi
jae 0x1401436f6
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140136ad0
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
lea r14, [0x140592ec8]
jmp 0x14014371d
mov rbx, qword [rsp + 0x28]
mov qword [rsp + 0x58], rbx
lea rax, [rbx - 0x10]
lea r14, [0x140592ec8]
cmp rax, r14
je 0x140143718
lock inc dword [rax]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x20], SafeArrayCopy
cmp byte [rcx], 0
jne 0x14014372f
xor dil, dil
jmp 0x140143769
mov rax, r12
inc rax
cmp byte [rcx + rax], 0
jne 0x140143732
add rax, rcx
xor edx, edx
dec rax
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
jne 0x140143755
inc edx
cmp edx, 4
jl 0x140143740
mov qword [rbp - 0x61], rax
lea rcx, [rbp - 0x61]
call fcn.14000d540
cmp eax, 0x29
sete dil
lea rcx, [rbx - 0x10]
cmp rcx, r14
je 0x140143785
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140143785
call fcn.1400c9d7c
test dil, dil
je 0x1401439f5
mov byte [rsp + 0x30], 1
mov edx, 0x28
lea rcx, [rsp + 0x28]
call fcn.140134dd0
mov ebx, eax
mov edx, 0x29
lea rcx, [rsp + 0x28]
call fcn.140134dd0
mov r14d, eax
test ebx, ebx
jle 0x1401437f6
cmp eax, ebx
jle 0x1401437f6
lea r15d, [rbx + 1]
mov r9d, eax
mov r8d, r15d
lea rdx, [rbp - 0x59]
lea rcx, [rsp + 0x28]
call fcn.1401332a0
mov dword [rsp + 0x20], 0x1b
lea rdx, str.0123456789
mov rcx, rax
call fcn.140132150
test al, al
je 0x1401437f6
mov dil, 1
jmp 0x1401437fd
xor dil, dil
lea r15d, [rbx + 1]
test byte [rsp + 0x20], 2
je 0x140143830
and dword [rsp + 0x20], 0xfffffffd
mov rcx, qword [rbp - 0x59]
add rcx, 0xfffffffffffffff0
lea rdx, [0x140592ec8]
cmp rcx, rdx
je 0x140143830
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140143830
call fcn.1400c9d7c
test dil, dil
je 0x140143a09
mov r9d, r14d
mov r8d, r15d
lea rdx, [rbp - 0x51]
lea rcx, [rsp + 0x28]
call fcn.1401332a0
mov rcx, qword [rax]
call fcn.1400ddab4
mov r15d, eax
mov rcx, qword [rbp - 0x51]
add rcx, 0xfffffffffffffff0
lea rdi, [0x140592ec8]
cmp rcx, rdi
je 0x14014387f
mov edx, r12d
lock xadd dword [rcx], edx
dec edx
cmp edx, 0xffffffff
jne 0x14014387f
call fcn.1400c9d7c
test ebx, ebx
jle 0x1401438e2
xor edx, edx
mov r8, qword [rsp + 0x28]
nop word [rax + rax]
movzx ecx, byte [r8]
test cl, cl
je 0x1401438cc
inc edx
inc r8
test cl, cl
jns 0x1401438b4
mov al, 0x40
test al, cl
je 0x1401438b4
cmp al, 8
jbe 0x1401438b4
inc r8
shr al, 1
test cl, al
jne 0x1401438a7
cmp edx, ebx
jl 0x140143890
mov rdx, qword [rsp + 0x28]
lea rcx, [rbp - 0x49]
call fcn.140136ad0
mov rsi, qword [rbp - 0x49]
jmp 0x1401438e2
mov rax, qword [rsp + 0x28]
add rax, 0xfffffffffffffff0
cmp rax, rdi
je 0x1401438dd
lock inc dword [rax]
mov rsi, qword [rsp + 0x28]
or dword [rsp + 0x20], 0x20
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x28], rsi
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x14014390d
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14014390d
call fcn.1400c9d7c
mov cl, 1
mov r14, qword [rsp + 0x28]
add r14, 0xfffffffffffffff0
lea rax, [rsp + 0x48]
mov qword [rbp - 0x19], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
cmp r14, rdi
je 0x140143934
lock inc dword [r14]
test cl, cl
je 0x140143a1f
inc r15d
mov word [rsp + 0x38], 0x28
lea rcx, [rsp + 0x38]
mov rax, r12
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140143950
test eax, eax
jle 0x1401439a2
mov rcx, qword [rsp + 0x28]
mov rsi, r12
inc rsi
cmp byte [rcx + rsi], 0
jne 0x140143965
movsxd rdi, eax
lea rdx, [rdi + rsi]
lea rcx, [rsp + 0x40]
call fcn.140136ea0
movsxd rbx, esi
add rbx, qword [rsp + 0x40]
mov r8, rdi
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140279770
mov byte [rdi + rbx], 0
lea rdi, [0x140592ec8]
mov edx, r15d
lea rcx, [rbp + 7]
call fcn.140136690
lea r8, [rbp + 7]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140135520
mov word [rsp + 0x34], 0x29
lea rcx, [rsp + 0x34]
mov rax, r12
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1401439d0
lea r8, [rsp + 0x34]
add r8, rax
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.140135520
jmp 0x140143b4e
movzx ecx, byte [rbp + 0x7f]
mov byte [rsp + 0x30], cl
lea rdi, [0x140592ec8]
jmp 0x14014390f
mov r15d, 1
movzx ecx, r15b
lea rdi, [0x140592ec8]
jmp 0x14014390f
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
jne 0x140143a2d
xor eax, eax
jmp 0x140143a78
mov rax, qword [rsp + 0x28]
xor edx, edx
movzx ecx, byte [rax]
inc rax
test cl, cl
jns 0x140143a63
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
jne 0x140143a67
nop dword [rax]
inc rax
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
je 0x140143a50
inc rdx
jmp 0x140143a34
test ecx, ecx
je 0x140143a6c
inc rdx
jmp 0x140143a34
dec edx
lea rcx, [rsp + 0x28]
call fcn.14000d6f0
movzx ecx, ax
call fcn.1400df16c
test eax, eax
je 0x140143aed
mov word [rsp + 0x3c], 0x5f
lea rcx, [rsp + 0x3c]
mov rax, r12
inc rax
cmp byte [rcx + rax], 0
jne 0x140143a93
test eax, eax
jle 0x140143aed
mov rcx, qword [rsp + 0x28]
mov rsi, r12
nop dword [rax + rax]
inc rsi
cmp byte [rcx + rsi], 0
jne 0x140143ab0
movsxd rdi, eax
lea rdx, [rdi + rsi]
lea rcx, [rsp + 0x40]
call fcn.140136ea0
movsxd rbx, esi
add rbx, qword [rsp + 0x40]
mov r8, rdi
lea rdx, [rsp + 0x3c]
mov rcx, rbx
call fcn.140279770
mov byte [rdi + rbx], 0
lea rdi, [0x140592ec8]
inc r15d
lea r11, [rbp + 0x17]
mov edx, r15d
lea rcx, [rbp + 0x17]
call fcn.140136690
mov rsi, rax
sub r11d, eax
test r11d, r11d
jle 0x140143b4e
mov rcx, qword [rsp + 0x40]
mov rbx, r12
inc rbx
cmp byte [rcx + rbx], 0
jne 0x140143b13
movsxd rdi, r11d
lea rdx, [rdi + rbx]
lea rcx, [rsp + 0x40]
call fcn.140136ea0
movsxd rbx, ebx
add rbx, qword [rsp + 0x40]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140279770
mov byte [rdi + rbx], 0
lea rdi, [0x140592ec8]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
add rax, 0xfffffffffffffff0
cmp rax, rdi
je 0x140143b64
lock inc dword [rax]
mov rdx, qword [rbp - 0x41]
lea rcx, [rsp + 0x48]
call fcn.1401353e0
mov rcx, qword [rax]
mov qword [rsp + 0x60], rcx
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x140143b86
lock inc dword [rcx]
or dword [rsp + 0x20], 4
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x140143bad
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140143bad
call fcn.1400c9d7c
nop
mov r8, qword [rsp + 0x60]
lea rdx, [rbp - 0x79]
mov rcx, qword [rbp - 0x39]
call fcn.1401446f0
mov rdx, rax
mov rax, qword [r13]
mov rcx, qword [rdx]
mov qword [r13], rcx
mov qword [rdx], rax
mov rcx, qword [rbp - 0x79]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x140143bf1
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140143bf1
call fcn.1400c9d7c
nop
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x140143c13
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140143c13
call fcn.1400c9d7c
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x140143c34
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140143c34
call fcn.1400c9d7c
mov rax, qword [r13]
cmp byte [rax], 0
je 0x140143c61
mov rdx, r13
lea rcx, [rbp - 0x11]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
movzx ecx, byte [rsp + 0x30]
jne 0x140143921
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x140143c82
lock xadd dword [rcx], r12d
dec r12d
cmp r12d, 0xffffffff
jne 0x140143c82
call fcn.1400c9d7c
mov rax, r13
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400c9d20
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret