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

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
mov eax, 0x4ac0
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x4ab0], rax
cmp dword [rcx + 0xd8], 0
mov r14, rcx
jl 0x1402bf237
cmp dword [rcx + 4], 0
jl 0x1402bf237
mov eax, dword [0x140c47dd0]
test al, 1
jne 0x1402be865
or eax, 1
mov dword [0x140c47dd0], eax
call fcn.140055490
mov rcx, rax
mov qword [0x140c47dc8], rax
jmp 0x1402be86c
mov rcx, qword [0x140c47dc8]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8d, dword [r14 + 0xd8]
mov edx, dword [r14 + 4]
mov rcx, rax
call fcn.1402bdea0
test rax, rax
mov rsi, rax
jne 0x1402be8e4
call fcn.140049500
lea rdx, [0x14037f050]
mov rdi, qword [rax]
mov rcx, rax
call qword [rdi]
lea rcx, [0x14037f060]
mov rdx, rax
call qword [sym.imp.MSVCR80.dll_wprintf]
call fcn.140049470
lea rcx, [0x14037f070]
mov rbx, qword [rax]
mov edx, 0x824
mov rdi, rax
call fcn.1402bac60
lea rdx, [0x14037f088]
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x1402bebb0
mov rax, qword [rax]
mov qword [rsp + 0x4af8], rbp
mov rcx, rsi
mov qword [rsp + 0x4b00], r12
mov qword [rsp + 0x4b08], r15
call qword [rax + 0x30]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x50]
mov rdx, qword [rsi]
xor r13d, r13d
mov rcx, rsi
mov qword [rsp + 0x38], r13
mov word [rsp + 0x30], 0x2a
mov r15d, eax
call qword [rdx + 0x38]
mov rbx, rax
mov qword [rsp + 0x40], rax
call fcn.140049400
mov rdx, qword [rsi]
mov rcx, rsi
mov r12, rax
mov qword [rsp + Ordinal_4770], rax
call qword [rdx + 0x30]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xd0]
mov rbp, r13
test eax, eax
mov dword [rsp + 0x34], eax
je 0x1402bebf2
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x28]
mov rdx, qword [rsi]
mov rcx, rsi
mov rbx, qword [rax]
mov rdi, rax
call qword [rdx + 0x30]
mov rdx, rax
mov rcx, rdi
call qword [rbx + 8]
mov rbp, rax
call fcn.140049400
mov rdx, qword [rsi]
mov rcx, rsi
mov r12, rax
call qword [rdx + 0x28]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x30]
test rax, rax
mov rdi, rax
je 0x1402bea05
nop
nop
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x78]
test al, al
je 0x1402be9cd
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0xc0]
test eax, eax
jne 0x1402be9e9
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x38]
test rax, rax
mov rdi, rax
jne 0x1402be9b0
jmp 0x1402bea05
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x38]
mov rdx, qword [rdi]
mov rcx, rdi
mov qword [rsp + 0x38], rax
call qword [rdx + 0x50]
mov word [rsp + 0x30], ax
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x30]
test rax, rax
mov rbx, rax
je 0x1402bea76
nop
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x78]
test al, al
je 0x1402bea5c
mov rax, qword [rbx]
mov rdi, qword [r12]
mov rcx, rbx
call qword [rax + 0x38]
mov edx, r15d
mov rcx, r12
mov r8, rax
call qword [rdi + 0x30]
mov rax, qword [rbx]
mov rdi, qword [r12]
mov rcx, rbx
call qword [rax + 0x50]
mov rcx, r12
movzx edx, ax
call qword [rdi + 0x20]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x38]
test rax, rax
mov rbx, rax
jne 0x1402bea20
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rax]
mov rdx, rbx
mov rcx, rax
call qword [rdi + 0x60]
test eax, eax
jne 0x1402bebcf
call fcn.140049500
lea rdx, str.0363
mov rdi, qword [rax]
mov rcx, rax
call qword [rdi]
lea rcx, [0x14037f0b0]
mov rdx, rax
call qword [sym.imp.MSVCR80.dll_wprintf]
call fcn.140049470
lea rbx, [0x140c492d0]
mov rcx, rbx
xor edx, edx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, [0x14037f0c0]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1402beb83
xor eax, eax
lea rdx, [0x14037f684]
lea rcx, [rsp + 0x12a0]
mov r8d, 0x84a
mov byte [rsp + Ordinal_4770], r13b
mov qword [rsp + Ordinal_4770], rax
mov word [rsp + Ordinal_4780], ax
mov byte [rsp + Ordinal_4780], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rdx + rcx - 1], al
jne 0x1402beb40
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x12a0]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1402beb70
mov r13, rbx
mov rax, qword [rsi]
lea rdx, [0x14037f0d8]
mov r8, r13
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
mov r12, qword [rsp + 0x4b00]
mov rbp, qword [rsp + 0x4af8]
mov r15, qword [rsp + 0x4b08]
mov rcx, qword [rsp + 0x4ab0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x4ac0
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [r12]
mov r8, rbx
mov edx, r15d
mov rcx, r12
call qword [rax + 0x30]
mov r12, qword [rsp + 0x12a0]
lea rcx, [rsp + 0x22b2]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x22b0], r13w
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x12b2]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + Ordinal_4791], r13w
call sub.ntdll.dll_memset
lea rdx, [r14 + 0xe0]
lea rcx, [rsp + 0x22b0]
sub rcx, rdx
movzx eax, word [rdx]
add rdx, 2
test ax, ax
mov word [rcx + rdx - 2], ax
jne 0x1402bec40
lea rcx, [r14 + 0x8e0]
lea rdx, [rsp + 0x12b0]
sub rdx, rcx
nop
nop
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdx + rcx - 2], ax
jne 0x1402bec70
cmp word [rsp + 0x12b0], 0x5c
je 0x1402bece9
lea rcx, [rsp + 0x1ab2]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x1ab0], r13w
call sub.ntdll.dll_memset
lea r8, [rsp + 0x12b0]
lea rdx, [0x14037f0e8]
lea rcx, [rsp + 0x1ab0]
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rdx, r13
nop
nop
movzx eax, word [rsp + rdx + 0x1ab0]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x12ae], ax
jne 0x1402becd0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x12b0]
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx - 1]
cdqe
cmp word [rsp + rax*2 + 0x12ae], 0x5c
jne 0x1402bed17
mov word [rsp + rax*2 + 0x12ae], r13w
lea rcx, [rsp + 0x22b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1402bee3d
call fcn.140049500
lea rdx, str.1204
mov rdi, qword [rax]
mov rcx, rax
call qword [rdi]
lea r8, [rsp + 0x22b0]
lea rcx, str._n_s__s__n
mov rdx, rax
call qword [sym.imp.MSVCR80.dll_wprintf]
call fcn.140049470
lea rbx, [0x140c492d0]
mov rcx, rbx
xor edx, edx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, [0x14037f118]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1402bee23
xor eax, eax
lea rdx, [0x14037f684]
lea rcx, [rsp + 0x12a0]
mov r8d, 0x866
mov byte [rsp + Ordinal_4770], r13b
mov qword [rsp + Ordinal_4770], rax
mov word [rsp + Ordinal_4780], ax
mov byte [rsp + Ordinal_4780], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rdx + rcx - 1], al
jne 0x1402bede0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x12a0]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1402bee10
mov r13, rbx
mov rax, qword [rsi]
lea rdx, [0x14037f130]
mov r8, r13
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1402beb98
lea rcx, [rsp + 0x3ab2]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x3ab0], r13w
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x42b2]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x42b0], r13w
call sub.ntdll.dll_memset
mov rax, qword [r12]
movzx r9d, word [rsp + 0x22b0]
lea rdx, [rsp + 0x3ab0]
mov r8d, 0x400
mov rcx, r12
call qword [rax + 0x60]
mov rax, qword [r12]
lea rdx, [rsp + 0x42b0]
mov r9d, r15d
mov r8d, 0x400
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [rax + 0x38]
lea rcx, [rsp + 0x32b2]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x32b0], r13w
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x2ab2]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x2ab0], r13w
call sub.ntdll.dll_memset
lea r9, [rsp + 0x22b4]
lea r8, [rsp + 0x3ab0]
lea rdx, str._Volume_s_s
lea rcx, [rsp + 0x32b0]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea r9, [rsp + 0x12b0]
lea r8, [rsp + 0x42b0]
lea rdx, str._s_s
lea rcx, [rsp + 0x2ab0]
call qword [sym.imp.MSVCR80.dll__swprintf]
mov ebx, r13d
mov rcx, r13
nop
nop
nop
movzx eax, word [rsp + rcx + 0x32b0]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x1aae], ax
jne 0x1402bef50
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x1ab0]
repne scasw ax, word [rdi]
mov rax, qword [str..]
lea rdx, [rsp + 0x50]
mov qword [rdi - 2], rax
movzx eax, word [0x14037f180]
lea rcx, [rsp + 0x1ab0]
mov word [rdi + 6], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12d, 1
cmp rax, 0xffffffffffffffff
jne 0x1402befb4
mov ebx, r12d
jmp 0x1402befbd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
call fcn.140049500
lea rdx, str.1205
mov rdi, qword [rax]
mov rcx, rax
call qword [rdi]
lea rcx, [0x14037f198]
mov rdx, rax
call qword [sym.imp.MSVCR80.dll_wprintf]
test ebx, ebx
je 0x1402bf0bc
lea rdx, [rsp + 0x2ab0]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_672]
call fcn.140222360
test eax, eax
je 0x1402bf090
lea rcx, [rsp + 0x32b0]
mov dx, 0x5c
call qword [sym.imp.ntdll.dll_wcsrchr]
test rax, rax
mov r11, rax
je 0x1402bf046
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x2ab0]
repne scasw ax, word [rdi]
xor ecx, ecx
movzx eax, word [r11 + rcx]
add rcx, 2
test ax, ax
mov word [rdi + rcx - 4], ax
jne 0x1402bf033
lea r8, [rsp + 0x2ab0]
lea rdx, [rsp + 0x32b0]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_672]
call fcn.140221b70
test eax, eax
je 0x1402bf090
call fcn.140049500
lea rdx, [0x14037f1c8]
mov rdi, qword [rax]
mov rcx, rax
call qword [rdi]
lea rcx, [0x14037f1d8]
mov rdx, rax
call qword [sym.imp.MSVCR80.dll_wprintf]
jmp 0x1402bf143
call fcn.140049500
lea rdx, [0x14037f1a8]
mov rdi, qword [rax]
mov rcx, rax
call qword [rdi]
lea rcx, [0x14037f1b8]
mov rdx, rax
call qword [sym.imp.MSVCR80.dll_wprintf]
mov r12d, r13d
jmp 0x1402bf143
lea rdx, [rsp + 0x2ab0]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_672]
call fcn.140222360
test eax, eax
je 0x1402bf11c
lea r8, [rsp + 0x2ab0]
lea rdx, [rsp + 0x32b0]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_672]
call fcn.140221e60
test eax, eax
je 0x1402bf11c
call fcn.140049500
lea rdx, str.1206
mov rdi, qword [rax]
mov rcx, rax
call qword [rdi]
lea rcx, [0x14037f218]
mov rdx, rax
call qword [sym.imp.MSVCR80.dll_wprintf]
jmp 0x1402bf143
call fcn.140049500
lea rdx, str.1207
mov rdi, qword [rax]
mov rcx, rax
call qword [rdi]
lea rcx, [0x14037f1f8]
mov rdx, rax
call qword [sym.imp.MSVCR80.dll_wprintf]
mov r12d, r13d
cmp dword [rsp + 0x34], r13d
je 0x1402bf22f
call fcn.140049400
mov rdx, qword [rbp]
mov rcx, rbp
mov rsi, rax
call qword [rdx + 0x30]
test rax, rax
mov rbx, rax
je 0x1402bf1bc
nop
nop
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x78]
test al, al
je 0x1402bf1aa
mov rax, qword [rbx]
mov rdi, qword [rsi]
mov rcx, rbx
call qword [rax + 0x38]
mov edx, r15d
mov rcx, rsi
mov r8, rax
call qword [rdi + 0x30]
mov rax, qword [rbx]
mov rdi, qword [rsi]
mov rcx, rbx
call qword [rax + 0x50]
mov rcx, rsi
movzx edx, ax
call qword [rdi + 0x20]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x38]
test rax, rax
mov rbx, rax
jne 0x1402bf170
mov rax, qword [rbp]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [rax + 0x58]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [rsp + 0x38]
mov word [rsp + 0x34], 0x2a
mov rax, qword [rsi]
lea rdx, [rsp + 0x34]
mov r9, rdi
mov r8d, r15d
mov rcx, rsi
call qword [rax + 0x50]
movzx edx, word [rsp + 0x34]
movzx ebx, word [rsp + 0x30]
cmp dx, bx
je 0x1402bf226
cmp dx, 0x2a
je 0x1402bf214
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov rax, qword [rsi]
mov r9, rdi
mov r8d, r15d
movzx edx, bx
mov rcx, rsi
call qword [rax + 0x18]
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx]
mov eax, r12d
jmp 0x1402beb98
call fcn.140049500
lea rdx, [0x14037f000]
mov rdi, qword [rax]
mov rcx, rax
call qword [rdi]
lea rcx, [0x14037f010]
mov rdx, rax
call qword [sym.imp.MSVCR80.dll_wprintf]
call fcn.140049470
lea rbx, [0x140c492d0]
mov rcx, rbx
xor edx, edx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, [0x14037f020]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1402bf29c
xor r13d, r13d
jmp 0x1402bf333
xor eax, eax
lea rdx, [0x14037f684]
lea rcx, [rsp + 0x12a0]
mov r8d, reloc.MFC80U.DLL_Ordinal_2071
mov byte [rsp + Ordinal_4770], 0
mov qword [rsp + Ordinal_4770], rax
mov word [rsp + Ordinal_4780], ax
mov byte [rsp + Ordinal_4780], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rdx + rcx - 1], al
jne 0x1402bf2f0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x12a0]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1402bf320
mov r13, rbx
mov rax, qword [rsi]
lea rdx, [0x14037f038]
mov r8, r13
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1402bebb0