Function at 0x101da1b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
push esi
mov eax, dword [edi + 0x14]
sub eax, dword [edi + 0x10]
sar eax, 3
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
mov eax, dword [esp + 0x3c]
add esp, 4
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x101da203
push 1
push esi
push edi
call fcn.101da4f0
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jmp 0x101da3b0
push str.too_many_arguments
add eax, 0x14
push eax
push edi
call fcn.101cb230
mov edx, dword [esp + 0x44]
mov eax, 1
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
nop word [eax + eax]
dec ecx
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x101da3ac
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + edx*8 + 4]
cmp eax, 0xfffffffb
jne 0x101da3d7
mov eax, dword [ecx + edx*8]
cmp byte [eax + 0x10], 0x2a
jne 0x101da4c8
mov cl, byte [eax + 0x11]
cmp cl, 0x6e
jne 0x101da2aa
lea eax, [esp + 8]
push eax
push 0x1021f2d0
push esi
call sym.gs.dll_fscanf
mov ecx, dword [edi + 0x14]
add esp, 0xc
cmp eax, 1
jne 0x101da294
movsd xmm0, qword [esp + 8]
movsd qword [ecx], xmm0
add dword [edi + 0x14], 8
mov dword [esp + 0x28], eax
jmp 0x101da393
mov dword [ecx + 4], 0xffffffff
add dword [edi + 0x14], 8
xor eax, eax
mov dword [esp + 0x28], eax
jmp 0x101da393
mov al, cl
and al, 0xdf
cmp al, 0x4c
jne 0x101da2ce
xor eax, eax
cmp cl, 0x6c
sete al
push eax
push esi
push edi
call fcn.101da4f0
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x101da393
cmp cl, 0x61
jne 0x101da4b9
mov eax, 0x200
push eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 8]
add eax, 0x4c
push eax
push edi
call fcn.101de100
push esi
push 0x200
push 1
push eax
mov dword [esp + 0x2c], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov esi, eax
mov dword [esp + 0x30], eax
add esp, 0x1c
cmp esi, 0x200
jne 0x101da356
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 8]
add eax, eax
push eax
add ecx, 0x4c
mov dword [esp + 0x24], eax
push ecx
push edi
call fcn.101de100
push dword [esp + 0x40]
mov ecx, eax
mov eax, dword [esp + 0x30]
sub eax, esi
mov dword [esp + 0x20], ecx
push eax
push 1
lea eax, [ecx + esi]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esi, eax
add esp, 0x1c
mov eax, dword [esp + 0x20]
cmp esi, eax
je 0x101da315
mov dword [esp + 0x14], esi
mov esi, dword [edi + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
lea eax, [esi + 8]
push edi
mov dword [edi + 0x14], eax
call fcn.101de140
mov dword [esi], eax
add esp, 0xc
mov dword [esi + 4], 0xfffffffb
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0x14]
cmp eax, dword [ecx + 0x18]
jb 0x101da38b
mov ecx, edi
call fcn.101dc230
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
inc dword [esp + 0x24]
inc edx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
test ecx, ecx
jne 0x101da230
mov esi, dword [esp + 0x28]
push dword [esp + 0x34]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
add esp, 4
test eax, eax
je 0x101da49d
push 0
push 0
push edi
call fcn.101ce530
add esp, 0xc
pop edi
pop esi
add esp, 0x24
ret
cmp eax, 0xfffffff2
mov eax, dword [esp + 0x24]
ja 0x101da4d7
push eax
push edi
call fcn.101e5d10
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x101da45f
mov ecx, dword [edi + 8]
push eax
add ecx, 0x4c
push ecx
push edi
call fcn.101de100
push esi
push dword [esp + 0x20]
mov edi, eax
push 1
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov edx, dword [esp + 0x4c]
push eax
push edi
mov edi, edx
mov dword [esp + 0x34], eax
mov esi, dword [edx + 0x14]
push edi
lea ecx, [esi + 8]
mov dword [edx + 0x14], ecx
call fcn.101de140
mov dword [esi], eax
add esp, 0x28
mov dword [esi + 4], 0xfffffffb
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0x14]
cmp eax, dword [ecx + 0x18]
jb 0x101da44c
mov ecx, edi
call fcn.101dc230
xor eax, eax
cmp eax, dword [esp + 0x10]
sbb eax, eax
neg eax
mov dword [esp + 0x28], eax
jmp 0x101da38f
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
push dword [esp + 0x38]
mov esi, eax
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
mov edx, dword [edi + 0x14]
xor eax, eax
add esp, 0xc
lea ecx, [edx + 8]
mov dword [edi + 0x14], ecx
mov ecx, dword [edi + 8]
add ecx, 0x70
mov dword [edx + 4], 0xfffffffb
cmp esi, 0xffffffff
mov dword [edx], ecx
setne al
mov dword [esp + 0x28], eax
jmp 0x101da38f
test esi, esi
jne 0x101da4ab
mov ecx, dword [edi + 0x14]
mov dword [ecx - 4], 0xffffffff
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x38]
pop edi
pop esi
add esp, 0x24
ret
push 0x4eb
lea eax, [edx + 1]
push eax
push edi
call fcn.101cf490
push 0x4c8
lea eax, [edx + 1]
push eax
push edi
call fcn.101cf490
push 0x4c8
push eax
push edi
call fcn.101cf490
int3