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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x450
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x0043a0c0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rdx
mov qword [rsp + 0x58], rdx
mov rbx, rcx
cmp word [rdx], 0x5c
jne 0x4031ef
mov eax, 1
jmp 0x403857
mov ecx, 0x10000
call fcn.00406cd4
mov rdi, rax
mov qword [rsp + 0x48], rax
mov r9, rsi
lea r8, str._s
mov edx, 0x8000
mov rcx, rax
call fcn.00417a14
lea rdx, [rsp + 0x1f0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x403246
mov rcx, rdi
call fcn.00406cdc
xor eax, eax
jmp 0x403857
mov ebp, 1
mov rcx, rbx
call fcn.00401dcc
xor edx, edx
cmp eax, edx
je 0x40383e
lea rsi, [rsp + 0x21c]
lea rdi, [0x00430294]
lea ecx, [rdx + 2]
repe cmpsw word [rsi], word [rdi]
je 0x403808
lea rsi, [rsp + 0x21c]
lea rdi, [0x00430298]
lea ecx, [rdx + 3]
repe cmpsw word [rsi], word [rdi]
je 0x403801
bt dword [rsp + 0x1f0], 0xa
jb 0x40380f
mov qword [rbx + 0x90], rdx
mov qword [rbx + 0x98], rdx
lea rcx, [rbx + 0x10170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x21c]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x58]
lea r8, str._s_s
mov edx, 0x8000
lea rcx, [rbx + 0x136]
call fcn.00417a14
lea rcx, [rbx + 0x10170]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x40], 0
lea rsi, [0x004405b0]
lea rdx, [rbx + 0x136]
lea rcx, [rsp + 0x50]
call fcn.00405944
nop
mov rcx, qword [rsp + 0x50]
movsxd rdi, dword [rcx - 0x10]
mov edx, ebp
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, edi
or eax, edx
jge 0x40333a
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.00405810
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 1]
movsxd rdx, eax
call fcn.004180e0
test edi, edi
js 0x403833
mov rax, qword [rsp + 0x50]
cmp edi, dword [rax - 0xc]
jg 0x403833
mov dword [rax - 0x10], edi
mov rcx, rdi
mov rax, qword [rsp + 0x50]
xor edi, edi
mov word [rax + rcx*2], di
mov rdx, qword [rsi]
cmp rdx, rdi
je 0x4033ac
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0x10], edi
jl 0x4033b1
mov rcx, rax
call fcn.00417d68
mov rdx, rax
cmp rax, rdi
je 0x4033ac
mov rax, qword [rsp + 0x50]
sub rdx, rax
sar rdx, 1
mov ecx, dword [rsp + 0x40]
movzx ecx, cl
cmp edx, 0xffffffff
cmovne ecx, ebp
mov dword [rsp + 0x40], ecx
jmp 0x4033b1
mov rax, qword [rsp + 0x50]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, edi
jg 0x4033cc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsi, 8
lea rax, [0x00440630]
cmp rsi, rax
jl 0x403300
test byte [rsp + 0x1f0], 0x10
jne 0x4035e5
add qword [rbx + 0x20], rbp
mov dword [rbx + 0xb0], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80
lea r8d, [r9 + 7]
lea rcx, [rbx + 0x136]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x4034e9
mov qword [rsp + 0xf0], 7
xor edi, edi
mov qword [rsp + 0xe8], rdi
mov word [rsp + 0xd8], di
mov dword [rsp + 0xf8], edi
mov dword [rsp + 0xfc], edi
mov dword [rsp + 0x100], edi
mov qword [rsp + 0x108], rdi
mov qword [rsp + 0x110], rdi
mov qword [rsp + 0x118], rdi
mov dword [rsp + 0x120], edi
lea rdx, [rbx + 0x136]
lea rcx, [rsp + 0xd0]
call fcn.00403f88
mov dword [rsp + 0xf8], edi
mov dword [rsp + 0x120], 4
lea rcx, [rbx + 0x10140]
lea rdx, [rsp + 0xd0]
call fcn.004040c4
add qword [rbx + 0x30], rbp
cmp qword [rsp + 0xf0], 8
jb 0x4037fa
mov rcx, qword [rsp + 0xd8]
call fcn.00406cdc
mov rdi, qword [rsp + 0x48]
jmp 0x403814
xor eax, eax
mov dword [rbx + 0x10208], eax
mov r8b, byte [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call fcn.00403060
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rsp + 0x40]
mov r8b, dil
lea rdx, [rbx + 0x136]
mov rcx, rbx
call fcn.00402f24
xor eax, eax
cmp dil, al
je 0x4037ec
mov qword [rsp + 0x1b0], 7
mov qword [rsp + 0x1a8], rax
mov word [rsp + 0x198], ax
mov dword [rsp + 0x1b8], eax
mov dword [rsp + 0x1bc], eax
mov dword [rsp + 0x1c0], eax
mov qword [rsp + 0x1c8], rax
mov qword [rsp + 0x1d0], rax
mov qword [rsp + 0x1d8], rax
mov dword [rsp + 0x1e0], eax
lea rdx, [rbx + 0x136]
lea rcx, [rsp + 0x190]
call fcn.00403f88
mov edx, dword [rbx + 0x10208]
mov dword [rsp + 0x1b8], edx
mov dword [rsp + 0x1e0], 6
lea rcx, [rbx + 0x10140]
lea rdx, [rsp + 0x190]
call fcn.004040c4
add qword [rbx + 0x30], rbp
cmp qword [rsp + 0x1b0], 8
jb 0x4037f3
mov rcx, qword [rsp + 0x198]
call fcn.00406cdc
mov rdi, qword [rsp + 0x48]
jmp 0x403814
add qword [rbx + 0x28], rbp
mov dword [rbx + 0xb0], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
lea rcx, [rbx + 0x136]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x4036c8
mov qword [rsp + 0x90], 7
xor edi, edi
mov qword [rsp + 0x88], rdi
mov word [rsp + 0x78], di
mov dword [rsp + 0x98], edi
mov dword [rsp + 0x9c], edi
mov dword [rsp + 0xa0], edi
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], rdi
mov dword [rsp + 0xc0], edi
lea rdx, [rbx + 0x136]
lea rcx, [rsp + 0x70]
call fcn.00403f88
mov dword [rsp + 0x98], ebp
mov dword [rsp + 0xc0], 4
lea rcx, [rbx + 0x10140]
lea rdx, [rsp + 0x70]
call fcn.004040c4
add qword [rbx + 0x30], rbp
cmp qword [rsp + 0x90], 8
jb 0x4036fd
mov rcx, qword [rsp + 0x78]
call fcn.00406cdc
jmp 0x4036fd
mov dword [rbx + 0x10208], ebp
mov r8b, byte [rsp + 0x40]
mov rdx, rax
mov rcx, rbx
call fcn.00403060
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8b, byte [rsp + 0x40]
lea rdx, [rbx + 0x136]
mov rcx, rbx
call fcn.00402f24
xor edi, edi
cmp byte [rsp + 0x40], dil
je 0x4037b4
mov qword [rsp + 0x150], 7
mov qword [rsp + 0x148], rdi
mov word [rsp + 0x138], di
mov dword [rsp + 0x158], edi
mov dword [rsp + 0x15c], edi
mov dword [rsp + 0x160], edi
mov qword [rsp + 0x168], rdi
mov qword [rsp + 0x170], rdi
mov qword [rsp + 0x178], rdi
mov dword [rsp + 0x180], edi
lea rdx, [rbx + 0x136]
lea rcx, [rsp + 0x130]
call fcn.00403f88
mov edx, dword [rbx + 0x10208]
mov dword [rsp + 0x158], edx
mov dword [rsp + 0x180], 6
lea rcx, [rbx + 0x10140]
lea rdx, [rsp + 0x130]
call fcn.004040c4
add qword [rbx + 0x30], rbp
cmp qword [rsp + 0x150], 8
jb 0x4037b4
mov rcx, qword [rsp + 0x138]
call fcn.00406cdc
lea rax, [rsp + 0x21c]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
lea r8, str._s_s
mov edx, 0x8000
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call fcn.00417a14
mov rdx, rdi
mov rcx, rbx
call fcn.004031a8
jmp 0x403814
mov rdi, qword [rsp + 0x48]
jmp 0x403814
mov rdi, qword [rsp + 0x48]
jmp 0x403814
mov rdi, qword [rsp + 0x48]
jmp 0x403814
mov rdi, qword [rsp + 0x48]
jmp 0x403814
mov rdi, qword [rsp + 0x48]
jmp 0x403814
mov rdi, qword [rsp + 0x48]
lea rdx, [rsp + 0x1f0]
mov rsi, qword [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebp
jne 0x403844
jmp 0x40324b
mov ecx, 0x80070057
call fcn.00405858
nop
mov dword [rbx + 0x10138], ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call fcn.00406cdc
mov eax, ebp
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.00417970
mov rbx, qword [rsp + 0x480]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret