Function at 0x10011bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1002f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x21c], esi
call fcn.100028f0
push esi
lea ebx, [eax - 1]
mov dword [ebp - 0x220], ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
add esp, 4
test ebx, ebx
jne 0x10011c43
push 1
push esi
push edi
call fcn.10012140
mov ebx, eax
mov eax, dword [ebp + 0x10]
inc eax
mov dword [ebp - 0x218], eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
je 0x10011e00
push 0
push 0
push edi
call fcn.10004420
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028ecb
mov esp, ebp
pop ebp
ret 0xc
push str.too_many_arguments
lea eax, [ebx + 0x14]
push eax
push edi
call fcn.10004190
mov eax, dword [ebp + 0x10]
mov ebx, 1
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x218], eax
dec ecx
mov dword [ebp - 0x220], ecx
test ebx, ebx
je 0x10011c14
push eax
push edi
call fcn.10003870
mov ebx, dword [ebp - 0x218]
cmp eax, 3
jne 0x10011d18
push ebx
push edi
call fcn.10003ff0
mov ebx, eax
test ebx, ebx
jne 0x10011cc9
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
push dword [ebp - 0x21c]
mov esi, eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ungetc]
add esp, 0xc
push 0x1002a321
push edi
call fcn.10002eb0
cmp esi, 0xffffffff
mov esi, dword [ebp - 0x21c]
setne bl
jmp 0x10011dc1
lea eax, [ebp - 0x214]
push eax
push edi
call fcn.10003f50
push ebx
lea eax, [ebp - 0x214]
push eax
call fcn.10004af0
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov esi, eax
add dword [ebp - 0x20c], esi
lea eax, [ebp - 0x214]
push eax
call fcn.10004b10
xor eax, eax
cmp eax, esi
mov esi, dword [ebp - 0x21c]
sbb ebx, ebx
neg ebx
jmp 0x10011dc1
push 0
push ebx
push edi
call fcn.10004060
mov cl, byte [eax]
cmp cl, 0x2a
jne 0x10011d2b
mov cl, byte [eax + 1]
movsx eax, cl
add eax, 0xffffffb4
cmp eax, 0x22
ja case.0x10011d41.77
movzx eax, byte [eax + 0x10011e44]
jmp dword [eax*4 + 0x10011e30]
push esi
push edi
call fcn.10012280
mov ebx, eax
jmp 0x10011dc1
push 1
push esi
push edi
call fcn.10012140
mov ebx, eax
jmp 0x10011dc1
push 0
push esi
push edi
call fcn.10012140
mov ebx, eax
jmp 0x10011dc1
lea eax, [ebp - 0x214]
push eax
push edi
call fcn.10003f50
nop word [eax + eax]
push 0x200
lea eax, [ebp - 0x214]
push eax
call fcn.10004af0
push esi
push 0x200
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add dword [ebp - 0x20c], eax
add esp, 0x10
cmp eax, 0x200
je 0x10011d80
lea eax, [ebp - 0x214]
push eax
call fcn.10004b10
mov ebx, 1
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x220]
inc eax
mov dword [ebp - 0x218], eax
test ecx, ecx
jne 0x10011c66
jmp 0x10011c14
push str.invalid_format
push ebx
push edi
call fcn.10003e40
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028ecb
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
jne 0x10011e12
push 0xfffffffffffffffe
push edi
call fcn.10003480
push edi
call fcn.10002e70
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
sub eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
call fcn.10028ecb
mov esp, ebp
pop ebp
ret 0xc