Function at 0x10cf7e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x54]
xor eax, eax
cmp word [ebx + 0x204c], ax
push esi
push edi
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
je 0x10cf8a7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x206c]
mov esi, dword [eax + 0x38]
add esi, dword [eax + 0x50]
mov edi, dword [ebx + 0x2068]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 0x206c]
push eax
call fcn.010b1c0d
mov ax, word [ebx + 0x2070]
test ax, ax
mov edi, dword [ebx + 0x2044]
mov ecx, dword [ebx + 0x2048]
mov dword [ebp - 4], edi
mov dword [ebp - 8], ecx
je 0x10cf863
test ecx, ecx
je 0x10cf863
add edi, 4
mov dword [ebp - 4], edi
cmp ecx, 2
mov esi, dword [ebp + 0xc]
jne 0x10cf992
mov ecx, edi
add edi, 0xf
test ax, ax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edi
je 0x10cf899
movzx eax, word [0x10f884c]
movzx ecx, word [0x10f8848]
lea eax, [eax + ecx - 0xd]
mov dword [ebp - 0x14], eax
jmp 0x10cf94e
movzx eax, word [ecx]
sub eax, 0xd
mov dword [ebp - 0x14], eax
jmp 0x10cf992
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 0x38]
add edi, dword [esi + 0x50]
cmp word [ebx + 0x2070], ax
mov dword [ebp - 4], edi
je 0x10cf98b
push dword [ebx]
mov esi, dword [sym.imp.msvcrt.dll_fread]
push 1
mov dword [ebp - 8], eax
lea eax, [ebx + 0x23e8]
push 1
push eax
call esi
add esp, 0x10
cmp eax, 1
je 0x10cf8ec
mov dword [ebp + 8], 0xfffffdf3
jmp 0x10cfb0c
push dword [ebx]
push 1
push 2
push 0x10f8848
call esi
add esp, 0x10
cmp eax, 1
jne 0x10cf8e0
push dword [ebx]
push eax
push 2
push 0x10f884c
call esi
add esp, 0x10
cmp eax, 1
jne 0x10cf8e0
push dword [ebx]
push eax
push eax
push 0x10f8844
call esi
add esp, 0x10
cmp eax, 1
jne 0x10cf8e0
push dword [ebx]
movzx eax, byte [ebx + 0x23e8]
push eax
lea eax, [ebx + 0x2084]
push 8
push eax
call esi
movzx ecx, byte [ebx + 0x23e8]
add esp, 0x10
cmp eax, ecx
jne 0x10cf8e0
mov esi, dword [ebp + 0xc]
xor ecx, ecx
cmp word [ebp - 0x10], cx
jne 0x10cfafd
mov eax, dword [ebp - 8]
sub eax, ecx
je 0x10cfa71
dec eax
je 0x10cf9e2
dec eax
jne 0x10cfaf3
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cmp word [ebx + 0x204c], cx
mov dword [ebp - 0xc], eax
jne 0x10cf99e
cmp dword [esi + 0x48], eax
jae 0x10cf9bb
jmp 0x10cfa85
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 3
je 0x10cfb03
jmp 0x10cf94e
cmp dword [ebx + 0x2048], 2
je 0x10cf9bb
push dword [ebp - 0x14]
lea eax, [ebp - 4]
push esi
push eax
push ebx
call fcn.010cf633
mov edi, dword [ebp - 4]
mov dword [ebp + 8], eax
xor ecx, ecx
cmp word [ebp + 8], cx
jne 0x10cfadb
add edi, dword [ebp - 0x14]
cmp word [ebx + 0x204c], cx
je 0x10cfb17
sub edi, dword [ebx + 0x2044]
jmp 0x10cfb1d
add dword [ebp - 0xc], 0xf
cmp word [ebx + 0x204c], cx
jne 0x10cfa07
mov eax, dword [ebp - 0xc]
cmp dword [esi + 0x48], eax
jae 0x10cfa22
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
mov word [eax], 0x100
jmp 0x10cfa8e
cmp dword [ebx + 0x2048], ecx
jne 0x10cfa22
push 0xf
push esi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.010cf633
mov edi, dword [ebp - 4]
mov dword [ebp + 8], eax
cmp word [ebp + 8], 0
jne 0x10cfadb
cmp word [ebx + 0x2070], 0
mov dword [ebp - 0x18], edi
je 0x10cfa56
mov al, byte [0x10f8844]
mov byte [edi + 0xe], al
movzx eax, word [0x10f884c]
movzx ecx, word [0x10f8848]
lea eax, [eax + ecx - 0xd]
jmp 0x10cfa5c
movzx eax, word [edi]
sub eax, 0xd
add edi, 0xf
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], 2
jmp 0x10cf94e
cmp word [ebx + 0x204c], cx
push 4
pop eax
mov dword [ebp - 0xc], eax
jne 0x10cfaa4
cmp dword [esi + 0x48], eax
jae 0x10cfaa4
mov ecx, dword [ebp + 0x10]
mov word [ecx], 0x100
push eax
push esi
push ebx
mov dword [ebp - 0x10], 1
call fcn.010cf5a6
mov dword [ebp + 8], eax
jmp 0x10cf94e
cmp dword [edi], 0x33cc33cc
je 0x10cfae7
push 6
add edi, 6
push esi
mov dword [ebp - 4], edi
call fcn.010b1c0d
cmp dword [edi], 0x33cc33cc
jne 0x10cfad4
add edi, 4
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
jmp 0x10cf94e
mov dword [ebp + 8], 0xfffffdf6
mov dword [ebp - 0x10], 1
jmp 0x10cf94e
add edi, eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
cmp dword [ebp - 8], 3
jne 0x10cf94e
cmp word [ebp + 8], cx
jne 0x10cfb0c
mov eax, dword [ebp - 8]
mov dword [ebx + 0x2048], eax
mov ax, word [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
sub edi, dword [esi + 0x38]
sub edi, dword [esi + 0x50]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x23dc], edi
test byte [eax + 0xe], 1
mov dword [ebp - 8], 3
je 0x10cfb46
mov word [ebx + 0x2064], 1
mov word [edx], 0x100
jmp 0x10cfb4b
mov word [edx], 9
test byte [eax + 0xe], 8
je 0x10cfb5a
mov word [ebx + 0x2062], 1
test byte [eax + 0xe], 0x20
je 0x10cfb03
mov eax, dword [ebx + 0x203c]
add eax, dword [ebx + 0x102c]
mov word [ebx + 0x2074], 1
cmp eax, 0xfffffffe
jne 0x10cfb03
mov word [ebx + 0x2062], cx
jmp 0x10cfb03