Function at 0x140021060
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x5c8
mov rax, qword [0x1402caec0]
xor rax, rsp
mov qword [rsp + 0x5b0], rax
cmp qword [rsp + 0x5e8], 0
jne 0x1400210ba
mov qword [rsp + 0x20], 0
mov r9d, pe_nt_image_headers64
lea r8, str.C:Users13304DesktoplangOdin_srcpath.cpp
lea rdx, str.fi___nullptr
lea rcx, str.Assertion_Failure
call fcn.14000ca50
int3
xor eax, eax
test eax, eax
jne 0x140021085
mov rax, qword [rsp + 0x5e0]
cmp qword [rax + 8], 0
jle 0x140021144
mov rax, qword [rsp + 0x5e0]
mov rax, qword [rax + 8]
dec rax
mov rdx, rax
mov rcx, qword [rsp + 0x5e0]
call fcn.140228060
movzx eax, byte [rax]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x2f
jne 0x140021119
mov rax, qword [rsp + 0x5e0]
mov rax, qword [rax + 8]
dec rax
mov rcx, qword [rsp + 0x5e0]
mov qword [rcx + 8], rax
jmp 0x14002113f
cmp dword [rsp + 0x30], 0x5c
jne 0x14002113d
mov rax, qword [rsp + 0x5e0]
mov rax, qword [rax + 8]
dec rax
mov rcx, qword [rsp + 0x5e0]
mov qword [rcx + 8], rax
jmp 0x14002113f
jmp 0x140021144
jmp 0x1400210c0
mov rax, qword [rsp + 0x5e0]
cmp qword [rax + 8], 0
jne 0x14002115d
mov eax, 1
jmp 0x140021985
lea rcx, [rsp + 0x310]
call fcn.1400186a0
lea rcx, [rsp + 0x100]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x110]
mov rdi, rax
mov rsi, qword [rsp + 0x5e0]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x120]
lea rcx, [rsp + 0x100]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x120]
call fcn.140018da0
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x320]
mov rdi, rax
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x320]
call fcn.140010610
mov dword [rsp + 0x68], eax
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0xf0]
call fcn.1400219e0
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140225ba0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 1
je 0x14002123d
cmp dword [rsp + 0x34], 4
je 0x14002125b
jmp 0x140021279
mov dword [rsp + 0x6c], 1
lea rcx, [rsp + 0x80]
call fcn.140021a50
mov eax, dword [rsp + 0x6c]
jmp 0x140021985
mov dword [rsp + 0x70], 2
lea rcx, [rsp + 0x80]
call fcn.140021a50
mov eax, dword [rsp + 0x70]
jmp 0x140021985
lea rcx, [rsp + 0x80]
call fcn.140021a50
lea rax, [rsp + 0x130]
mov rdi, rax
mov rsi, qword [rsp + 0x5e0]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x130]
call fcn.14001f760
movzx eax, al
test eax, eax
jne 0x1400212be
mov eax, 4
jmp 0x140021985
lea rcx, [rsp + 0x280]
call fcn.1400125a0
lea rcx, [rsp + 0x140]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x140]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x5e0]
mov rax, qword [rax + 8]
add rax, 3
lea rcx, [rsp + 0x150]
lea rdx, [rsp + 0x48]
mov rdi, rcx
mov rsi, rdx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rdx, rax
lea rcx, [rsp + 0x150]
call fcn.140229350
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x290]
call fcn.140021ad0
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.140226460
nop
mov rax, qword [rsp + 0x5e0]
mov r8, qword [rax + 8]
mov rax, qword [rsp + 0x5e0]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x40]
call fcn.14022a110
mov rax, qword [rsp + 0x5e0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov r8d, 2
lea rdx, [0x140286430]
mov rcx, rax
call fcn.14022a110
mov rax, qword [rsp + 0x5e0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 2], 0
mov rax, qword [rsp + 0x5e0]
mov rax, qword [rax + 8]
add rax, 2
mov r8, rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x2a0]
call fcn.140018a80
lea rcx, [rsp + 0x160]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x170]
lea rcx, [rsp + 0x160]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x180]
lea rcx, [rsp + 0x170]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x190]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x180]
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x2b0]
call fcn.14001a890
lea rcx, [rsp + 0x1a0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0x1a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x2c0]
call fcn.140021bd0
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140224250
nop
lea rax, [rsp + 0x360]
mov rdi, rax
xor eax, eax
mov ecx, 0x250
rep stosb byte [rdi], al
lea rdx, [rsp + 0x360]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0xffffffffffffffff
jne 0x140021535
mov dword [rsp + 0x74], 6
lea rcx, [rsp + 0xd0]
call fcn.140021c50
nop
lea rcx, [rsp + 0xc0]
call fcn.140021b50
mov eax, dword [rsp + 0x74]
jmp 0x140021985
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xf8]
call fcn.140021cb0
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.1402262d0
nop
mov r9d, 0x64
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x5e8]
call fcn.140021d50
lea rax, [rsp + 0x38c]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x380]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x37c]
shl rax, 0x20
mov rcx, qword [rsp + 0x88]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x2d0]
call fcn.140018c10
lea rcx, [rsp + 0x1b0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1c0]
lea rcx, [rsp + 0x1b0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1d0]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x1c0]
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x2e0]
call fcn.14001aac0
lea rcx, [rsp + 0x1e0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x98]
lea rcx, [rsp + 0x1e0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [0x14028546c]
lea rcx, [rsp + 0x98]
call fcn.140021df0
movzx eax, al
test eax, eax
jne 0x14002169c
lea rdx, [0x1402855d0]
lea rcx, [rsp + 0x98]
call fcn.140021e50
movzx eax, al
test eax, eax
je 0x1400216d0
lea rax, [rsp + 0x1f0]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x1f0]
call fcn.140229e00
jmp 0x1400218ec
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x5e0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0xa0]
lea rax, [rax + rcx + 1]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
inc rax
lea rcx, [rsp + 0x200]
lea rdx, [rsp + 0x48]
mov rdi, rcx
mov rsi, rdx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rdx, rax
lea rcx, [rsp + 0x200]
call fcn.140229350
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x2f0]
call fcn.140021f00
mov rdx, rax
lea rcx, [rsp + 0x240]
call fcn.140220a10
nop
mov rax, qword [rsp + 0x5e0]
mov r8, qword [rax + 8]
mov rax, qword [rsp + 0x5e0]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x58]
call fcn.14022a110
mov rax, qword [rsp + 0x5e0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov r8d, 1
lea rdx, [0x140285468]
mov rcx, rax
call fcn.14022a110
mov rax, qword [rsp + 0x5e0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 1]
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
mov rcx, rax
call fcn.14022a110
lea rax, [rsp + 0x250]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0x250]
lea rcx, [rsp + 0x98]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x210]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x220]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x210]
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x300]
call fcn.14001fb30
lea rcx, [rsp + 0x230]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x260]
lea rcx, [rsp + 0x230]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x270], rax
mov eax, dword [rsp + 0x360]
and eax, 0x10
test eax, eax
je 0x1400218b5
mov dword [rsp + 0x38], 1
jmp 0x1400218bd
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x278], al
lea rdx, [rsp + 0x250]
mov rcx, qword [rsp + 0x5e8]
call fcn.140021fb0
nop
lea rcx, [rsp + 0x240]
call fcn.140021f80
lea rdx, [rsp + 0x360]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140021576
mov rax, qword [rsp + 0x5e8]
cmp qword [rax + 0x18], 0
jne 0x140021950
mov dword [rsp + 0x78], 5
lea rcx, [rsp + 0xa8]
call fcn.140021d20
nop
lea rcx, [rsp + 0xd0]
call fcn.140021c50
nop
lea rcx, [rsp + 0xc0]
call fcn.140021b50
mov eax, dword [rsp + 0x78]
jmp 0x140021985
mov dword [rsp + 0x7c], 0
lea rcx, [rsp + 0xa8]
call fcn.140021d20
nop
lea rcx, [rsp + 0xd0]
call fcn.140021c50
nop
lea rcx, [rsp + 0xc0]
call fcn.140021b50
mov eax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x5b0]
xor rcx, rsp
call fcn.140238130
add rsp, 0x5c8
pop rdi
pop rsi
ret