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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404bf9
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28c], esi
push 0x40533c
mov edx, esi
lea ecx, [ebp - 0x2e0]
call fcn.00403270
add esp, 4
cmp dword [eax + 0x14], 7
jbe 0x401912
mov eax, dword [eax]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x2cc]
mov edi, eax
mov dword [ebp - 0x290], edi
cmp ecx, 7
jbe 0x40196a
mov edx, dword [ebp - 0x2e0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401960
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401960
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00403de8
add esp, 8
xor eax, eax
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 7
mov word [ebp - 0x2e0], ax
cmp edi, 0xffffffff
jne 0x4019c5
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
mov edx, str.Invalid_directory_handle:
call fcn.00403010
cmp dword [esi + 0x14], 7
mov edx, esi
jbe 0x4019a6
mov edx, dword [esi]
push 0x403240
push dword [esi + 0x10]
mov ecx, eax
call fcn.004038d0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
jmp 0x401e36
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402b00
mov dword [ebp - 4], 0
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
seta cl
cmova edi, esi
mov byte [ebp - 0x279], cl
cmp eax, 1
jne 0x401a21
mov ecx, 0x40537c
mov edx, eax
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x401a18
add ecx, 2
sub edx, 1
jne 0x401a02
jmp 0x401dd5
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x279]
test cl, cl
lea edi, [ebp - 0x28]
cmovne edi, esi
cmp eax, 2
jne 0x401a4d
mov ecx, 0x405380
mov edx, eax
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x401a4d
add ecx, 2
sub edx, 1
jne 0x401a37
jmp 0x401dd5
test byte [ebp - 0x278], 0x10
mov edx, dword [ebp - 0x28c]
push 0x405388
je 0x401c13
lea ecx, [ebp - 0x310]
call fcn.00403270
add esp, 4
mov edi, eax
cmp byte [ebp - 0x279], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
mov edx, dword [edi + 0x10]
cmovne ecx, esi
mov eax, dword [edi + 0x14]
sub eax, edx
mov dword [ebp - 0x280], edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x288], ecx
cmp edx, eax
ja 0x401af3
cmp dword [edi + 0x14], 7
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x280], edi
lea eax, [edx + ecx]
mov dword [ebp - 0x284], eax
mov dword [edi + 0x10], eax
mov eax, edi
jbe 0x401ac9
mov eax, dword [edi]
mov dword [ebp - 0x280], eax
lea ecx, [eax + ecx*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x288]
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x280]
add esp, 0xc
mov ecx, dword [ebp - 0x284]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x401b0f
push edx
push ecx
mov byte [ebp - 0x294], 0
mov ecx, edi
push dword [ebp - 0x294]
push edx
call fcn.00403670
mov esi, dword [ebp - 0x28]
mov edi, eax
mov dword [ebp - 0x2a0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2b0], xmm0
mov dword [ebp - 0x29c], 0
xor eax, eax
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x2b0], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x2a0], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 2
call fcn.004018c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x29c]
cmp ecx, 7
jbe 0x401baa
mov edx, dword [ebp - 0x2b0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401ba0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40195a
push ecx
push edx
call fcn.00403de8
add esp, 8
xor eax, eax
mov dword [ebp - 0x2a0], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
cmp ecx, 7
jbe 0x401dd5
mov edx, dword [ebp - 0x310]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401c04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40195a
push ecx
push edx
call fcn.00403de8
add esp, 8
jmp 0x401dd5
lea ecx, [ebp - 0x2f8]
call fcn.00403270
add esp, 4
mov edi, eax
cmp byte [ebp - 0x279], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
mov edx, dword [edi + 0x10]
cmovne ecx, esi
mov eax, dword [edi + 0x14]
sub eax, edx
mov dword [ebp - 0x284], edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x288], ecx
cmp edx, eax
ja 0x401ca1
cmp dword [edi + 0x14], 7
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 0x280], edi
lea eax, [edx + ecx]
mov dword [ebp - 0x284], eax
mov dword [edi + 0x10], eax
mov eax, edi
jbe 0x401c77
mov eax, dword [edi]
mov dword [ebp - 0x280], eax
lea ecx, [eax + ecx*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x288]
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x280]
add esp, 0xc
mov ecx, dword [ebp - 0x284]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x401cbd
push edx
push ecx
mov byte [ebp - 0x298], 0
mov ecx, edi
push dword [ebp - 0x298]
push edx
call fcn.00403670
mov esi, dword [ebp - 0x28]
mov edi, eax
mov dword [ebp - 0x2b8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c8], xmm0
mov dword [ebp - 0x2b4], 0
xor eax, eax
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x2c8], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x2b8], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 4
call fcn.00401220
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2b4]
cmp ecx, 7
jbe 0x401d58
mov edx, dword [ebp - 0x2c8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401d4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40195a
push ecx
push edx
call fcn.00403de8
add esp, 8
xor eax, eax
mov dword [ebp - 0x2b8], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2b4], 7
mov word [ebp - 0x2c8], ax
cmp ecx, 7
jbe 0x401db8
mov edx, dword [ebp - 0x2f8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401dae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40195a
push ecx
push edx
call fcn.00403de8
add esp, 8
xor eax, eax
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 7
mov word [ebp - 0x2f8], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x401e13
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x401e09
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40195a
push ecx
push esi
call fcn.00403de8
add esp, 8
mov esi, dword [ebp - 0x290]
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4019c5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403daa
mov esp, ebp
pop ebp
ret