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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4030a3
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x40421c
lea edx, [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004019f0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x290]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401546
nop
mov edx, 0x404210
lea ecx, [ebp - 0x264]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x401366
test ax, ax
je 0x401362
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x401366
add ecx, 4
add edx, 4
test ax, ax
jne 0x401340
xor eax, eax
jmp 0x40136b
sbb eax, eax
or eax, 1
test eax, eax
je 0x401529
mov ecx, 0x404214
lea eax, [ebp - 0x264]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4013a6
test dx, dx
je 0x4013a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4013a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x401380
xor eax, eax
jmp 0x4013ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x401529
test byte [ebp - 0x290], 0x10
lea eax, [ebp - 0x264]
je 0x4014f1
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.004019f0
push 0x404224
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2b0]
call fcn.004019f0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x401453
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40142f
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401425
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016e2
push ecx
push edx
call fcn.00402354
add esp, 8
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x29c]
cmp ecx, 8
jb 0x401493
mov edx, dword [ebp - 0x2b0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401489
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016e2
push ecx
push edx
call fcn.00402354
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.004018e0
call fcn.004012c0
add esp, 0x18
test al, al
jne 0x4015d5
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x401529
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4014e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4015cf
push ecx
push edx
call fcn.00402354
add esp, 8
jmp 0x401529
mov ecx, 0x404228
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40151c
test dx, dx
je 0x401518
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40151c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4014f6
xor eax, eax
jmp 0x401521
sbb eax, eax
or eax, 1
test eax, eax
je 0x40161b
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401330
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x291], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x401583
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401579
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4015cf
push ecx
push edx
call fcn.00402354
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x40173e
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401734
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401734
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x401728
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401605
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4015cf
push ecx
push edx
call fcn.00402354
add esp, 8
mov byte [ebp - 0x291], 1
jmp 0x40154d
lea eax, [ebp - 0x264]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x2c8]
call fcn.004019f0
add esp, 4
movups xmm0, xmmword [eax]
xor ecx, ecx
movups xmmword [ebp - 0x2b0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2a0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 4
call fcn.004011d0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x29c]
cmp ecx, 8
jb 0x4016ac
mov edx, dword [ebp - 0x2b0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4016a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016e2
push ecx
push edx
call fcn.00402354
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2b4]
cmp ecx, 8
jb 0x4016f2
mov edx, dword [ebp - 0x2c8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4016e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4016e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402354
add esp, 8
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 8]
push dword [ebp + 0x18]
cmovae edx, dword [ebp + 8]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.00402130
add esp, 4
lea edx, [ebp - 0x264]
mov ecx, eax
call fcn.00401b40
push 0x401d80
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_____]
mov byte [ebp - 0x291], 1
jmp 0x40154d
push ecx
push edx
call fcn.00402354
add esp, 8
mov al, byte [ebp - 0x291]
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.00402316
mov esp, ebp
pop ebp
ret