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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x478bf4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x3d8], 0
xor ebx, ebx
lea esi, [ebp - 0x158]
mov dword [ebp - 0x3dc], ebx
mov edx, edi
sub esi, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x4028e4
mov eax, dword [0x4eef4c]
test eax, eax
je 0x402975
cmp dword [eax], ebx
je 0x402922
push eax
call fcn.00407bf0
mov eax, dword [0x4eef4c]
add esp, 4
push dword [eax]
call fcn.0043d262
mov eax, dword [0x4eef4c]
add esp, 4
mov dword [eax], ebx
mov eax, dword [0x4eef4c]
cmp dword [eax + 4], ebx
lea ecx, [eax + 4]
je 0x402950
push ecx
call fcn.00407bf0
mov eax, dword [0x4eef4c]
add esp, 4
push dword [eax + 4]
call fcn.0043d262
mov eax, dword [0x4eef4c]
add esp, 4
mov dword [eax + 4], ebx
mov eax, dword [0x4eef4c]
test eax, eax
je 0x402975
push 0x4eef4c
call fcn.00407bf0
add esp, 4
push dword [0x4eef4c]
call fcn.0043d262
add esp, 4
mov dword [0x4eef4c], ebx
push 8
call fcn.0043d27d
add esp, 4
mov dword [0x4eef4c], eax
test eax, eax
je 0x40298f
xorps xmm0, xmm0
movq qword [eax], xmm0
push 0
lea eax, [ebp - 0x288]
push edi
push eax
call fcn.00409a00
add esp, 0xc
lea eax, [ebp - 0x158]
push 0
push edi
push eax
call fcn.00409df0
add esp, 0xc
lea eax, [ebp - 0x3d0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402a3f
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
test byte [ebp - 0x3d0], 0x10
jne 0x4029f5
push 0
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x3a4]
push eax
call fcn.00409ee0
add esp, 0xc
test eax, eax
je 0x402a05
lea eax, [ebp - 0x3d0]
push eax
push esi
call edi
test eax, eax
jne 0x4029d0
jmp 0x402a38
push str._s_s
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x288]
push eax
push 0x4e
push str.D:MyProjectsProPilotTestLoaderMain.c
push str._s_s
lea eax, [ebp - 0x158]
push 0x12c
push eax
call fcn.0040ae30
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push 3
push 0
push 3
lea eax, [ebp - 0x158]
push SysReAllocString
push eax
call fcn.00406c00
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
je 0x402e5b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 0
mov dword [ebp - 0x3e8], edi
call fcn.00443151
xor ecx, ecx
add esp, 4
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
push 0
call fcn.0043be56
add esp, 8
mov dword [ebp - 0x3e0], eax
call fcn.0044313e
cmp dword [eax], 0xc
je 0x402e50
mov eax, dword [ebp - 0x3e0]
test eax, eax
je 0x402e50
push 0
lea ecx, [ebp - 0x28c]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402e50
cmp edi, dword [ebp - 0x28c]
jne 0x402e50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov ecx, 0x3e8
cmp ebx, 1
je 0x402e5b
movzx esi, byte [edi + 0x460900]
xor eax, eax
mov dword [ebp - 0x3d4], eax
mov bl, byte [esi + 0x460900]
add eax, esi
add eax, edi
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x460900]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov eax, dword [ebp - 0x3d4]
mov esi, edx
mov bl, byte [esi + 0x460900]
mov byte [ebp + eax - 0x28], bl
inc eax
add eax, esi
add eax, edi
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x460900]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov eax, dword [ebp - 0x3d4]
mov esi, edx
mov bl, byte [esi + 0x460900]
mov byte [ebp + eax - 0x27], bl
add eax, 2
add eax, esi
add eax, edi
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x460900]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov eax, dword [ebp - 0x3d4]
mov esi, edx
mov bl, byte [esi + 0x460900]
mov byte [ebp + eax - 0x26], bl
add eax, 3
add eax, esi
add eax, edi
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x460900]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov eax, dword [ebp - 0x3d4]
mov esi, edx
mov bl, byte [esi + 0x460900]
mov byte [ebp + eax - 0x25], bl
add eax, 4
mov dword [ebp - 0x3d4], eax
cmp eax, 0x20
jl 0x402b10
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 8], 0
push eax
lea eax, [ebp - 0x3d8]
push eax
push dword [ebp - 0x3e8]
push dword [ebp - 0x3e0]
call fcn.00407050
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x402d8e
push 0
call fcn.00443151
xor ecx, ecx
add esp, 4
mov eax, ebx
add eax, 4
setb cl
neg ecx
or ecx, eax
push ecx
push dword [ebp - 0x3d8]
call fcn.0043be56
mov esi, eax
call fcn.0044313e
mov ecx, dword [ebp - 0x3d8]
push ebx
cmp dword [eax], 0xc
cmovne ecx, esi
push ecx
mov dword [ebp - 0x3d8], ecx
lea eax, [ecx + 4]
push eax
call fcn.00438db0
mov eax, dword [ebp - 0x3d8]
add esp, 0x14
mov dword [ebp - 0x3d4], 0
mov dword [eax], ebx
mov eax, dword [0x4eef4c]
mov esi, dword [ebp - 0x3d8]
mov dword [ebp - 0x3e4], eax
call fcn.00402810
mov ebx, eax
test ebx, ebx
je 0x402da9
test esi, esi
je 0x402c9f
mov dword [esi], 0
push 0
mov edx, esi
call fcn.00401620
mov ecx, eax
add esp, 4
mov dword [ebp - 0x3d4], ecx
test ecx, ecx
je 0x402d25
test ecx, ecx
mov eax, 0x4607dc
push 0
cmovne eax, ecx
push str._::_0x
push eax
call fcn.00409ee0
add esp, 0xc
test eax, eax
je 0x402d1f
cmp dword [ebp - 0x3d4], 0
je 0x402d05
lea eax, [ebp - 0x3d4]
push eax
call fcn.00407bf0
add esp, 4
push dword [ebp - 0x3d4]
call fcn.0043d262
add esp, 4
mov dword [ebp - 0x3d4], 0
push 0
mov edx, esi
call fcn.00401620
mov ecx, eax
add esp, 4
mov dword [ebp - 0x3d4], ecx
test ecx, ecx
jne 0x402cb7
jmp 0x402d25
mov ecx, dword [ebp - 0x3d4]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x402d49
push 0
push 1
push dword [ebp - 0x3e4]
mov edx, esi
xor ecx, ecx
push eax
call fcn.00401820
mov ecx, dword [ebp - 0x3d4]
add esp, 0x10
mov eax, dword [ebx + 4]
test eax, eax
je 0x402d66
push 1
push dword [ebp - 0x3e4]
push esi
push 0
call eax
mov ecx, dword [ebp - 0x3d4]
add esp, 0x10
test ecx, ecx
je 0x402d87
lea eax, [ebp - 0x3d4]
push eax
call fcn.00407bf0
add esp, 4
push dword [ebp - 0x3d4]
call fcn.0043d262
add esp, 4
mov ebx, 1
jmp 0x402d91
or ebx, 0xffffffff
inc edi
mov dword [ebp - 0x3dc], ebx
cmp edi, 0x3e8
jge 0x402e5b
jmp 0x402aed
call fcn.00414b10
test eax, eax
je 0x402e13
call fcn.00414b10
cmp dword [eax], 0
je 0x402e13
mov eax, dword [0x48c5c0]
test eax, eax
je 0x402dcd
mov esi, dword [eax + 0x190]
jmp 0x402dd3
mov esi, dword [0x48c5c4]
call fcn.00414b10
test eax, eax
je 0x402de5
call fcn.00414b10
mov eax, dword [eax]
jmp 0x402de7
xor eax, eax
push str.Unknown_block_name__s._Block_can_not_be_loaded
push 0x460d40
push str.Unknown_block_name__s._Block_can_not_be_loaded
push dword [0x48c5c0]
push esi
push 0
push 0x5ae
push str.D:MyProjectsProPilotSettings.c
push 0x103
call eax
add esp, 0x24
cmp dword [ebp - 0x3d8], 0
je 0x402e39
lea eax, [ebp - 0x3d8]
push eax
call fcn.00407bf0
add esp, 4
push dword [ebp - 0x3d8]
call fcn.0043d262
add esp, 4
mov eax, dword [ebp - 0x3dc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004379e8
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x402e5b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d8], 0
je 0x402e81
lea eax, [ebp - 0x3d8]
push eax
call fcn.00407bf0
add esp, 4
push dword [ebp - 0x3d8]
call fcn.0043d262
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004379e8
mov esp, ebp
pop ebp
ret