Function at 0x44d450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x519008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push edi
cmp dword [esi], 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], esi
jne 0x44d687
cmp byte [esi + 4], 0
jne 0x44d687
mov ecx, dword [esi + 0x28]
cmp ecx, 0x500
jbe 0x44d4b7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [esi + 0x24]
xor eax, eax
cmp byte [0x51e8b4], 0
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0x30]
setne byte [ebp - 0xf]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0xc], eax
movzx eax, word [esi + 0x34]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x3c]
imul ecx, eax
push 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
push ecx
push dword [esi + 0x20]
mov dword [ebp - 0x14], 0
sub ebx, ecx
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x21], 1
call fcn.0040d400
mov eax, dword [ebp + 0x14]
add esp, 0xc
test ax, ax
je 0x44d687
add eax, 0xffff
mov dword [ebp + 0x14], eax
test ebx, ebx
je 0x44d687
movzx edx, word [esi + 0x28]
movzx ecx, dx
mov dword [ebp - 0x34], edx
cmp ebx, ecx
jae 0x44d547
movzx eax, bx
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x1c]
mov eax, ebx
mov esi, dword [ebp - 0x20]
sub eax, ecx
cmp ebx, ecx
mov dword [ebp - 0x14], 0
mov cl, 0x53
sbb ebx, ebx
not ebx
and ebx, eax
lea eax, [edi + 1]
mov dword [ebp - 0x48], ebx
cmp eax, dword [esi + 4]
ja 0x44d593
mov eax, dword [esi]
mov byte [eax + edi], cl
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
jae 0x44d582
mov ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
inc edx
mov esi, dword [ebp - 0x20]
mov eax, edx
mov dword [ebp - 0x14], edx
jmp 0x44d59a
mov ecx, dword [ebp - 0x18]
xor edx, edx
xor eax, eax
cmp byte [ebp - 0xf], 0
mov ebx, dword [ebp - 0x30]
mov ebx, dword [ebx + 0xc]
je 0x44d5aa
bswap ebx
mov edx, eax
lea eax, [edx + edi]
mov dword [ebp - 0x2c], eax
add eax, 4
cmp eax, dword [esi + 4]
ja 0x44d5dd
mov eax, dword [esi]
add edx, 4
add eax, dword [ebp - 0x2c]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x18]
cmp edx, ecx
jbe 0x44d5ce
mov ecx, edx
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
add edx, 4
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
cmp byte [ebp - 0xf], 0
mov eax, edx
mov ebx, dword [ebp - 0x28]
je 0x44d5ea
bswap ebx
lea eax, [edx + edi]
mov dword [ebp - 0x2c], eax
add eax, 4
cmp eax, dword [esi + 4]
ja 0x44d61d
mov eax, dword [esi]
add edx, 4
add eax, dword [ebp - 0x2c]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x18]
cmp edx, ecx
jbe 0x44d60e
mov ecx, edx
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
add edx, 4
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
add edi, edx
lea eax, [edi + 1]
cmp eax, dword [esi + 4]
ja 0x44d63f
mov eax, dword [esi]
inc edx
mov cl, byte [ebp - 0x21]
mov byte [eax + edi], cl
mov ecx, dword [ebp - 0x18]
cmp edx, ecx
jbe 0x44d63c
mov ecx, edx
mov dword [ebp - 0x18], ecx
inc dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
movzx eax, di
push dword [esi + 0x20]
push 1
push eax
lea eax, [ecx + ebx]
push eax
call fcn.0040d881
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x44]
add eax, edi
push eax
push ebx
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.0044d7e0
inc dword [ebp - 0x28]
inc byte [ebp - 0x21]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x48]
test ax, ax
jne 0x44d523
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 0x10