Function at 0x140038670
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x318], rbx
mov rax, qword [0x1401043b8]
xor rax, rsp
mov qword [rsp + 0x2b8], rax
mov r14, r8
mov r12, rdx
mov rdi, rcx
mov rsi, qword [rcx + 0x20]
cmp rsi, qword [rcx + 0x28]
jbe 0x1400386be
call fcn.1400796a8
mov rdx, qword [rdi + 8]
xor r15d, r15d
test rdx, rdx
jne 0x1400386d4
call fcn.1400796a8
mov rdx, r15
jmp 0x1400386d7
mov rdx, qword [rdx]
cmp rsi, qword [rdx + 0x20]
jb 0x1400386e2
call fcn.1400796a8
lea rbp, vtable.StringStorage.0
mov qword [rsp + 0x20], rbp
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x140038707
lea rcx, [rsp + 0x28]
mov qword [rax], rcx
jmp 0x14003870a
mov rax, r15
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
lea rbx, [0x1400d1b20]
test rsi, rsi
cmovne rbx, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x28]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x48]
mov rsi, rdx
mov rdi, qword [rsp + 0x40]
sub rsi, rdi
sar rsi, 1
add rsi, rsi
cmp rdi, rdx
jbe 0x14003876b
call fcn.1400796a8
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x14003877f
call fcn.1400796a8
mov rdx, r15
jmp 0x140038782
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x14003878d
call fcn.1400796a8
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.14007ad70
nop
lea rdx, [0x1400d4720]
lea rcx, [rsp + 0x20]
call fcn.14002e5d0
mov ebx, r15d
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rdi, qword [rsp + 0x40]
cmp rdi, qword [rsp + 0x48]
jbe 0x1400387ce
call fcn.1400796a8
mov rcx, qword [rsp + 0x28]
test rcx, rcx
jne 0x1400387e2
call fcn.1400796a8
mov rdx, r15
jmp 0x1400387e5
mov rdx, qword [rcx]
cmp rdi, qword [rdx + 0x20]
jb 0x1400387f0
call fcn.1400796a8
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp r13, 0xffffffffffffffff
jne 0x140038843
mov qword [rsp + 0x20], rbp
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140038823
call fcn.140078e60
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov rcx, qword [rsp + 0x28]
call fcn.140078e60
xor al, al
jmp 0x1400388fe
mov rbp, r12
nop word [rax + rax]
lea rsi, [rsp + 0x8c]
lea rdi, [0x1400d4728]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x1400388a5
lea rsi, [rsp + 0x8c]
lea rdi, [0x1400d2374]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x1400388a5
test r12, r12
je 0x14003889f
mov rax, qword [rbp]
mov ecx, ebx
imul rcx, rcx, 0x38
add rcx, r12
lea rdx, [rsp + 0x8c]
call qword [rax + reloc.WS2_32.dll_htonl]
inc ebx
add rbp, 0x38
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140038850
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
test r12, r12
jne 0x1400388c8
mov dword [r14], ebx
lea rax, vtable.StringStorage.0
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400388e3
call fcn.140078e60
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov rcx, qword [rsp + 0x28]
call fcn.140078e60
mov al, 1
mov rcx, qword [rsp + 0x2b8]
xor rcx, rsp
call fcn.140078e40
mov rbx, qword [rsp + 0x318]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret