Function at 0x10b51e1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10e607c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [eax + 4]
mov ax, word [eax + 0x940]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebx + 0x44]
push esi
mov esi, ecx
mov word [ebp - 0x38], ax
xor eax, eax
shr ecx, 2
push edi
mov edi, dword [ebx + 0x38]
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x40]
mov word [eax], 1
mov esi, dword [ebx + 0x38]
mov eax, dword [ebp + 0x10]
xor edx, edx
cmp word [ebp + 0x20], dx
mov dword [esi], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x34], edx
mov word [esi + 4], dx
mov word [esi + 6], dx
mov word [esi + 0x10], dx
mov word [esi + 0x12], dx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
je 0x10b5267
mov word [esi + 6], 1
push 0xa
push esi
call fcn.010b4c14
mov word [esi + 0x14], ax
mov dword [ebx + 0x50], 0x16
xor eax, eax
cmp word [ebp - 0x3c], ax
je 0x10b52c4
push dword [ebp - 0x30]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x50]
add eax, dword [ebx + 0x38]
add esi, 0xffffffea
push esi
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
mov edi, eax
mov eax, dword [ebp - 0x30]
add esp, 0x10
test byte [eax + 0xc], 0x20
je 0x10b52bc
mov edi, dword [ebp + 0x14]
cmp edi, esi
mov dword [ebp - 0x34], 1
jb 0x10b52bc
mov edi, esi
sub dword [ebp + 0x14], edi
add edi, 0x16
jmp 0x10b5309
cmp word [ebp - 0x34], ax
jne 0x10b52fb
mov esi, dword [ebp - 0x30]
push esi
push dword [ebp + 0xc]
push 1
push dword [ebx + 0x38]
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test byte [esi + 0xc], 0x20
mov edi, eax
je 0x10b5306
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 0x14], edi
mov dword [ebp - 0x34], 1
jae 0x10b5306
mov edi, dword [ebp + 0x14]
jmp 0x10b5306
mov edi, dword [ebp + 0x14]
cmp edi, dword [ebp + 0xc]
jb 0x10b5306
mov edi, dword [ebp + 0xc]
sub dword [ebp + 0x14], edi
xor esi, esi
cmp word [ebp - 0x34], si
jne 0x10b532f
mov eax, dword [ebp - 0x30]
test byte [eax + 0xc], 0x10
je 0x10b532f
cmp word [ebp + 0x18], si
je 0x10b53a9
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
add edi, eax
mov dword [ebp + 0x14], esi
push edi
push dword [ebx + 0x38]
push dword [ebp - 0x38]
call fcn.0109c474
test ax, ax
je 0x10b5357
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01078836
leave
ret 0x20
call fcn.0107875a
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x38]
call fcn.0109ca1f
cmp ax, 1
je 0x10b5352
cmp word [ebp - 0x20], si
je 0x10b5376
cmp word [ebp - 0x20], 2
jne 0x10b53c5
mov ecx, edi
mov edi, dword [ebx + 0x38]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp word [ebp - 0x20], 2
je 0x10b53ce
cmp dword [ebp + 0x14], esi
jne 0x10b527a
mov eax, dword [ebp - 0x34]
neg ax
sbb eax, eax
and ax, 0xfde7
jmp 0x10b5344
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x40]
sub ecx, edi
cmp ecx, eax
mov dword [ebx + 0x50], edi
jb 0x10b53c0
mov dword [ebx + 0x48], eax
xor ax, ax
jmp 0x10b5344
mov dword [ebx + 0x48], ecx
jmp 0x10b53bb
mov ax, 0xfdf8
jmp 0x10b5344
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 4]
or word [eax + 0x928], 0x204
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x24], eax
jne 0x10b53ee
mov ecx, dword [ebp - 0x30]
test byte [ecx + 0xc], 0x10
jne 0x10b53f4
mov ecx, dword [ebp - 0x40]
mov word [ecx], si
cmp dword [ebp + 0x10], 0x44444654
jne 0x10b53bb
cmp dword [ebp - 0x24], eax
je 0x10b53bb
sub eax, dword [ebp - 0x24]
push 1
sub eax, dword [ebp - 0x44]
neg eax
push eax
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10b53bb
mov ax, 0xfde7
jmp 0x10b5344