Function at 0x4010b0
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e4
mov eax, dword [0x40c010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
lea esi, [ebp - 0x158]
push edi
xor ebx, ebx
mov dword [ebp - 0x3e0], eax
xor edi, edi
mov dword [ebp - 0x3d4], ebx
mov dword [ebp - 0x3e4], edi
mov edx, eax
sub esi, eax
nop dword [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x4010f0
cmp dword [0x40c528], ebx
je 0x40110a
call fcn.00401050
push 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [0x40c528], eax
test eax, eax
je 0x401125
xorps xmm0, xmm0
movq qword [eax], xmm0
mov esi, dword [ebp - 0x3e0]
mov edx, esi
push ecx
lea ecx, [ebp - 0x288]
call fcn.004042b0
add esp, 4
lea ecx, [ebp - 0x158]
mov edx, esi
push 0
call fcn.004041c0
add esp, 4
lea eax, [ebp - 0x3d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4011d3
test byte [ebp - 0x3d0], 0x10
jne 0x401185
push ecx
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x3a4]
call fcn.00403eb0
add esp, 4
test eax, eax
je 0x401199
lea eax, [ebp - 0x3d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401163
jmp 0x4011cc
push str._s_s
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x288]
push eax
push 0x57
push str.D:MyProjectsProPilotTestLoaderMain2.c
push str._s_s
lea eax, [ebp - 0x158]
push 0x12c
push eax
call fcn.00404760
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x158]
push eax
call dword [0x40eda8]
mov esi, eax
cmp esi, 0xffffffff
je 0x40148a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov dword [ebp - 0x3dc], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_errno]
mov eax, dword [ebp - 0x3dc]
xor ecx, ecx
add esp, 4
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
push 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
mov dword [ebp - 0x3e0], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xc
je 0x40147f
mov eax, dword [ebp - 0x3e0]
test eax, eax
je 0x40147f
push 0
lea ecx, [ebp - 0x28c]
push ecx
push dword [ebp - 0x3dc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40147f
mov eax, dword [ebp - 0x3dc]
cmp eax, dword [ebp - 0x28c]
jne 0x40147f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, 0x3e8
cmp edi, 1
je 0x40143d
movzx edi, byte [esi + 0x409858]
xor eax, eax
mov dword [ebp - 0x3d8], eax
mov bl, byte [edi + 0x409858]
add eax, edi
add eax, esi
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x409858]
imul eax, ecx
mov ecx, 0x3e8
add eax, edi
cdq
idiv ecx
mov eax, dword [ebp - 0x3d8]
mov edi, edx
mov bl, byte [edi + 0x409858]
mov byte [ebp + eax - 0x28], bl
inc eax
add eax, edi
add eax, esi
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x409858]
imul eax, ecx
mov ecx, 0x3e8
add eax, edi
cdq
idiv ecx
mov eax, dword [ebp - 0x3d8]
mov edi, edx
mov bl, byte [edi + 0x409858]
mov byte [ebp + eax - 0x27], bl
add eax, 2
add eax, edi
add eax, esi
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x409858]
imul eax, ecx
mov ecx, 0x3e8
add eax, edi
cdq
idiv ecx
mov eax, dword [ebp - 0x3d8]
mov edi, edx
mov bl, byte [edi + 0x409858]
mov byte [ebp + eax - 0x26], bl
add eax, 3
add eax, edi
add eax, esi
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x409858]
imul eax, ecx
mov ecx, 0x3e8
add eax, edi
cdq
idiv ecx
mov eax, dword [ebp - 0x3d8]
mov edi, edx
mov bl, byte [edi + 0x409858]
mov byte [ebp + eax - 0x25], bl
add eax, 4
mov dword [ebp - 0x3d8], eax
cmp eax, 0x20
jl 0x4012b2
mov edx, dword [ebp - 0x3dc]
lea eax, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x3e0]
push eax
lea eax, [ebp - 0x3d4]
mov byte [ebp - 8], 0
push eax
call fcn.00404ec0
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x3d8], ebx
test ebx, ebx
je 0x401421
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_errno]
xor ecx, ecx
add esp, 4
mov eax, ebx
mov ebx, dword [ebp - 0x3d4]
add eax, 4
setb cl
neg ecx
or ecx, eax
push ecx
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xc
cmovne ebx, edi
mov edi, dword [ebp - 0x3d8]
push edi
push ebx
mov dword [ebp - 0x3d4], ebx
lea eax, [ebx + 4]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 4
mov dword [ebx], edi
mov edx, ebx
call fcn.004030b0
add esp, 0x10
test eax, eax
je 0x40145e
mov edi, 1
jmp 0x40142a
mov ebx, dword [ebp - 0x3d4]
or edi, 0xffffffff
inc esi
mov dword [ebp - 0x3e4], edi
cmp esi, 0x3e8
jl 0x40128f
test ebx, ebx
je 0x40148a
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077de
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x3e4]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077de
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40148a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004077de
mov esp, ebp
pop ebp
ret