Function at 0x100b7710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
mov eax, dword [0x101a0040]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
push edi
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x14], edi
sub ebx, dword [eax]
sub ebx, 0x10
sar ebx, 4
dec ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
add esp, 4
mov ecx, esi
test ebx, ebx
jne 0x100b77b0
push 1
mov edx, edi
call fcn.100b7540
mov edi, dword [ebp + 8]
add esp, 4
mov ebx, eax
inc edi
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
je 0x100b7b56
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 byte [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 0x100b7aff
mov eax, dword [esi + 0xc]
mov byte [eax + 8], 0
jmp 0x100b7b15
lea edx, [ebx + 0x14]
call fcn.100a5be0
test eax, eax
je 0x100b7ba0
mov edi, dword [ebp + 8]
mov ebx, 1
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edi
dec eax
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x100b776a
mov edx, edi
mov ecx, esi
call fcn.100a5b70
mov dl, byte [eax + 8]
test dl, 0xf
jne 0x100b77f8
mov ecx, dword [esi + 0x10]
add ecx, 0x38
cmp eax, ecx
je 0x100b795c
and dl, 0xf
cmp dl, 3
jne 0x100b795c
lea eax, [esp + 0x1c]
mov edx, edi
push eax
mov ecx, esi
call fcn.100a5f00
add esp, 4
mov ebx, eax
cmp dword [esp + 0x1c], 0
je 0x100b7bb0
test ebx, ebx
jne 0x100b787f
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
add esp, 4
mov dword [esp + 0x14], eax
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ungetc]
add esp, 8
mov edx, 0x10170b03
mov ecx, esi
call fcn.100c69e0
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
mov al, byte [eax + 4]
or al, 0x40
mov byte [ecx + 8], al
mov eax, dword [esi + 0x10]
add dword [esi + 0xc], 0x10
cmp dword [eax + 0xc], 0
jle 0x100b7870
mov ecx, esi
call fcn.100b6310
xor ebx, ebx
cmp dword [esp + 0x14], 0xffffffff
setne bl
jmp 0x100b7ae9
lea eax, [esp + 0x38]
mov dword [esp + 0x34], esi
push 0xffffffffffffffff
mov edx, ebx
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0x200
call fcn.100a85d0
add esp, 4
push dword [esp + 0x10]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [esp + 0x40]
mov ebx, eax
mov edi, dword [esp + 0x44]
add esp, 0x10
add ecx, ebx
mov dword [esp + 0x30], ecx
jne 0x100b78dc
mov edx, 0x10170b03
mov ecx, edi
call fcn.100c69e0
jmp 0x100b78eb
mov edx, dword [esp + 0x28]
push ecx
mov ecx, edi
call fcn.100c6950
add esp, 4
mov ecx, dword [edi + 0xc]
mov dword [ecx], eax
mov al, byte [eax + 4]
or al, 0x40
mov byte [ecx + 8], al
mov eax, dword [edi + 0x10]
add dword [edi + 0xc], 0x10
cmp dword [eax + 0xc], 0
jle 0x100b790c
mov ecx, edi
call fcn.100b6310
lea eax, [esp + 0x38]
cmp dword [esp + 0x28], eax
je 0x100b794b
mov edx, dword [edi + 0xc]
mov eax, dword [edx - 0x10]
mov ecx, dword [edx - 0xc]
mov dword [edx - 0x30], eax
mov dword [edx - 0x2c], ecx
mov al, byte [edx - 8]
mov byte [edx - 0x28], al
mov eax, dword [edi + 0x14]
cmp word [eax + 0x20], 0xffff
jge 0x100b7947
mov edx, dword [edi + 0xc]
mov ecx, edi
push 0
sub edx, 0x20
call fcn.100b4250
add esp, 4
add dword [edi + 0xc], 0xffffffe0
mov edi, dword [esp + 0x14]
xor eax, eax
cmp eax, ebx
sbb ebx, ebx
neg ebx
jmp 0x100b7ae9
push 0
mov edx, edi
mov ecx, esi
call fcn.100a6010
add esp, 4
test eax, eax
je 0x100b7bc7
mov cl, byte [eax]
cmp cl, 0x2a
jne 0x100b797c
mov cl, byte [eax + 1]
movsx eax, cl
add eax, 0xffffffb4
cmp eax, 0x22
ja case.0x100b7992.77
movzx eax, byte [eax + 0x100b7be8]
jmp dword [eax*4 + 0x100b7bd4]
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.100b71c0
mov ebx, eax
jmp 0x100b7ae9
mov edx, dword [esp + 0x10]
mov ecx, esi
push 1
call fcn.100b7540
add esp, 4
mov ebx, eax
jmp 0x100b7ae9
mov edx, dword [esp + 0x10]
mov ecx, esi
push 0
call fcn.100b7540
add esp, 4
mov ebx, eax
jmp 0x100b7ae9
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x248]
mov dword [esp + 0x244], esi
mov dword [esp + 0x238], eax
mov dword [esp + 0x240], 0
mov dword [esp + 0x23c], 0x200
nop dword [eax + eax]
push 0xffffffffffffffff
mov edx, 0x200
lea ecx, [esp + 0x23c]
call fcn.100a85d0
add esp, 4
push edi
push 0x200
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [esp + 0x250]
add esp, 0x10
add ecx, eax
mov dword [esp + 0x240], ecx
cmp eax, 0x200
je 0x100b7a10
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x244]
test ecx, ecx
jne 0x100b7a6c
mov edx, 0x10170b03
mov ecx, ebx
call fcn.100c69e0
jmp 0x100b7a7e
mov edx, dword [esp + 0x238]
push ecx
mov ecx, ebx
call fcn.100c6950
add esp, 4
mov ecx, dword [ebx + 0xc]
mov dword [ecx], eax
mov al, byte [eax + 4]
or al, 0x40
mov byte [ecx + 8], al
mov eax, dword [ebx + 0x10]
add dword [ebx + 0xc], 0x10
cmp dword [eax + 0xc], 0
jle 0x100b7a9f
mov ecx, ebx
call fcn.100b6310
lea eax, [esp + 0x248]
cmp dword [esp + 0x238], eax
je 0x100b7ae4
mov edx, dword [ebx + 0xc]
mov eax, dword [edx - 0x10]
mov ecx, dword [edx - 0xc]
mov dword [edx - 0x30], eax
mov dword [edx - 0x2c], ecx
mov al, byte [edx - 8]
mov byte [edx - 0x28], al
mov eax, dword [ebx + 0x14]
cmp word [eax + 0x20], 0xffff
jge 0x100b7ae0
mov edx, dword [ebx + 0xc]
mov ecx, ebx
push 0
sub edx, 0x20
call fcn.100b4250
add esp, 4
add dword [ebx + 0xc], 0xffffffe0
mov ebx, 1
mov eax, dword [esp + 0x18]
inc edi
mov dword [esp + 0x14], edi
test eax, eax
jne 0x100b77d0
jmp 0x100b776a
mov edx, eax
mov ecx, esi
call fcn.100c69e0
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
mov al, byte [eax + 4]
or al, 0x40
mov byte [ecx + 8], al
mov ecx, dword [esi + 0x10]
add dword [esi + 0xc], 0x10
cmp dword [ecx + 0xc], 0
jle 0x100b7b29
mov ecx, esi
call fcn.100b6310
mov ecx, dword [esi + 0xc]
mov eax, edi
cdq
mov dword [ecx], eax
mov eax, 3
mov dword [ecx + 4], edx
mov byte [ecx + 8], 3
add dword [esi + 0xc], 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.1013c175
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x100b7b86
mov eax, dword [esi + 0x14]
cmp word [eax + 0x20], 0xffff
jge 0x100b7b75
mov edx, dword [esi + 0xc]
mov ecx, esi
push ebx
sub edx, 0x10
call fcn.100b4250
add esp, 4
mov eax, dword [esi + 0xc]
add eax, 0xfffffff0
mov dword [esi + 0xc], eax
mov byte [eax + 8], 0
add dword [esi + 0xc], 0x10
sub edi, dword [ebp + 8]
mov ecx, dword [esp + 0x44c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1013c175
mov esp, ebp
pop ebp
ret
push str.too_many_arguments
push str.stack_overflow___s_
push esi
call fcn.100a7f10
mov edx, edi
mov ecx, esi
call fcn.100a8420
push str.invalid_format
mov edx, edi
mov ecx, esi
call fcn.100a7c50
push 4
mov edx, edi
mov ecx, esi
call fcn.100a7e00
nop
ret 0xb79