Function at 0x100ec550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1024
call fcn.1018be20
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
push ebx
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
sub edi, dword [eax]
sub edi, 0x10
sar edi, 4
dec edi
mov dword [esp + 0x18], edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
add esp, 4
mov ecx, esi
test edi, edi
jne 0x100ec5ec
push 1
mov edx, ebx
call fcn.100ec450
mov edi, dword [ebp + 8]
add esp, 4
mov ebx, eax
inc edi
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
je 0x100ec8a1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
mov eax, dword [esi + 0xc]
push edi
mov dword [eax + 8], 0
add dword [esi + 0xc], 0x10
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
test eax, eax
jne 0x100ec853
mov eax, dword [esi + 0xc]
mov dword [eax + 8], 0
jmp 0x100ec86b
lea edx, [edi + 0x14]
call fcn.100de970
test eax, eax
je 0x100ec8bf
mov edi, dword [ebp + 8]
mov ebx, 1
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edi
nop dword [eax]
dec eax
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x100ec5a0
mov edx, edi
mov ecx, esi
call fcn.100de8a0
cmp eax, 0x1020fac8
je 0x100ec72c
mov eax, dword [eax + 8]
and eax, 0xf
cmp al, 3
jne 0x100ec72c
mov edx, edi
mov ecx, esi
call fcn.100de8a0
cmp dword [eax + 8], 0x13
jne 0x100ec659
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
jmp 0x100ec675
push 0
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.101017a0
add esp, 4
test eax, eax
je 0x100ec8cf
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x100ec6d4
mov ebx, dword [esp + 0xc]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
add esp, 4
mov dword [esp + 0x10], eax
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ungetc]
add esp, 8
mov edx, 0x10219b16
mov ecx, esi
call fcn.100f9490
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
movzx eax, byte [eax + 4]
or eax, 0x40
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x10]
add dword [esi + 0xc], 0x10
cmp dword [eax + 0xc], 0
jle 0x100ec6c5
mov ecx, esi
call fcn.100eb2e0
xor ebx, ebx
cmp dword [esp + 0x10], 0xffffffff
setne bl
jmp 0x100ec83d
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], esi
mov edx, ebx
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0x1000
call fcn.100e0b30
push dword [esp + 0xc]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
lea ecx, [esp + 0x20]
mov edi, eax
add dword [esp + 0x28], edi
call fcn.100e0ca0
xor eax, eax
cmp eax, edi
mov edi, dword [esp + 0x10]
sbb ebx, ebx
neg ebx
jmp 0x100ec83d
mov edx, edi
mov ecx, esi
call fcn.100de8a0
mov ecx, dword [eax + 8]
and ecx, 0xf
cmp ecx, 4
je 0x100ec76b
cmp ecx, 3
jne 0x100ec8e6
mov edx, eax
mov ecx, esi
call fcn.100f2860
mov eax, dword [esi + 0x10]
cmp dword [eax + 0xc], 0
jle 0x100ec762
mov ecx, esi
call fcn.100eb2e0
mov edx, edi
mov ecx, esi
call fcn.100de8a0
mov eax, dword [eax]
add eax, 0x10
je 0x100ec8e6
mov cl, byte [eax]
cmp cl, 0x2a
jne 0x100ec780
mov cl, byte [eax + 1]
movsx eax, cl
add eax, 0xffffffb4
cmp eax, 0x22
ja case.0x100ec796.77
movzx eax, byte [eax + 0x100ec908]
jmp dword [eax*4 + 0x100ec8f4]
mov edx, dword [esp + 0xc]
mov ecx, esi
call fcn.100ec110
mov ebx, eax
jmp 0x100ec83d
mov edx, dword [esp + 0xc]
mov ecx, esi
push 1
call fcn.100ec450
add esp, 4
mov ebx, eax
jmp 0x100ec83d
mov edx, dword [esp + 0xc]
mov ecx, esi
push 0
call fcn.100ec450
add esp, 4
mov ebx, eax
jmp 0x100ec83d
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0x1000
nop word [eax + eax]
mov edx, 0x1000
lea ecx, [esp + 0x20]
call fcn.100e0b30
push edi
push 0x1000
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add dword [esp + 0x38], eax
add esp, 0x10
cmp eax, 0x1000
je 0x100ec800
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.100e0ca0
mov ebx, 1
mov eax, dword [esp + 0x14]
inc edi
mov dword [esp + 0x10], edi
test eax, eax
jne 0x100ec610
jmp 0x100ec5a0
mov edx, eax
mov ecx, esi
call fcn.100f9490
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
movzx eax, byte [eax + 4]
or eax, 0x40
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0x10]
add dword [esi + 0xc], 0x10
cmp dword [ecx + 0xc], 0
jle 0x100ec87f
mov ecx, esi
call fcn.100eb2e0
mov ecx, dword [esi + 0xc]
mov eax, edi
cdq
mov dword [ecx], eax
mov eax, 3
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0x13
add dword [esi + 0xc], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x100ec8b3
add dword [esi + 0xc], 0xfffffff0
mov eax, dword [esi + 0xc]
mov dword [eax + 8], ebx
add dword [esi + 0xc], 0x10
sub edi, dword [ebp + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.too_many_arguments
push str.stack_overflow___s_
push esi
call fcn.100e0470
mov edx, edi
mov ecx, esi
call fcn.100e0970
push str.invalid_format
mov edx, edi
mov ecx, esi
call fcn.100e0280
push 4
mov edx, edi
mov ecx, esi
call fcn.100e03c0
nop dword [eax]
ret