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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x104
mov byte [ebp - 0x14], 1
push eax
xor esi, esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x18], esi
mov edi, edx
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x478], edi
mov dword [ebp - 0x474], ebx
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040fba0
test eax, eax
js 0x40a354
mov dword [edi], 1
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x40a136
sub edi, ecx
sar edi, 1
je 0x4215d6
lea eax, [edi + 3]
cmp eax, 0x7fe7
ja 0x40a31d
lea eax, [ebp - 0x470]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4215e0
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindClose]
mov ecx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x470]
test al, 0x10
je 0x40a31d
test eax, 0x400
jne 0x4215f6
push ebx
lea ecx, [ebp - 0x220]
call fcn.0040fcb9
movzx eax, word [ebx + edi*2 - 2]
cmp eax, 0x3a
je 0x40a1c2
cmp eax, 0x5c
je 0x40a1c2
push 0x402374
lea ecx, [ebp - 0x220]
call fcn.0040fc22
inc edi
push 0x4026a8
lea ecx, [ebp - 0x220]
call fcn.0040fc22
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x421607
lea ecx, [ebp - 0x470]
push ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindFirstFileW]
mov dword [ebp - 0x47c], eax
cmp eax, 0xffffffff
je 0x40a31d
cmp dword [0x42d54c], esi
jne 0x40a302
lea edx, [ebp - 0x23c]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40a211
sub ecx, ebx
sar ecx, 1
jne 0x40a23c
lea edx, [ebp - 0x444]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40a22d
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edi]
cmp eax, 0x7fe7
jae 0x42182a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x421612
push edx
mov edx, dword [ebp - 0x10]
lea ecx, [eax + edi*2]
sub edx, edi
call fcn.00410820
mov ebx, dword [ebp - 0x470]
test bl, 0x10
je 0x421695
push 4
mov ecx, 0x402358
lea eax, [ebp - 0x444]
pop ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a343
test dx, dx
je 0x40a2a8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a343
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x40a280
mov eax, esi
test eax, eax
je 0x40a2e7
mov ecx, 0x402378
lea eax, [ebp - 0x444]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a34d
test dx, dx
je 0x40a2dd
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a34d
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x40a2b9
mov eax, esi
test eax, eax
jne 0x42161d
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x47c]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindNextFileW]
test eax, eax
jne 0x40a1fa
mov ebx, dword [ebp - 0x474]
mov eax, dword [ebp - 0x47c]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindClose]
cmp dword [0x42d54c], esi
jne 0x40a326
mov ecx, ebx
call fcn.0040a359
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ce0
mov esp, ebp
pop ebp
ret
sbb eax, eax
or eax, 1
jmp 0x40a2aa
sbb eax, eax
or eax, 1
jmp 0x40a2df
push 8
pop esi
jmp 0x40a326
mov esi, 0xa1
jmp 0x40a326
push 0x10
pop eax
mov ecx, esi
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x44c], ecx
jmp 0x40a183
test ecx, 0x20000000
jne 0x40a31d
jmp 0x40a196
lea eax, [ebp - 0x220]
jmp 0x40a1dd
lea eax, [ebp - 0x220]
jmp 0x40a255
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x42162a
lea ecx, [ebp - 0x220]
lea edx, [ebp - 0x480]
call fcn.0040a0ba
cmp dword [0x42d54c], esi
jne 0x40a302
test eax, eax
je 0x40a2e7
mov ecx, dword [ebp - 0x478]
mov dword [ecx], esi
cmp eax, 0x91
jne 0x421664
cmp dword [ebp - 0x480], esi
je 0x40a2e7
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x421671
lea eax, [ebp - 0x220]
push eax
push 1
push 0x4000271b
call fcn.00414802
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
push eax
call fcn.00414802
pop ecx
pop ecx
jmp 0x40a2e7
test bl, 1
je 0x4216b4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4216a7
lea ecx, [ebp - 0x220]
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4216c1
lea ecx, [ebp - 0x220]
mov edx, ebx
call fcn.00409ec2
test eax, eax
je 0x40a2e7
cmp eax, 0x4d3
je 0x40a302
cmp eax, 3
jne 0x421728
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4216ed
lea eax, [ebp - 0x220]
push 4
push 0x403b8c
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x421728
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42170f
lea eax, [ebp - 0x220]
push esi
push esi
push esi
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFullPathNameW]
cmp eax, 0x7fe7
jbe 0x421728
push 0x6f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x421731
mov eax, dword [ebp - 0x18]
sub ecx, edx
sar ecx, 1
je 0x42178c
test eax, eax
jne 0x42174f
lea eax, [ebp - 0x220]
xor ecx, ecx
mov word [eax + edi*2], cx
lea ecx, [ebp - 0x444]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x42175e
sub ecx, edx
sar ecx, 1
lea eax, [ecx + edi]
lea ecx, [ebp - 0x220]
cmp eax, 0x7fe7
jb 0x4217d7
lea eax, [ebp - 0x23c]
push eax
call fcn.0040fc22
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x421796
lea eax, [ebp - 0x220]
push eax
push 1
push 0x4000271b
call fcn.00414802
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
push eax
call fcn.00414802
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x4217c2
lea eax, [ebp - 0x220]
push ebx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x478]
mov dword [eax], esi
jmp 0x40a2e7
lea eax, [ebp - 0x444]
push eax
call fcn.0040fc22
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4217f0
lea eax, [ebp - 0x220]
push eax
push 1
push 0x4000271b
call fcn.00414802
mov eax, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
jne 0x42180d
lea eax, [ebp - 0x220]
xor ecx, ecx
mov word [eax + edi*2], cx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040fc22
jmp 0x4217a6
mov eax, dword [ebp - 0x478]
mov ebx, dword [ebp - 0x474]
push edx
push ebx
push 2
push 0x400023da
mov dword [eax], esi
call fcn.00414802
add esp, 0x10
jmp 0x40a308