Function at 0x442a60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 0x114]
test eax, eax
je 0x442a9f
mov eax, 1
cmp word [ebp + 0x118], ax
jl 0x442a9f
mov ecx, dword [ebp + 0x11a]
test ecx, ecx
je 0x442a9f
cmp dword [ebp + 0x11e], eax
jge 0x442c8d
mov ecx, ebp
call fcn.00442a10
push 0x69d6e0
lea eax, [esp + 0x14]
push 0x73aaac
push eax
call fcn.00643ea6
mov eax, dword [eax]
push 0x40
push 0x69a9d0
push eax
call dword [fcn.0065f1e8]
mov edi, eax
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
call fcn.00643d26
test edi, edi
jne 0x442af5
mov ecx, ebp
call fcn.00442a10
pop edi
pop esi
pop ebp
or ax, 0xffff
pop ebx
add esp, 0xc
ret 0xc
push edi
call fcn.00476080
mov esi, dword [fcn.0065f1bc]
push edi
lea ebx, [ebp + 0x118]
push 1
push 2
push ebx
mov dword [esp + 0x24], eax
call esi
mov ax, word [ebx]
add esp, 0x14
cmp ax, 1
jl 0x442e05
mov ecx, dword [esp + 0x10]
movsx eax, ax
shl eax, 1
add ecx, 0xfffffffe
cmp ecx, eax
jb 0x442e05
push eax
call fcn.00643b70
movsx ecx, word [ebx]
shl ecx, 1
mov edx, ecx
mov edi, eax
xor eax, eax
mov dword [ebp + 0x11a], edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
movsx eax, word [ebx]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x11a]
push edi
push 1
shl eax, 1
push eax
push ecx
call esi
movsx ecx, word [ebx]
add esp, 0x14
mov dword [ebp + 0x11e], 0
test ecx, ecx
jle 0x442b9b
mov eax, dword [ebp + 0x11a]
mov edx, ecx
movsx ebx, word [eax]
add dword [ebp + 0x11e], ebx
add eax, 2
dec edx
jne 0x442b8c
mov edx, dword [ebp + 0x11e]
cmp edx, 1
jl 0x442e05
lea eax, [edx + edx*2]
shl eax, 4
sub eax, edx
lea edx, [ecx + ecx + 2]
mov ecx, dword [esp + 0x10]
sub ecx, edx
cmp ecx, eax
jb 0x442e05
push eax
call fcn.00643b70
mov edi, eax
mov eax, dword [ebp + 0x11e]
mov dword [ebp + 0x114], edi
lea ecx, [eax + eax*2]
shl ecx, 4
sub ecx, eax
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x114]
push eax
mov eax, dword [ebp + 0x11e]
push 1
lea ecx, [eax + eax*2]
shl ecx, 4
sub ecx, eax
push ecx
push edx
call esi
mov eax, dword [ebp + 0x11e]
add esp, 0x14
xor esi, esi
test eax, eax
jle 0x442c7f
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp + 0x114]
add eax, ebx
mov cl, byte [eax + edi + 2]
test cl, cl
je 0x442c4d
push ecx
call fcn.00440d10
add esp, 4
test eax, eax
jne 0x442c4d
mov eax, dword [ebp + 0x114]
lea edx, [ebx + edi]
mov byte [edx + eax + 2], 0x20
mov ecx, dword [ebp + 0x114]
inc edi
cmp edi, 0xb
mov byte [ebx + ecx + 0xc], 0
jl 0x442c22
mov edx, dword [ebp + 0x114]
lea eax, [ebx + edx + 2]
push eax
call fcn.00471da0
mov eax, dword [ebp + 0x11e]
add esp, 4
inc esi
add ebx, 0x2f
cmp esi, eax
jl 0x442c20
mov ecx, dword [esp + 0x14]
push ecx
call dword [fcn.0065f1c0]
add esp, 4
mov eax, dword [ebp + 0x11e]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
jle 0x442df6
mov ebx, dword [ebp + 0x11a]
movsx edx, word [esp + 0x10]
mov ecx, dword [esp + 0x14]
movsx eax, word [ebx + edx*2]
cmp ecx, eax
jl 0x442ccd
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x114]
lea ecx, [edi + edi*2]
shl ecx, 4
sub ecx, edi
lea edx, [ecx + eax]
mov ecx, dword [esp + 0x20]
movsx si, byte [ecx + 0xec]
mov ax, word [edx]
cmp si, ax
je 0x442d05
test ax, ax
je 0x442dd2
cmp ax, 1
je 0x442dd2
lea esi, [edx + 2]
mov dl, byte [ecx]
mov al, dl
cmp dl, byte [esi]
jne 0x442d2c
test al, al
je 0x442d28
mov dl, byte [ecx + 1]
mov al, dl
cmp dl, byte [esi + 1]
jne 0x442d2c
add ecx, 2
add esi, 2
test al, al
jne 0x442d08
xor eax, eax
jmp 0x442d31
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x442dd2
mov esi, dword [esp + 0x10]
movsx edx, si
test edx, edx
jle 0x442d51
mov ecx, ebx
movsx edi, word [ecx]
add eax, edi
add ecx, 2
dec edx
jne 0x442d46
movsx ecx, si
movsx esi, word [esp + 0x28]
movsx edx, word [ebx + ecx*2]
movsx ebx, word [esp + 0x18]
lea ecx, [ebx + edx]
cmp ecx, esi
jge 0x442df6
mov edi, dword [ebp + 0x114]
lea esi, [eax + eax*2]
shl esi, 4
sub esi, eax
lea ecx, [edx + edx*2]
add esi, edi
lea edi, [ebx + ebx*2]
shl ecx, 4
shl edi, 4
sub ecx, edx
mov edx, dword [esp + 0x24]
sub edi, ebx
mov dword [esp + 0x14], 0
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx ecx, word [esp + 0x10]
mov ebx, dword [ebp + 0x11a]
mov cx, word [ebx + ecx*2]
add edx, ecx
movsx ecx, cx
mov dword [esp + 0x18], edx
lea edi, [ecx + eax - 1]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov dx, word [esp + 0x18]
cmp dx, word [esp + 0x28]
jge 0x442df6
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x11e]
inc edi
inc ecx
cmp edi, eax
mov dword [esp + 0x14], ecx
jl 0x442cab
mov ax, word [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
mov ecx, ebp
call fcn.00442a10
push edi
call dword [fcn.0065f1c0]
add esp, 4
or ax, 0xffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc