Function at 0x100e2350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1024
call fcn.10183dd0
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 0x100e23ec
push 1
mov edx, ebx
call fcn.100e2250
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 0x100e26a1
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 0x100e2653
mov eax, dword [esi + 0xc]
mov dword [eax + 8], 0
jmp 0x100e266b
lea edx, [edi + 0x14]
call fcn.100d47a0
test eax, eax
je 0x100e26bf
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 0x100e23a0
mov edx, edi
mov ecx, esi
call fcn.100d46d0
cmp eax, 0x10207b40
je 0x100e252c
mov eax, dword [eax + 8]
and eax, 0xf
cmp al, 3
jne 0x100e252c
mov edx, edi
mov ecx, esi
call fcn.100d46d0
cmp dword [eax + 8], 0x13
jne 0x100e2459
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
jmp 0x100e2475
push 0
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.100f75a0
add esp, 4
test eax, eax
je 0x100e26cf
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x100e24d4
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, 0x10211a3b
mov ecx, esi
call fcn.100ef290
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 0x100e24c5
mov ecx, esi
call fcn.100e10e0
xor ebx, ebx
cmp dword [esp + 0x10], 0xffffffff
setne bl
jmp 0x100e263d
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.100d6960
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.100d6ad0
xor eax, eax
cmp eax, edi
mov edi, dword [esp + 0x10]
sbb ebx, ebx
neg ebx
jmp 0x100e263d
mov edx, edi
mov ecx, esi
call fcn.100d46d0
mov ecx, dword [eax + 8]
and ecx, 0xf
cmp ecx, 4
je 0x100e256b
cmp ecx, 3
jne 0x100e26e6
mov edx, eax
mov ecx, esi
call fcn.100e8660
mov eax, dword [esi + 0x10]
cmp dword [eax + 0xc], 0
jle 0x100e2562
mov ecx, esi
call fcn.100e10e0
mov edx, edi
mov ecx, esi
call fcn.100d46d0
mov eax, dword [eax]
add eax, 0x10
je 0x100e26e6
mov cl, byte [eax]
cmp cl, 0x2a
jne 0x100e2580
mov cl, byte [eax + 1]
movsx eax, cl
add eax, 0xffffffb4
cmp eax, 0x22
ja case.0x100e2596.77
movzx eax, byte [eax + 0x100e2708]
jmp dword [eax*4 + 0x100e26f4]
mov edx, dword [esp + 0xc]
mov ecx, esi
call fcn.100e1f10
mov ebx, eax
jmp 0x100e263d
mov edx, dword [esp + 0xc]
mov ecx, esi
push 1
call fcn.100e2250
add esp, 4
mov ebx, eax
jmp 0x100e263d
mov edx, dword [esp + 0xc]
mov ecx, esi
push 0
call fcn.100e2250
add esp, 4
mov ebx, eax
jmp 0x100e263d
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.100d6960
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 0x100e2600
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.100d6ad0
mov ebx, 1
mov eax, dword [esp + 0x14]
inc edi
mov dword [esp + 0x10], edi
test eax, eax
jne 0x100e2410
jmp 0x100e23a0
mov edx, eax
mov ecx, esi
call fcn.100ef290
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 0x100e267f
mov ecx, esi
call fcn.100e10e0
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 0x100e26b3
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.100d62a0
mov edx, edi
mov ecx, esi
call fcn.100d67a0
push str.invalid_format
mov edx, edi
mov ecx, esi
call fcn.100d60b0
push 4
mov edx, edi
mov ecx, esi
call fcn.100d61f0
nop dword [eax]
ret