Function at 0x40b89c
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x47c], eax
push esi
mov esi, ebx
xor ecx, ecx
push edi
mov dword [ebp - 0x478], ecx
lea edi, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x40b8cc
sub esi, edi
sar esi, 1
lea eax, [esi + 2]
cmp eax, edx
ja 0x419da8
mov ecx, ebx
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40b8ed
mov esi, dword [ebp - 0x47c]
sub ecx, edx
sar ecx, 1
push ebx
lea eax, [ecx - 2]
mov dword [ebp - 0x488], eax
mov dword [esi], eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419d99
test al, 0x10
jne 0x419daf
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416fd0
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.0040c5a2
pop ecx
pop ecx
xor eax, eax
jmp 0x40b928
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x419db4
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
push 0x2a
cmp word [ebx + ecx*2 - 2], ax
jne 0x419dd4
mov edx, edi
pop eax
jmp 0x419ddc
xor edx, edx
mov word [ebx + ecx*2 + 4], dx
pop edx
mov word [ebx + ecx*2], ax
lea eax, [ebp - 0x474]
push eax
push ebx
mov word [ebx + ecx*2 + 2], dx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov dword [ebp - 0x480], eax
cmp eax, 0xffffffff
jne 0x419e26
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
cmp esi, 2
je 0x40b925
cmp esi, 0x12
je 0x40b925
push edi
jmp 0x41a019
xor edi, edi
inc edi
mov ecx, 0x4021cc
lea eax, [ebp - 0x448]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419e5a
test dx, dx
je 0x419e56
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419e5a
add eax, 4
add ecx, 4
test dx, dx
jne 0x419e34
xor eax, eax
jmp 0x419e5f
sbb eax, eax
or eax, 1
test eax, eax
je 0x419fc0
mov ecx, 0x4021ec
lea eax, [ebp - 0x448]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419e98
test dx, dx
je 0x419e94
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419e98
add eax, 4
add ecx, 4
test dx, dx
jne 0x419e72
xor eax, eax
jmp 0x419e9d
sbb eax, eax
or eax, 1
test eax, eax
je 0x419fc0
lea ecx, [ebp - 0x448]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x478]
jne 0x419eae
sub ecx, edx
sar ecx, 1
je 0x419fc0
test byte [ebp - 0x474], 0x10
jne 0x419fb6
xor eax, eax
mov byte [ebp - 0x18], 1
mov esi, 0x104
mov dword [ebp - 0x1c], eax
push esi
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x14], esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x224]
add esp, 0xc
cmp byte [ebp - 0x18], al
sete al
dec eax
and eax, 0x7ee3
add eax, esi
push eax
call fcn.00410c70
test eax, eax
js 0x419fdf
push ebx
lea ecx, [ebp - 0x224]
call fcn.00410d89
mov edx, dword [ebp - 0x1c]
mov ecx, edx
test edx, edx
jne 0x419f35
lea ecx, [ebp - 0x224]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x478]
jne 0x419f38
sub ecx, esi
sar ecx, 1
test edx, edx
jne 0x419f55
lea edx, [ebp - 0x224]
xor eax, eax
mov word [edx + ecx*2 - 2], ax
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x224]
call fcn.00410cf2
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x419f7b
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x484]
push eax
call fcn.0040b89c
test eax, eax
je 0x419fe7
mov esi, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0x488]
add ecx, dword [ebp - 0x484]
mov eax, dword [esi]
cmp eax, ecx
jg 0x419fa8
mov eax, ecx
push dword [ebp - 0x1c]
mov dword [esi], eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x419fc0
mov eax, dword [esi]
cmp eax, ecx
jg 0x419fbe
mov eax, ecx
mov dword [esi], eax
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 0x480]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x419e29
jmp 0x419ff1
push 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push dword [ebp - 0x480]
mov esi, eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
test edi, edi
jne 0x419da8
cmp esi, 0x12
je 0x40b925
xor eax, eax
push eax
push esi
call fcn.0040c5a2
pop ecx
xor eax, eax
pop ecx
jmp 0x40b928