Function at 0x410850
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x44ac68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20b]
push ebx
push eax
mov dword [ebp - 0x38c], ecx
mov dword [ebp - 0x394], esi
mov byte [ebp - 0x20c], bl
call fcn.00420a60
push esi
lea ecx, [ebp - 0x20c]
push 0x103
push ecx
call fcn.0042240d
push 0x43e8dc
lea edx, [ebp - 0x20c]
push 0x103
push edx
call fcn.0042226b
add esp, 0x24
lea eax, [ebp - 0x384]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x388], eax
lea edi, [ebx + 8]
jmp 0x4108e0
mov ecx, 0x43e8d8
lea eax, [ebp - 0x358]
jmp 0x4108f0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410910
cmp dl, bl
je 0x41090c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410910
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4108f0
xor eax, eax
jmp 0x410915
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x410b27
mov ecx, 0x43e8d4
lea eax, [ebp - 0x358]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410948
cmp dl, bl
je 0x410944
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410948
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x410928
xor eax, eax
jmp 0x41094d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x410b27
push 0x103
lea edx, [ebp - 0x107]
push ebx
push edx
mov byte [ebp - 0x108], bl
call fcn.00420a60
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0042240d
push 0x43e8d0
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0042226b
lea edx, [ebp - 0x358]
push edx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0042226b
add esp, 0x30
test byte [ebp - 0x384], 0x10
je 0x4109d8
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebp - 0x38c]
call fcn.00410850
test al, al
je 0x410b61
jmp 0x410b27
lea eax, [ebp - 0x228]
lea edx, [ebp - 0x108]
push eax
mov dword [ebp - 0x390], edx
call fcn.0041b370
mov ecx, dword [ebp - 0x38c]
add esp, 4
push 0xffffffffffffffff
add ecx, 0x7ec
push ebx
push ecx
mov ecx, eax
call fcn.00406d70
xor edx, edx
mov esi, 7
push eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], ebx
mov word [ebp - 0x244], dx
call fcn.00407320
cmp dword [ebp - 0x214], edi
jb 0x410a47
mov eax, dword [ebp - 0x228]
push eax
call fcn.00420084
add esp, 4
mov eax, dword [ebp - 0x244]
cmp dword [ebp - 0x230], edi
jae 0x410a5b
lea eax, [ebp - 0x244]
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
push ebx
push 1
lea ecx, [ebp - 0x390]
push ecx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x244]
xor edx, edx
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], ebx
mov word [ebp - 0x228], dx
call fcn.00406fa0
mov ecx, dword [ebp - 0x218]
add ecx, 0xa
push ecx
call fcn.0041fdfc
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x228]
cmp dword [ebp - 0x214], edi
jae 0x410ac4
lea eax, [ebp - 0x228]
push eax
push 0x43d800
push esi
call fcn.004221c9
add esp, 0xc
cmp dword [ebp - 0x214], edi
jb 0x410aea
mov edx, dword [ebp - 0x228]
push edx
call fcn.00420084
add esp, 4
xor eax, eax
push esi
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], ebx
mov word [ebp - 0x228], ax
call fcn.0040d0b0
add esp, 0x24
cmp eax, ebx
jne 0x410b4a
cmp dword [ebp - 0x230], edi
jb 0x410b27
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.00420084
add esp, 4
mov eax, dword [ebp - 0x388]
lea edx, [ebp - 0x384]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x410b76
mov esi, dword [ebp - 0x394]
jmp 0x4108e0
cmp dword [ebp - 0x230], edi
jb 0x410b61
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.00420084
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042008f
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x388]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
cmp esi, 0x12
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.0042008f
mov esp, ebp
pop ebp
ret 4