Function at 0x140087d2c
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rax, qword [rbp + 0x250]
mov rdi, rcx
mov r12, qword [rbp + 0x258]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], r9
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], rcx
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x140087db3
test byte [rcx + 0x1c], 1
je 0x140087db3
cmp byte [rcx + 0x19], 5
jb 0x140087db3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0x1b
call fcn.1400049d8
or qword [rsp + 0x68], 0xffffffffffffffff
lea rcx, [rbp - 0x70]
xor eax, eax
xor edx, edx
mov r8d, 0x250
mov qword [rsp + 0x50], rax
mov ebx, eax
mov qword [rsp + 0x38], rax
mov r14d, eax
mov qword [rsp + 0x48], rax
mov r15d, eax
mov qword [rsp + 0x60], rax
mov r13d, eax
mov qword [rsp + 0x58], rax
mov esi, eax
mov dword [rsp + 0x40], eax
call sub.msvcrt.dll_memset
xor eax, eax
mov byte [r12], al
cmp dword [rdi + 0x10], 0x64
jbe 0x140087e0c
mov ebx, 0x80070057
jmp 0x14008824a
test dword [rdi], 0x400
mov byte [rdi + 0x14], 1
je 0x140087e61
mov rcx, qword [0x14016f048]
lea r12, [0x14016f048]
cmp rcx, r12
je 0x140088251
test byte [rcx + 0x1c], 1
je 0x140088251
cmp byte [rcx + 0x19], 5
jb 0x140088251
mov r9, qword [rdi + 8]
lea r8, [0x14014c008]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
call fcn.1400058d8
jmp 0x140088251
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rcx]
call fcn.140082e28
mov ebx, eax
test eax, eax
jns 0x140087ec4
mov rcx, qword [0x14016f048]
lea r12, [0x14016f048]
cmp rcx, r12
je 0x140088251
test byte [rcx + 0x1c], 1
je 0x140088251
cmp byte [rcx + 0x19], 2
jb 0x140088251
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0x1d
mov r9d, eax
call fcn.1400049f8
jmp 0x140088251
mov rdx, qword [rdi + 8]
lea r8, [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140087bec
mov ebx, eax
xor eax, eax
test ebx, ebx
jns 0x140087f21
mov rcx, qword [0x14016f048]
lea r12, [0x14016f048]
cmp rcx, r12
je 0x140087f17
test byte [rcx + 0x1c], 1
je 0x140087f17
cmp byte [rcx + 0x19], 2
jb 0x140087f17
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x1e]
mov r9d, ebx
lea r8, [0x14014c008]
call fcn.1400049f8
mov r15, qword [rsp + 0x48]
jmp 0x140088256
mov r15, qword [rsp + 0x48]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [r15 + rdi*2], ax
jne 0x140087f2a
add edi, 0x106
lea rcx, [rsp + 0x50]
mov edx, edi
mov r8d, 2
call fcn.14000f99c
mov r14, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x14008824a
mov eax, edi
mov r8, r15
mov edx, edi
mov rcx, r14
mov qword [rsp + 0x48], rax
call fcn.140039dd4
xor edi, edi
mov ebx, eax
test eax, eax
js 0x14008824a
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r14 + rcx*2], di
jne 0x140087f7f
mov eax, ecx
lea r8, [rsp + 0x60]
mov edx, 0x5c
mov word [r14 + rax*2], dx
lea eax, [rcx + 1]
mov rcx, r15
mov qword [rsp + 0x50], rax
lea rdx, [0x14014be4c]
mov word [r14 + rax*2], di
call fcn.140082ef4
mov r13, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
js 0x14008824a
lea rdx, [rbp - 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x140088041
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x140088038
mov rcx, qword [0x14016f048]
lea r12, [0x14016f048]
cmp rcx, r12
je 0x140088025
test byte [rcx + 0x1c], 1
je 0x140088025
cmp byte [rcx + 0x19], 2
jb 0x140088025
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0x1f
mov dword [rsp + 0x20], eax
mov r9, r13
call fcn.140005938
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140088251
xor eax, eax
mov ebx, eax
jmp 0x14008824a
mov rdi, qword [rsp + 0x78]
movzx ecx, word [rbp - 0x44]
cmp cx, word [0x14014be54]
movzx eax, word [rbp - 0x42]
jne 0x140088064
cmp ax, word [0x14014be56]
je 0x1400881d5
cmp cx, word [0x14014be58]
jne 0x140088087
cmp ax, word [0x14014be5a]
jne 0x140088087
movzx eax, word [rbp - 0x40]
cmp ax, word [0x14014be5c]
je 0x1400881d5
mov rax, qword [rsp + 0x50]
lea r8, [rbp - 0x44]
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
mov word [r14 + rax*2], cx
mov rcx, r14
call fcn.1400506ec
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x140088246
mov edx, dword [rbp - 0x70]
mov eax, edx
and eax, 0x410
cmp eax, 0x10
jne 0x1400881ae
mov r8d, dword [rdi + 0x10]
lea r9d, [rax + 0x54]
cmp r8d, r9d
jne 0x14008811d
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400881d5
test byte [rcx + 0x1c], 1
je 0x1400881d5
cmp byte [rcx + 0x19], 3
jb 0x1400881d5
mov rcx, qword [rcx + 0x10]
lea edx, [r9 - 0x44]
mov dword [rsp + 0x20], r9d
lea r8, [0x14014c008]
lea r9, [rbp - 0x44]
call fcn.140005938
jmp 0x1400881d5
cmp dword [rsp + 0x40], r9d
jb 0x140088166
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008815d
test byte [rcx + 0x1c], 1
je 0x14008815d
cmp byte [rcx + 0x19], 4
jb 0x14008815d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0x21
mov qword [rsp + 0x20], r15
call fcn.14000fb88
mov rax, qword [rbp - 0x80]
mov byte [rax], 1
jmp 0x1400881d5
inc r8d
lea r9, [rsp + 0x58]
lea rcx, [rbp - 0x44]
call fcn.140087648
mov rsi, qword [rsp + 0x58]
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x140088246
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.1400877f0
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x140088246
inc dword [rsp + 0x40]
mov esi, eax
mov qword [rsp + 0x58], rax
jmp 0x1400881d5
lea r8, [rsp + 0x30]
mov byte [rsp + 0x30], 1
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.140086dfc
mov ebx, eax
test eax, eax
js 0x140088319
mov rax, qword [rbp - 0x78]
inc qword [rax]
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
test eax, eax
jne 0x140088046
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x14008824a
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x140088236
test byte [rcx + 0x1c], 1
je 0x140088236
cmp byte [rcx + 0x19], 2
jb 0x140088236
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0x24
mov dword [rsp + 0x20], edi
mov r9, r13
call fcn.140005938
movzx ebx, di
xor eax, eax
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov byte [r12], al
lea r12, [0x14016f048]
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindClose]
test r13, r13
je 0x14008826f
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor r13d, r13d
test r14, r14
je 0x140088280
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rdi, rdi
je 0x14008828e
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r15, r15
je 0x14008829c
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x1400882c0
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400882b4
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsi + 8], r13
mov rcx, rsi
mov qword [rsi + 8], r13
call fcn.14013dea0
mov rcx, qword [0x14016f048]
cmp rcx, r12
je 0x1400882ed
test byte [rcx + 0x1c], 1
je 0x1400882ed
cmp byte [rcx + 0x19], 5
jb 0x1400882ed
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0x25
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14013e2a0
mov rbx, qword [rsp + 0x338]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov al, byte [rsp + 0x30]
mov byte [r12], al
mov rcx, qword [0x14016f048]
lea r12, [0x14016f048]
cmp rcx, r12
je 0x140088251
test byte [rcx + 0x1c], 1
je 0x140088251
cmp byte [rcx + 0x19], 2
jb 0x140088251
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0x23
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005938
jmp 0x140088251