Function at 0x4031ac
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 0x4031f3
mov eax, 1
jmp 0x40385b
mov ecx, 0x10000
call fcn.00406d24
mov rdi, rax
mov qword [rsp + 0x48], rax
mov r9, rsi
lea r8, str._s
mov edx, 0x8000
mov rcx, rax
call fcn.00417a54
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 0x40324a
mov rcx, rdi
call fcn.00406d1c
xor eax, eax
jmp 0x40385b
mov ebp, 1
mov rcx, rbx
call fcn.00401dcc
xor edx, edx
cmp eax, edx
je 0x403842
lea rsi, [rsp + 0x21c]
lea rdi, [0x0043027c]
lea ecx, [rdx + 2]
repe cmpsw word [rsi], word [rdi]
je 0x40380c
lea rsi, [rsp + 0x21c]
lea rdi, [0x00430280]
lea ecx, [rdx + 3]
repe cmpsw word [rsi], word [rdi]
je 0x403805
bt dword [rsp + 0x1f0], 0xa
jb 0x403813
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.00417a54
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.0040598c
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 0x40333e
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.00405858
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 1]
movsxd rdx, eax
call fcn.00418120
test edi, edi
js 0x403837
mov rax, qword [rsp + 0x50]
cmp edi, dword [rax - 0xc]
jg 0x403837
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 0x4033b0
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0x10], edi
jl 0x4033b5
mov rcx, rax
call fcn.00417da8
mov rdx, rax
cmp rax, rdi
je 0x4033b0
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 0x4033b5
mov rax, qword [rsp + 0x50]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, edi
jg 0x4033d0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsi, 8
lea rax, [0x00440638]
cmp rsi, rax
jl 0x403304
test byte [rsp + 0x1f0], 0x10
jne 0x4035e9
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 0x4034ed
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.00403f8c
mov dword [rsp + 0xf8], edi
mov dword [rsp + 0x120], 4
lea rcx, [rbx + 0x10140]
lea rdx, [rsp + 0xd0]
call fcn.004040c8
add qword [rbx + 0x30], rbp
cmp qword [rsp + 0xf0], 8
jb 0x4037fe
mov rcx, qword [rsp + 0xd8]
call fcn.00406d1c
mov rdi, qword [rsp + 0x48]
jmp 0x403818
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 0x4037f0
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.00403f8c
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.004040c8
add qword [rbx + 0x30], rbp
cmp qword [rsp + 0x1b0], 8
jb 0x4037f7
mov rcx, qword [rsp + 0x198]
call fcn.00406d1c
mov rdi, qword [rsp + 0x48]
jmp 0x403818
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 0x4036cc
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.00403f8c
mov dword [rsp + 0x98], ebp
mov dword [rsp + 0xc0], 4
lea rcx, [rbx + 0x10140]
lea rdx, [rsp + 0x70]
call fcn.004040c8
add qword [rbx + 0x30], rbp
cmp qword [rsp + 0x90], 8
jb 0x403701
mov rcx, qword [rsp + 0x78]
call fcn.00406d1c
jmp 0x403701
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 0x4037b8
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.00403f8c
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.004040c8
add qword [rbx + 0x30], rbp
cmp qword [rsp + 0x150], 8
jb 0x4037b8
mov rcx, qword [rsp + 0x138]
call fcn.00406d1c
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.00417a54
mov rdx, rdi
mov rcx, rbx
call fcn.004031ac
jmp 0x403818
mov rdi, qword [rsp + 0x48]
jmp 0x403818
mov rdi, qword [rsp + 0x48]
jmp 0x403818
mov rdi, qword [rsp + 0x48]
jmp 0x403818
mov rdi, qword [rsp + 0x48]
jmp 0x403818
mov rdi, qword [rsp + 0x48]
jmp 0x403818
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 0x403848
jmp 0x40324f
mov ecx, 0x80070057
call fcn.004058a0
nop
mov dword [rbx + 0x10138], ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call fcn.00406d1c
mov eax, ebp
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.004179b0
mov rbx, qword [rsp + 0x480]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret