Function at 0x1401398d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x4a0]
sub rsp, 0x5a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x5d0], rbx
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov dword [rsp + 0x34], r9d
mov qword [rsp + 0x38], rdx
mov rsi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14013991c
mov rcx, qword [rcx]
lea rdx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140139e3e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rbp + 0x240]
shr eax, 4
and al, 1
je 0x140139e44
mov qword [rbp - 0x78], 7
xor edi, edi
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x70], di
lea rax, [rsp + 0x70]
cmp rax, rsi
je 0x14013997e
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.1400be8c0
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1401399b8
cmp qword [rsi + 0x18], 8
jb 0x140139993
mov rax, qword [rsi]
jmp 0x140139996
mov rax, rsi
movzx ecx, word [rax + rcx*2 - 2]
cmp cx, 0x5c
je 0x1401399b8
cmp cx, 0x2f
je 0x1401399b8
mov edx, 1
lea r8d, [rdx + 0x5b]
mov rcx, rsi
call fcn.1400be670
lea r8, [0x14022a6e0]
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.1400dc1b0
mov rbx, rax
lea rax, [rsp + 0x70]
cmp rax, rbx
je 0x140139a13
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x1401399f4
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400be810
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x70], di
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400be780
nop
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x140139a2d
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.1400be810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140139a7b
cmp rdi, 0xffffffffffffffff
je 0x140139a71
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, 0xffffffea
jmp 0x140139e1e
cmp rdi, 0xffffffffffffffff
je 0x140139e1b
nop word [rax + rax]
mov qword [rbp - 0x38], 7
xor eax, eax
mov qword [rbp - 0x40], rax
mov word [rbp - 0x50], ax
cmp word [rbp + 0x1c], ax
jne 0x140139aad
mov r8d, eax
jmp 0x140139ac0
lea rax, [rbp + 0x1c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140139ab5
lea rdx, [rbp + 0x1c]
lea rcx, [rbp - 0x50]
call fcn.1400be520
nop
lea rcx, [rbp - 0x50]
mov rbx, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x38]
cmp rdi, 8
cmovae rcx, rbx
mov r9d, 1
lea r8, [0x14022721c]
mov rdx, qword [rbp - 0x40]
call fcn.1400c4840
test eax, eax
je 0x140139d4d
lea rcx, [rbp - 0x50]
cmp rdi, 8
cmovae rcx, rbx
mov r9d, 2
lea r8, [0x14022a6f4]
call fcn.1400c4840
test eax, eax
je 0x140139d4d
lea r8, [rbp - 0x50]
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.1400c5640
nop
lea rdx, [rbp - 0x70]
test byte [rbp - 0x10], 0x10
je 0x140139cc1
mov qword [rsp + 0x68], 7
xor edi, edi
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.1400be8c0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140139ba9
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
movzx ecx, word [rax + rcx*2 - 2]
cmp cx, 0x5c
je 0x140139ba9
cmp cx, 0x2f
je 0x140139ba9
lea edx, [rdi + 1]
lea r8d, [rdi + 0x5c]
lea rcx, [rsp + 0x50]
call fcn.1400be670
lea r8, [0x14022a6e0]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.1400dc1b0
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x140139c09
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x140139be8
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400be810
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400be780
nop
mov r8, qword [rbp - 0x18]
cmp r8, 8
jb 0x140139c23
inc r8
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.1400be810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
lea rdx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x140139c63
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 5
je 0x140139c9e
mov ecx, dword [rsp + 0x34]
mov eax, dword [rbp + 0x4e0]
test ecx, ecx
js 0x140139c7a
cmp eax, ecx
jge 0x140139c9e
inc eax
mov dword [rsp + 0x20], eax
mov r9d, ecx
mov r8b, 1
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp - 0x70]
call fcn.1401398d0
mov ebx, eax
test eax, eax
js 0x140139d88
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x140139d33
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400be810
jmp 0x140139d33
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
lea rax, vtable.WaJson.0
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x60], eax
mov byte [rsp + 0x60], al
mov dword [rsp + 0x58], 5
lea rcx, [rsp + 0x50]
call fcn.1400c2c80
nop
mov rdi, qword [rsp + 0x38]
mov rax, qword [rdi]
mov rbx, qword [rax + 0xd0]
mov rcx, rbx
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call rbx
nop
lea rax, vtable.WaJson.0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.1400c02b0
nop
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x140139d4d
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.1400be810
lea rdx, [rbp - 0x10]
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
mov r8, qword [rbp - 0x38]
cmp r8, 8
jb 0x140139d7b
inc r8
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.1400be810
test ebx, ebx
je 0x140139e0c
jmp 0x140139a90
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x140139db1
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400be810
mov qword [rsp + 0x68], 7
xor edi, edi
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x140139de0
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.1400be810
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x70], di
mov r8, qword [rbp - 0x38]
cmp r8, 8
jb 0x140139e1e
inc r8
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.1400be810
jmp 0x140139e1e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
mov ebx, edi
jmp 0x140139e1e
or ebx, 0xffffffff
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x140139e3a
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400be810
mov eax, ebx
jmp 0x140139e49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xffffffe4
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.1401646e0
mov rbx, qword [rsp + 0x5d0]
add rsp, 0x5a0
pop rdi
pop rsi
pop rbp
ret