Function at 0x180082e90
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1aa0]
mov eax, 0x1ba0
call fcn.1800a7270
sub rsp, rax
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x1bd8], rbx
mov qword [rsp + 0x1be0], rsi
mov qword [rsp + 0x1be8], rdi
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x1a90], rax
mov r15d, edx
mov rbx, rcx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x290]
call fcn.1800cf2b0
xor edi, edi
mov r13d, edi
mov r12d, edi
mov ecx, 0x1000
call fcn.1800dd380
mov rsi, rax
test rax, rax
jne 0x180083007
lea r8, str.Failed_to_allocate_memory
mov edx, 0x7ff
lea rcx, [rbp + 0x290]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x180082ffd
lea rax, [rbp - 0x10]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x38]
mov qword [rbp - 0x70], rax
mov qword [rbp + 8], 7
mov qword [rbp], rdi
mov word [rbp - 0x10], di
lea r8d, [rdi + 0x13]
lea rdx, str.GridCommonUtils.cpp
lea rcx, [rbp - 0x10]
call fcn.18001eca0
nop
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
lea r8d, [rdi + 0x14]
lea rdx, str.getFileFromDirectory
lea rcx, [rsp + 0x38]
call fcn.18001eca0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x290]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x60], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x60], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x4f6
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x58]
lea edx, [rdi + 3]
call fcn.180019ae4
mov eax, 2
jmp 0x180083783
xor edx, edx
mov r8d, 0x1000
mov rcx, rsi
call fcn.1800cf2b0
mov qword [rbp + 0x38], send
mov qword [rbp + 0x30], rdi
mov byte [rbp + 0x20], dil
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x10], rdi
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xa90]
call fcn.1800cf2b0
mov r9, rbx
lea r8, str._hs.
mov edx, 0x400
lea rcx, [rbp + 0xa90]
call fcn.18000d574
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0xa90]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x180083188
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, str.Unable_to_open_directory__s___d_
mov edx, 0x7ff
lea rcx, [rbp + 0x290]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 5
jl 0x180083176
lea rax, [rbp - 0x10]
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov qword [rbp + 8], 7
mov qword [rbp], rdi
mov word [rbp - 0x10], di
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.GridCommonUtils.cpp
lea rcx, [rbp - 0x10]
call fcn.18001eca0
nop
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
mov r8d, socket
lea rdx, str.getFileFromDirectory
lea rcx, [rsp + 0x38]
call fcn.18001eca0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x290]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x60], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x507
lea r9, [rsp + 0x38]
lea r8, [rbp - 0x68]
mov edx, 5
call fcn.180019ae4
mov rcx, rsi
call fcn.1800dd360
mov eax, 2
jmp 0x180083776
lea rdx, [rbp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
or r14, 0xffffffffffffffff
cmp eax, 1
jne 0x18008368b
mov ecx, 0x2e2e
cmp r12d, 0x14
jge 0x1800835a4
movzx eax, word [rbp + 0x6c]
cmp ax, 0x2e
je 0x180083482
cmp ax, cx
je 0x180083482
test byte [rbp + 0x40], 0x10
jne 0x180083482
mov qword [rbp + 8], send
mov qword [rbp], rdi
mov byte [rbp - 0x10], 0
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
test ax, ax
jne 0x1800831ff
mov r8, rdi
jmp 0x18008321b
lea rax, [rbp + 0x6c]
mov r8, r14
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180083210
lea rdx, [rbp + 0x6c]
lea rcx, [rsp + 0x38]
call fcn.18001eca0
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x70]
call fcn.180085e30
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.18004a98c
mov rax, qword [rbp - 0x78]
cmp rax, 0x10
jb 0x180083294
inc rax
mov rcx, qword [rsp + 0x70]
cmp rax, 0x1000
jb 0x18008328f
test cl, 0x1f
jne 0x1800834a8
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1800834a2
sub rcx, rax
cmp rcx, 8
jb 0x18008349c
cmp rcx, 0x27
ja 0x180083496
mov rcx, rax
call fcn.1800a6510
mov qword [rbp - 0x78], send
mov qword [rbp - 0x80], rdi
mov byte [rsp + 0x70], 0
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x1800832c2
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180020b60
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x290]
call fcn.1800cf2b0
lea rcx, [rbp + 0x290]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1800832e0
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1800832f0
lea rcx, [rbp + 0x290]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x180083310
movzx eax, word [0x1801666b0]
mov word [rcx], ax
lea r8, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae r8, qword [rbp - 0x10]
lea rcx, [rbp + 0x290]
dec rcx
nop dword [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x180083340
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180083350
lea rcx, [rbp + 0x290]
mov rax, r14
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x180083370
inc r13d
add r13d, eax
cmp r13d, 0x1000
jge 0x1800834ae
mov rax, qword [rbp + 0x44]
mov qword [rbp + 0x10], rax
test r15d, r15d
je 0x1800833ef
cmp r15d, 1
jne 0x180083479
lea rcx, [rsi - 1]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1800833a7
lea r8, [rbp + 0x290]
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1800833c0
lea rcx, [rsi - 1]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1800833d4
movzx eax, word [0x180138adc]
mov word [rcx], ax
inc r12d
jmp 0x180083479
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x180083479
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x18], rax
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
cmp word [rbp + 0x6c], 0
jne 0x180083428
mov r8, rdi
jmp 0x18008343b
lea rax, [rbp + 0x6c]
mov r8, r14
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180083430
lea rdx, [rbp + 0x6c]
lea rcx, [rsp + 0x38]
call fcn.18001eca0
nop
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x58]
call fcn.180085e30
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.18004a98c
lea rcx, [rbp - 0x58]
call fcn.18001c670
nop
lea rcx, [rsp + 0x38]
call fcn.180016d80
nop
lea rcx, [rbp - 0x10]
call fcn.18001c670
lea rdx, [rbp + 0x40]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x180083199
call fcn.1800dd210
int3
call fcn.1800dd210
int3
call fcn.1800dd210
int3
call fcn.1800dd210
nop
lea r8, str.Maximum_buffer_size_exceeded
mov edx, 0x7ff
lea rcx, [rbp + 0x1290]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 6
jl 0x180083596
lea rax, [rbp - 0x38]
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], rdi
mov word [rbp - 0x38], di
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.GridCommonUtils.cpp
lea rcx, [rbp - 0x38]
call fcn.18001eca0
nop
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rdi
mov word [rbp - 0x58], di
mov r8d, socket
lea rdx, str.getFileFromDirectory
lea rcx, [rbp - 0x58]
call fcn.18001eca0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x1290]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x52d
lea r9, [rbp - 0x58]
lea r8, [rsp + 0x70]
mov edx, 6
call fcn.180019ae4
nop
lea rcx, [rbp - 0x10]
call fcn.18001c670
jmp 0x18008368b
lea r8, str.Maximum_number_of_files_reached
mov edx, 0x7ff
lea rcx, [rbp + 0x1290]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 6
jl 0x18008368b
lea rax, [rbp - 0x58]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x38]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rdi
mov word [rbp - 0x58], di
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.GridCommonUtils.cpp
lea rcx, [rbp - 0x58]
call fcn.18001eca0
nop
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], rdi
mov word [rbp - 0x38], di
mov r8d, socket
lea rdx, str.getFileFromDirectory
lea rcx, [rbp - 0x38]
call fcn.18001eca0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x1290]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x78], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x513
lea r9, [rbp - 0x38]
lea r8, [rsp + 0x58]
mov edx, 6
call fcn.180019ae4
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindClose]
test r15d, r15d
je 0x18008370a
cmp r15d, 1
jne 0x18008375f
mov rax, r14
nop dword [rax + rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x1800836b0
test rax, rax
je 0x180083769
mov r8, r14
inc r8
cmp byte [rbx + r8], 0
jne 0x1800836c5
xor edx, edx
mov rcx, rbx
call fcn.1800cf2b0
mov rax, r14
nop dword [rax]
lea rax, [rax + 1]
cmp byte [rsi + rax], 0
jne 0x1800836e0
mov byte [rax + rsi - 1], 0
nop
inc r14
cmp byte [rsi + r14], 0
jne 0x1800836f0
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.1800e3890
jmp 0x18008375f
cmp qword [rbp + 0x30], 0
je 0x180083769
lea rcx, [rbx - 1]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x180083715
movzx eax, word [0x1801666b0]
mov word [rcx], ax
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rdx, qword [rbp + 0x20]
dec rbx
nop dword [rax]
lea rbx, [rbx + 1]
cmp byte [rbx], 0
jne 0x180083740
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x180083750
mov rcx, rsi
call fcn.1800dd360
jmp 0x180083778
mov rcx, rsi
call fcn.1800dd360
mov eax, 1
mov edi, eax
lea rcx, [rbp + 0x20]
call fcn.18001c670
mov eax, edi
mov rcx, qword [rbp + 0x1a90]
xor rcx, rsp
call fcn.1800a6240
lea r11, [rsp + 0x1ba0]
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