Function at 0x100d6350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1024
call fcn.101775f0
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 0x100d63ec
push 1
mov edx, ebx
call fcn.100d6250
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 0x100d66a1
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 0x100d6653
mov eax, dword [esi + 0xc]
mov dword [eax + 8], 0
jmp 0x100d666b
lea edx, [edi + 0x14]
call fcn.100c8790
test eax, eax
je 0x100d66bf
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 0x100d63a0
mov edx, edi
mov ecx, esi
call fcn.100c86c0
cmp eax, 0x101dd8c0
je 0x100d652c
mov eax, dword [eax + 8]
and eax, 0xf
cmp al, 3
jne 0x100d652c
mov edx, edi
mov ecx, esi
call fcn.100c86c0
cmp dword [eax + 8], 0x13
jne 0x100d6459
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
jmp 0x100d6475
push 0
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.100eb5a0
add esp, 4
test eax, eax
je 0x100d66cf
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x100d64d4
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, 0x101e790e
mov ecx, esi
call fcn.100e3290
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 0x100d64c5
mov ecx, esi
call fcn.100d50e0
xor ebx, ebx
cmp dword [esp + 0x10], 0xffffffff
setne bl
jmp 0x100d663d
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.100ca950
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.100caac0
xor eax, eax
cmp eax, edi
mov edi, dword [esp + 0x10]
sbb ebx, ebx
neg ebx
jmp 0x100d663d
mov edx, edi
mov ecx, esi
call fcn.100c86c0
mov ecx, dword [eax + 8]
and ecx, 0xf
cmp ecx, 4
je 0x100d656b
cmp ecx, 3
jne 0x100d66e6
mov edx, eax
mov ecx, esi
call fcn.100dc660
mov eax, dword [esi + 0x10]
cmp dword [eax + 0xc], 0
jle 0x100d6562
mov ecx, esi
call fcn.100d50e0
mov edx, edi
mov ecx, esi
call fcn.100c86c0
mov eax, dword [eax]
add eax, 0x10
je 0x100d66e6
mov cl, byte [eax]
cmp cl, 0x2a
jne 0x100d6580
mov cl, byte [eax + 1]
movsx eax, cl
add eax, 0xffffffb4
cmp eax, 0x22
ja case.0x100d6596.77
movzx eax, byte [eax + 0x100d6708]
jmp dword [eax*4 + 0x100d66f4]
mov edx, dword [esp + 0xc]
mov ecx, esi
call fcn.100d5f10
mov ebx, eax
jmp 0x100d663d
mov edx, dword [esp + 0xc]
mov ecx, esi
push 1
call fcn.100d6250
add esp, 4
mov ebx, eax
jmp 0x100d663d
mov edx, dword [esp + 0xc]
mov ecx, esi
push 0
call fcn.100d6250
add esp, 4
mov ebx, eax
jmp 0x100d663d
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.100ca950
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 0x100d6600
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.100caac0
mov ebx, 1
mov eax, dword [esp + 0x14]
inc edi
mov dword [esp + 0x10], edi
test eax, eax
jne 0x100d6410
jmp 0x100d63a0
mov edx, eax
mov ecx, esi
call fcn.100e3290
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 0x100d667f
mov ecx, esi
call fcn.100d50e0
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 0x100d66b3
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.100ca290
mov edx, edi
mov ecx, esi
call fcn.100ca790
push str.invalid_format
mov edx, edi
mov ecx, esi
call fcn.100ca0a0
push 4
mov edx, edi
mov ecx, esi
call fcn.100ca1e0
nop dword [eax]
ret