Function at 0x100f9820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1024
call fcn.1019b090
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 0x100f98bc
push 1
mov edx, ebx
call fcn.100f9710
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 0x100f9b44
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
mov eax, dword [esi + 0xc]
push ebx
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 0x100f9af3
mov eax, dword [esi + 0xc]
mov dword [eax + 8], 0
jmp 0x100f9b0b
lea edx, [edi + 0x14]
call fcn.100ec1b0
test eax, eax
je 0x100f9b62
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 0x100f9870
mov edx, edi
mov ecx, esi
call fcn.100ec0e0
cmp eax, 0x10207740
je 0x100f99fc
mov eax, dword [eax + 8]
and eax, 0xf
cmp al, 3
jne 0x100f99fc
mov edx, edi
mov ecx, esi
call fcn.100ec0e0
cmp dword [eax + 8], 0x13
jne 0x100f9929
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
jmp 0x100f9945
push 0
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.1010d7a0
add esp, 4
test eax, eax
je 0x100f9b72
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x100f99a4
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, 0x102111f8
mov ecx, esi
call fcn.10105850
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 0x100f9995
mov ecx, esi
call fcn.100f8530
xor ebx, ebx
cmp dword [esp + 0x10], 0xffffffff
setne bl
jmp 0x100f9add
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.100ee4b0
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.100ee630
xor eax, eax
cmp eax, edi
mov edi, dword [esp + 0x10]
sbb ebx, ebx
neg ebx
jmp 0x100f9add
push 0
mov edx, edi
mov ecx, esi
call fcn.100ec470
add esp, 4
test eax, eax
je 0x100f9b89
mov cl, byte [eax]
cmp cl, 0x2a
jne 0x100f9a1c
mov cl, byte [eax + 1]
movsx eax, cl
add eax, 0xffffffb4
cmp eax, 0x22
ja case.0x100f9a32.77
movzx eax, byte [eax + 0x100f9ba8]
jmp dword [eax*4 + 0x100f9b94]
mov edx, dword [esp + 0xc]
mov ecx, esi
call fcn.100f93f0
mov ebx, eax
jmp 0x100f9add
mov edx, dword [esp + 0xc]
mov ecx, esi
push 1
call fcn.100f9710
add esp, 4
mov ebx, eax
jmp 0x100f9add
mov edx, dword [esp + 0xc]
mov ecx, esi
push 0
call fcn.100f9710
add esp, 4
mov ebx, eax
jmp 0x100f9add
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 dword [eax]
nop word [eax + eax]
mov edx, 0x1000
lea ecx, [esp + 0x20]
call fcn.100ee4b0
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 0x100f9aa0
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.100ee630
mov ebx, 1
mov eax, dword [esp + 0x14]
inc edi
mov dword [esp + 0x10], edi
test eax, eax
jne 0x100f98e0
jmp 0x100f9870
mov edx, eax
mov ecx, esi
call fcn.10105850
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
mov edi, dword [esi + 0xc]
cmp dword [ecx + 0xc], 0
jle 0x100f9b25
mov ecx, esi
call fcn.100f8530
mov edi, dword [esi + 0xc]
mov eax, ebx
mov dword [edi + 8], 0x13
cdq
mov dword [edi], eax
mov eax, 3
mov dword [edi + 4], edx
add dword [esi + 0xc], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
in eax, 0x5d
ret
test ebx, ebx
jne 0x100f9b56
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.100edd20
mov edx, edi
mov ecx, esi
call fcn.100ee2d0
push str.invalid_format
mov edx, edi
mov ecx, esi
call fcn.100edb60
push 4
mov edx, edi
mov ecx, esi
call fcn.100edca0
pop edi
lcall 4111, 0x9a73100f
dec ebx
lcall 4111, 0x9a39100f
jnp 0x100f9b41
movups xmm0, xmmword [eax]
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add dword [esp + eax], eax
add al, 4
add al, 4
add al, 4
add al, 4
add al, byte [ebx + eax]
int3