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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x425004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 0x3e4], esi
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x3d4], edi
mov edx, ebx
sub ecx, ebx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x402c62
mov eax, dword [0x426624]
test eax, eax
je 0x402cc3
mov ecx, dword [eax]
test ecx, ecx
je 0x402c93
push ecx
call fcn.004087f6
mov eax, dword [0x426624]
add esp, 4
mov dword [eax], esi
mov eax, dword [0x426624]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x402cb0
push ecx
call fcn.004087f6
mov eax, dword [0x426624]
add esp, 4
mov dword [eax + 4], esi
mov eax, dword [0x426624]
test eax, eax
je 0x402cc3
push eax
call fcn.004087f6
add esp, 4
mov dword [0x426624], esi
push 8
call fcn.0040e3c5
add esp, 4
mov dword [0x426624], eax
test eax, eax
je 0x402cdd
xorps xmm0, xmm0
movq qword [eax], xmm0
push ecx
mov edx, ebx
lea ecx, [ebp - 0x288]
call fcn.00404570
add esp, 4
lea ecx, [ebp - 0x158]
mov edx, ebx
push 0
call fcn.00404480
add esp, 4
lea eax, [ebp - 0x3d0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402d85
test byte [ebp - 0x3d0], 0x10
jne 0x402d37
push ecx
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x3a4]
call fcn.004041f0
add esp, 4
test eax, eax
je 0x402d4b
lea eax, [ebp - 0x3d0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402d15
jmp 0x402d7e
push str._s_s
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x288]
push eax
push 0x56
push str.D:MyProjectsProPilotTestLoaderMain2.c
push str._s_s
lea eax, [ebp - 0x158]
push 0x12c
push eax
call fcn.00404a90
add esp, 0x20
push ebx
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 [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402dcf
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4030ff
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov dword [ebp - 0x3dc], eax
call fcn.0040e45c
mov ecx, dword [ebp - 0x3dc]
xor edx, edx
add esp, 4
add ecx, 1
setb dl
neg edx
or edx, ecx
push edx
push 0
call fcn.00407280
add esp, 8
mov dword [ebp - 0x3e8], eax
call fcn.0040e449
cmp dword [eax], 0xc
je 0x4030f4
mov eax, dword [ebp - 0x3e8]
test eax, eax
je 0x4030f4
push 0
lea ecx, [ebp - 0x28c]
push ecx
push dword [ebp - 0x3dc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4030f4
mov eax, dword [ebp - 0x3dc]
cmp eax, dword [ebp - 0x28c]
jne 0x4030f4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 0x3d8], 0x3e8
nop dword [eax + eax]
cmp esi, 1
je 0x4030b4
movzx esi, byte [ebx + 0x423048]
xor edi, edi
mov cl, byte [esi + 0x423048]
lea eax, [esi + edi]
movzx ecx, cl
add eax, ebx
cdq
idiv dword [ebp - 0x3d8]
movzx eax, byte [edx + 0x423048]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov esi, edx
lea eax, [esi + 1]
mov cl, byte [esi + 0x423048]
add eax, edi
mov byte [ebp + edi - 0x28], cl
add eax, ebx
movzx ecx, cl
cdq
idiv dword [ebp - 0x3d8]
movzx eax, byte [edx + 0x423048]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov esi, edx
lea eax, [esi + 2]
mov cl, byte [esi + 0x423048]
add eax, edi
mov byte [ebp + edi - 0x27], cl
add eax, ebx
movzx ecx, cl
cdq
idiv dword [ebp - 0x3d8]
movzx eax, byte [edx + 0x423048]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov esi, edx
lea eax, [esi + 3]
mov cl, byte [esi + 0x423048]
add eax, edi
mov byte [ebp + edi - 0x26], cl
add eax, ebx
movzx ecx, cl
cdq
idiv dword [ebp - 0x3d8]
movzx eax, byte [edx + 0x423048]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov esi, edx
mov cl, byte [esi + 0x423048]
mov byte [ebp + edi - 0x25], cl
add edi, 4
cmp edi, 0x20
jl 0x402e88
mov edx, dword [ebp - 0x3dc]
lea eax, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x3d4]
mov byte [ebp - 8], 0
push eax
call fcn.00404fc0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x3e0], esi
test esi, esi
je 0x403098
push 0
call fcn.0040e45c
mov edi, dword [ebp - 0x3d4]
xor edx, edx
add esp, 4
mov ecx, esi
add ecx, 4
setb dl
neg edx
or edx, ecx
push edx
push edi
call fcn.00407280
mov esi, eax
call fcn.0040e449
cmp dword [eax], 0xc
cmovne edi, esi
mov esi, dword [ebp - 0x3e0]
push esi
push edi
mov dword [ebp - 0x3d4], edi
lea eax, [edi + 4]
push eax
call fcn.00406d00
add esp, 0x14
mov dword [edi], esi
mov eax, dword [0x426624]
mov dword [ebp - 0x3e0], eax
call fcn.00402b40
mov dword [ebp - 0x3ec], eax
test eax, eax
je 0x4030d4
push 0
mov edx, edi
mov dword [edi], 0
call fcn.00401740
mov esi, eax
add esp, 4
test esi, esi
je 0x403043
nop
push ecx
mov edx, str._::_0x
mov ecx, esi
call fcn.004041f0
add esp, 4
test eax, eax
je 0x403043
test esi, esi
je 0x403031
push esi
call fcn.004087f6
add esp, 4
push 0
mov edx, edi
call fcn.00401740
mov esi, eax
add esp, 4
test esi, esi
jne 0x403010
mov eax, dword [ebp - 0x3ec]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40306d
push 0
push 1
push dword [ebp - 0x3e0]
mov edx, edi
push ecx
xor ecx, ecx
call fcn.00401940
mov eax, dword [ebp - 0x3ec]
add esp, 0x10
mov eax, dword [eax + 4]
test eax, eax
je 0x403084
push 1
push dword [ebp - 0x3e0]
push edi
push 0
call eax
add esp, 0x10
test esi, esi
je 0x403091
push esi
call fcn.004087f6
add esp, 4
mov esi, 1
jmp 0x4030a1
mov edi, dword [ebp - 0x3d4]
or esi, 0xffffffff
inc ebx
mov dword [ebp - 0x3e4], esi
cmp ebx, 0x3e8
jl 0x402e70
test edi, edi
je 0x4030ff
push edi
call fcn.004087f6
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054b6
mov esp, ebp
pop ebp
ret
push edi
call fcn.004087f6
mov eax, dword [ebp - 0x3e4]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054b6
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4030ff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004054b6
mov esp, ebp
pop ebp
ret