Function at 0x10008df0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
movzx esi, word [ebx + 0x5d2c]
lea eax, [esi - 1]
cmp ax, 0x5f
ja 0x10009022
mov dx, word [ebx + 0x5d3a]
mov ecx, dword [ebx + 0x5d7a]
add dx, 0x18
movzx eax, dx
add eax, dword [ebx + 0x3148]
push 0
push eax
mov eax, dword [ebx + 0x3140]
push eax
mov dword [esp + 0x20], ecx
call fcn.10016cec
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10008e47
call fcn.1000cfe0
push ebp
movzx ebp, si
push edi
lea edi, [ebp + ebp*4]
add edi, edi
add edi, edi
add edi, edi
mov eax, edi
cmp eax, 0x1388
mov dword [esp + 0x10], ebp
jle 0x10008e68
mov eax, 0x1388
movzx ecx, ax
mov eax, dword [ebx + 0x3140]
push ecx
lea edx, [ebx + 0x4593]
push edx
push eax
call fcn.10016b7a
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10008e8c
call fcn.1000cfe0
push 0x20
call fcn.1000cb2d
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x10009020
mov dword [esi + 1], eax
mov dword [esi + 5], eax
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 0x3150]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], eax
mov edx, dword [ebx + 0x45a7]
mov eax, dword [ebx + 0x459f]
mov dword [ebx + 0x3190], edx
mov dword [ebx + 0x3194], eax
mov dword [ebx + 0x318c], esi
mov ecx, dword [edi + ebx + 0x457f]
mov dword [ebx + 0x3198], ecx
mov edx, dword [edi + ebx + 0x4577]
add edx, dword [ebx + 0x3150]
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp ebp, 1
mov ebp, dword [esp + 0x1c]
mov dword [ebx + 0x319c], edx
jl 0x10008fed
lea edi, [ebx + 0x4594]
jmp 0x10008f30
mov edx, dword [edi + 0x13]
cmp edx, dword [ebx + 0x3134]
jge 0x10008fd8
push 0x20
call fcn.1000cb2d
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x10009020
mov esi, eax
movzx eax, byte [edi - 1]
mov byte [esi + 1], al
movzx ecx, byte [edi]
mov byte [esi + 2], cl
movzx edx, byte [edi + 1]
mov byte [esi + 3], dl
movzx eax, byte [edi + 2]
mov byte [esi + 4], al
movzx ecx, byte [edi + 3]
mov byte [esi + 5], cl
movzx edx, byte [edi + 4]
mov byte [esi + 6], dl
movzx eax, byte [edi + 5]
mov byte [esi + 7], al
movzx ecx, byte [edi + 6]
mov byte [esi + 8], cl
mov edx, dword [edi + 0x13]
mov ecx, dword [edi + 0xf]
mov ebp, dword [edi + 7]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0xb]
add eax, dword [ebx + 0x3150]
mov dword [esi + 0x14], ebp
mov dword [esi + 0x10], eax
mov eax, edx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], 0
cmp dword [ebx + 0x3190], eax
mov dword [esp + 0x14], edx
jg 0x10008fd8
mov dword [ebx + 0x3190], eax
mov edx, dword [esi + 0x10]
sub edx, dword [ebx + 0x3150]
mov dword [ebx + 0x3194], edx
inc dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edi, 0x28
cmp dword [esp + 0x1c], edx
jle 0x10008f30
lea edi, [eax + ecx]
cmp edi, dword [ebx + 0x3134]
jge 0x10009020
push 0x20
call fcn.1000cb2d
xor ecx, ecx
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ecx
je 0x10009020
mov edx, dword [esp + 0x14]
mov dword [eax + 1], ecx
mov dword [eax + 5], ecx
add edx, ebp
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edx
mov dword [eax + 0x18], ecx
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret