Function at 0x1000c270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, 0x1001c588
push edi
mov edi, eax
mov dword [ebp - 4], ebx
mov ecx, 0x1001c580
mov eax, ebx
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000c2b0
test dl, dl
je 0x1000c2ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000c2b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000c290
xor esi, esi
jmp 0x1000c2b5
sbb esi, esi
sbb esi, 0xffffffff
test esi, esi
je 0x1000c386
mov ecx, 0x1001c584
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000c2e4
test dl, dl
je 0x1000c2e0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000c2e4
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000c2c4
xor eax, eax
jmp 0x1000c2e9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000c382
mov ecx, ebx
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000c315
test dl, dl
je 0x1000c311
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000c315
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000c2f5
xor eax, eax
jmp 0x1000c31a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000c382
mov ecx, 0x1001c58c
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000c345
test dl, dl
je 0x1000c341
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000c345
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000c325
xor eax, eax
jmp 0x1000c34a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000c382
mov ecx, 0x1001c590
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000c375
test dl, dl
je 0x1000c371
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000c375
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000c355
xor eax, eax
jmp 0x1000c37a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000c4a4
test esi, esi
jne 0x1000c389
mov dword [ebp - 4], ebx
mov ecx, 0x1001c584
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000c3b0
test dl, dl
je 0x1000c3ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000c3b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000c390
xor eax, eax
jmp 0x1000c3b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000c3c0
mov dword [ebp - 4], 0x1001c58c
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000c3c5
sub eax, edx
add eax, 5
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
mov edx, ebx
add esp, 4
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000c3e3
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000c3f2
sub eax, edx
dec eax
test eax, eax
jle 0x1000c417
mov cl, byte [eax + ebx]
cmp cl, 0x2e
je 0x1000c417
cmp cl, 0x2f
je 0x1000c417
cmp cl, 0x5c
je 0x1000c417
dec eax
test eax, eax
jg 0x1000c400
cmp byte [eax + ebx], 0x2e
jne 0x1000c421
mov byte [eax + ebx], 0
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000c426
sub eax, esi
add eax, 5
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
push ebx
mov edi, eax
push str._s.dbf
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x3c
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x20
mov dword [esi], eax
test eax, eax
jne 0x1000c485
push ebx
push str._s.DBF
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp - 4]
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x14
mov dword [esi], eax
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_free]
call ebx
push edi
call ebx
mov ebx, dword [esi]
add esp, 8
test ebx, ebx
jne 0x1000c4ad
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x1f4
mov dword [esi + 0x34], eax
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], eax
call dword [sym.imp.MSVCRT.dll_malloc]
push ebx
push 1
mov edi, eax
push 0x20
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x1000c4fc
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_free]
call edi
push esi
call edi
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, byte [edi + 7]
movzx eax, byte [edi + 6]
movzx ecx, byte [edi + 5]
movzx ebx, byte [edi + 9]
shl edx, 8
add edx, eax
movzx eax, byte [edi + 4]
shl edx, 8
add edx, ecx
movzx ecx, byte [edi + 8]
shl edx, 8
add edx, eax
shl ebx, 8
add ebx, ecx
movzx ecx, byte [edi + 0xb]
mov dword [esi + 4], edx
movzx edx, byte [edi + 0xa]
shl ecx, 8
add ecx, edx
lea eax, [ebx - 0x20]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
push ecx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ecx
mov dword [ebp - 4], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.MSVCRT.dll_malloc]
push ebx
push edi
mov dword [esi + 0x30], eax
call dword [sym.imp.MSVCRT.dll_realloc]
mov edi, eax
mov eax, dword [esi]
push 0
push 0x20
push eax
mov dword [ebp - 8], edi
mov dword [esi + 0x24], edi
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esi]
push eax
push 1
add ebx, 0xffffffe0
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x28
cmp eax, 1
je 0x1000c5a0
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, edi
push eax
jmp 0x1000c4e5
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
add ebx, ebx
add ebx, ebx
push ebx
call edi
push ebx
mov dword [ebp - 0x14], eax
mov dword [esi + 0x14], eax
call edi
push ebx
mov dword [ebp - 0x10], eax
mov dword [esi + 0x18], eax
call edi
mov ebx, dword [ebp - 4]
push ebx
mov dword [ebp - 0xc], eax
mov dword [esi + 0x1c], eax
call edi
add esp, 0x10
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [esi + 0x20], eax
test ebx, ebx
jle 0x1000c653
mov edi, dword [ebp - 0x10]
mov ecx, edx
shl ecx, 5
add ecx, dword [ebp - 8]
mov al, byte [ecx + 0xb]
cmp al, 0x4e
je 0x1000c613
cmp al, 0x46
je 0x1000c613
movzx eax, byte [ecx + 0x11]
movzx ebx, byte [ecx + 0x10]
shl eax, 8
add eax, ebx
mov dword [edi + edx*4], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + edx*4], 0
jmp 0x1000c627
movzx eax, byte [ecx + 0x10]
mov dword [edi + edx*4], eax
movzx eax, byte [ecx + 0x11]
mov edi, dword [ebp - 0xc]
mov dword [edi + edx*4], eax
mov edi, dword [ebp - 0x10]
mov cl, byte [ecx + 0xb]
mov eax, dword [ebp - 0x18]
mov byte [eax + edx], cl
test edx, edx
jne 0x1000c63f
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 1
jmp 0x1000c64d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4 - 4]
add ecx, dword [edi + edx*4 - 4]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, dword [ebp - 4]
jl 0x1000c5e4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret