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

Disassembly:
mov r11, rsp
sub rsp, 0x338
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
mov rax, qword [0x0046ff68]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov qword [rsp + 0x40], r8
mov rbx, rdx
mov qword [rsp + 0x50], rdx
mov rbp, rcx
mov qword [rsp + 0x38], rcx
mov qword [r11 - 0x2b0], rdx
xor eax, eax
mov dword [rsp + 0x20], eax
mov ecx, dword [rcx + 0xb0]
test cl, 1
je 0x40863f
mov rdi, qword [rdx]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x4085c0
cmp rax, qword [rdi - 0x18]
jne 0x4085c0
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x4085fe
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
jne 0x4085dc
call fcn.00417bc0
int3
mov eax, dword [rdi - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.00438330
lea rax, [rsi + 0x18]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
mov rcx, rbp
call qword [rsp + 0x40]
mov edi, eax
mov rdx, qword [rbx]
sub rdx, 0x18
mov rbp, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x408638
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x408f2a
mov rsi, qword [rdx]
mov edx, dword [rsi - 0x10]
lea eax, [rdx - 1]
test eax, eax
js 0x408f1f
cmp eax, edx
jg 0x408f1f
cdqe
cmp word [rsi + rax*2], 0x3a
jne 0x4087b9
mov rbp, 0xffffffffffffffff
test cl, 2
jne 0x40867a
test cl, 4
je 0x408712
lea rax, [rsp + 0x48]
mov qword [rsp + 0x58], rax
call fcn.00426d94
mov rcx, rax
test rax, rax
mov eax, 0
setne al
test eax, eax
jne 0x4086a6
mov ecx, 0x80004005
call entry0
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, str.WARNING:_Recursion_is_not_possible_for_local_file_system_roots._You_may_want_to_append_a_backslash__c:_.
test rdx, 0xffffffffffff0000
jne 0x4086e6
movzx edi, dx
mov ecx, edi
call fcn.00426d80
test rax, rax
je 0x408703
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.00417570
jmp 0x408703
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x48]
call fcn.00417880
nop
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.004022e0
mov rdi, qword [rbx]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x408739
cmp rax, qword [rdi - 0x18]
jne 0x408739
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x408777
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
jne 0x408755
call fcn.00417bc0
int3
mov eax, dword [rdi - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.00438330
lea rax, [rsi + 0x18]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x40]
mov edi, eax
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x4087b2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x408f2a
xor ebp, ebp
mov rdi, rbp
movzx eax, word [rsi]
test ax, ax
je 0x40884c
nop
nop
movzx edx, ax
lea rcx, [0x004586f8]
call fcn.00436ac0
test rax, rax
je 0x4087ee
test rdi, rdi
jne 0x4087f1
mov rdi, rsi
jmp 0x4087f1
mov rdi, rbp
add rsi, 2
mov ax, word [rsi]
test ax, ax
jne 0x4087d0
test rdi, rdi
je 0x40884c
mov rax, qword [rbx]
sub rdi, rax
sar rdi, 1
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or eax, ecx
jge 0x408826
mov edx, edi
mov rcx, rbx
call fcn.004179f0
test edi, edi
js 0x408841
mov rax, qword [rbx]
cmp edi, dword [rax - 0xc]
jg 0x408841
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x40884c
mov ecx, 0x80070057
call entry0
int3
mov rdx, qword [rbx]
mov ecx, dword [rdx - 0x10]
lea eax, [rcx - 1]
test eax, eax
js 0x408f14
cmp eax, ecx
jg 0x408f14
cdqe
mov rbp, 0xffffffffffffffff
cmp word [rdx + rax*2], 0x3a
jne 0x40887d
lea eax, [rbp + 2]
jmp 0x40891c
mov r8d, 7
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.00416d80
lea rdx, str._UNC
mov rcx, qword [rax]
call fcn.00436d50
test eax, eax
sete dil
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x4088c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x4089b7
mov eax, 1
xor edi, edi
lea ecx, [rax + 1]
mov rdx, qword [rbx]
test ecx, ecx
js 0x408904
cmp ecx, dword [rdx - 0x10]
jge 0x408904
movsxd rax, ecx
lea rcx, [rdx + rax*2]
mov dx, 0x5c
call fcn.00436ac0
test rax, rax
jne 0x4088fc
mov eax, ebp
jmp 0x408906
sub rax, qword [rbx]
sar rax, 1
jmp 0x408906
mov eax, ebp
cmp eax, 0xffffffff
je 0x408910
add edi, 1
jmp 0x4088d4
cmp edi, 3
jne 0x4089b0
lea eax, [rdi - 1]
mov rdi, qword [rsp + 0x38]
test byte [rdi + 0xb0], 2
je 0x40899f
cmp eax, 1
jne 0x408958
lea r8, [0x004586f8]
mov rdx, rbx
lea rcx, [rsp + 0xb8]
call fcn.00417070
mov rdx, rax
mov rcx, rdi
call qword [rsp + 0x40]
mov esi, eax
mov dword [rsp + 0x20], eax
jmp 0x408978
mov rdx, rbx
lea rcx, [rsp + 0xa8]
call fcn.00415dc0
mov rdx, rax
mov rcx, rdi
call qword [rsp + 0x40]
mov esi, eax
mov dword [rsp + 0x20], eax
test esi, esi
je 0x40899f
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x408998
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, esi
jmp 0x408f2a
lea rdx, str..
mov rcx, rbx
call fcn.004160d0
jmp 0x4089bc
mov rdi, qword [rsp + 0x38]
jmp 0x4089bc
mov rdi, qword [rsp + 0x38]
lea rdx, [rsp + 0xc0]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x58], rax
cmp rax, rbp
je 0x408ee5
mov dx, 0x5c
mov rcx, qword [rbx]
call fcn.00437e90
test rax, rax
jne 0x4089f0
mov eax, ebp
jmp 0x4089f6
sub rax, qword [rbx]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.00416d80
nop
call fcn.00426d94
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x408eda
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0xec]
lea rax, [rsp + 0xec]
test rax, 0xffffffffffff0000
jne 0x408a74
movzx edi, cx
mov ecx, edi
call fcn.00426d80
test rax, rax
je 0x408b7d
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.00417570
mov rbx, qword [rsp + 0x28]
jmp 0x408b7d
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0xec]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x408ae9
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x408b7d
cmp dword [rdx + 0x10], eax
jge 0x408abb
cmp dword [rbx - 0xc], eax
jl 0x408d40
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x408b7d
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x408ad2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
jmp 0x408b7d
mov esi, dword [rbx - 0x10]
lea rdx, [rsp + 0xec]
sub rdx, rbx
sar rdx, 1
mov qword [rsp + 0x60], rdx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x408b26
mov edx, edi
lea rcx, [rsp + 0x28]
call fcn.004179f0
mov rbx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x60]
cmp rdx, rsi
ja 0x408b46
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rdx*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.00436af0
jmp 0x408b63
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0xec]
mov rdx, rsi
mov rcx, rbx
call fcn.00438330
test edi, edi
js 0x408ecf
cmp edi, dword [rbx - 0xc]
jg 0x408ecf
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
xor eax, eax
lea rdi, [0x00459484]
mov rsi, rbx
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x408b98
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x408cf8
xor eax, eax
lea rdi, [0x00459488]
mov rsi, rbx
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x408bc0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x408cf8
mov eax, dword [rsp + 0xc0]
test al, 0x10
je 0x408c93
mov rsi, qword [rsp + 0x38]
test byte [rsi + 0xb0], 2
je 0x408c18
lea r8, [rsp + 0xec]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.00417070
mov rdx, rax
mov rcx, rsi
call qword [rsp + 0x40]
mov edi, eax
test eax, eax
jne 0x408d4b
lea r8, [rsp + 0xec]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.00417070
nop
lea r8, str..
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.00417070
mov r8, qword [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
call fcn.00408530
mov edi, eax
mov dword [rsp + 0x20], eax
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x408c7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
jne 0x408db0
mov eax, dword [rsp + 0xc0]
mov rbx, qword [rsp + 0x28]
jmp 0x408c9c
mov rsi, qword [rsp + 0x38]
mov edi, dword [rsp + 0x20]
test al, 0x10
jne 0x408cdb
test byte [rsi + 0xb0], 4
je 0x408cdb
lea r8, [rsp + 0xec]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xb0]
call fcn.00417070
mov rdx, rax
mov rcx, rsi
call qword [rsp + 0x40]
mov edi, eax
mov dword [rsp + 0x20], eax
test eax, eax
jne 0x408e1a
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x408d1d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x408d1d
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x408d19
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x20]
jmp 0x408d1d
mov edi, dword [rsp + 0x20]
lea rdx, [rsp + 0xc0]
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x408e7f
jmp 0x408a08
mov ecx, 0x80070057
call entry0
nop
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x408d67
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x408d88
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x408da9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x408f2a
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x408dd1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x408df2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x408e13
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x408f2a
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x408e36
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x408e57
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x408e78
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x408f2a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x408eaa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x408ecb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x408f2a
mov ecx, 0x80070057
call entry0
nop
mov ecx, 0x80004005
call entry0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x88], eax
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x408f0d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 0x10
jmp 0x408f2a
mov ecx, 0x80070057
call entry0
int3
mov ecx, 0x80070057
call entry0
nop
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.004368d0
mov rbx, qword [rsp + 0x358]
mov rbp, qword [rsp + 0x330]
mov rsi, qword [rsp + 0x328]
mov rdi, qword [rsp + 0x320]
add rsp, 0x338
ret