Function at 0x44f440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
lea ecx, [ebp - 0x8c]
push edi
lea edi, [ebp - 0x18]
push esi
xor esi, esi
push ebx
sub esp, 0xdc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], edi
mov dword [esp], ecx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x74], sym.___gxx_personality_sj0
mov dword [ebp - 0x70], 0x520764
mov dword [ebp - 0x68], 0x44f940
mov dword [ebp - 0x64], esp
call sym.__Unwind_SjLj_Register
cld
mov ebx, dword [ebp - 0x98]
xor edx, edx
mov dword [ebp - 0x9c], esi
xor eax, eax
mov ecx, 9
xor esi, esi
mov edi, ebx
add edi, 0x10c8
mov word [ebx + 0x10c6], dx
mov ebx, dword [ebp - 0x98]
rep stosd dword es:[edi], eax
mov dword [esp + 4], esi
mov edi, 0x2800
add ebx, 0x10ec
mov dword [ebp - 0xa8], ebx
mov dword [esp + 8], edi
mov dword [esp], ebx
call sym._memset
mov edx, dword [ebp + 0xc]
mov ecx, 0x533960
mov eax, 0xffffffff
mov dword [esp + 4], ecx
mov dword [ebp - 0x88], eax
mov dword [esp], edx
call sym._fopen
mov dword [ebp - 0xac], eax
test eax, eax
je 0x44f54f
mov dword [esp + 0xc], eax
mov edx, 4
mov esi, 1
mov dword [esp + 8], esi
lea ebx, [ebp - 0x90]
mov dword [esp + 4], edx
mov dword [esp], ebx
call sym._fread
dec eax
je 0x44f570
mov eax, dword [ebp - 0xac]
mov edi, 0xffffffff
mov dword [ebp - 0x88], edi
mov dword [esp], eax
call sym._fclose
mov ecx, dword [ebp - 0x98]
movzx ebx, word [ecx + 0x10c6]
mov dword [ebp - 0x9c], ebx
lea edx, [ebp - 0x8c]
mov dword [esp], edx
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x9c]
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x90]
lea ecx, [edx + 0x76fe59]
cmp ecx, 1
ja 0x44f523
mov edi, dword [ebp - 0xac]
xor ecx, ecx
cmp edx, 0xff8901a7
setne cl
mov ebx, 2
xor edx, edx
mov dword [esp + 4], edx
lea eax, [ecx*8 + 0x14]
mov esi, 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [ebp - 0xc0], eax
call sym._fseek
mov dword [ebp - 0x88], esi
mov ecx, dword [ebp - 0xac]
mov dword [esp], ecx
call sym._ftell
sub eax, 4
xor edx, edx
mov edi, dword [ebp - 0xc0]
div dword [ebp - 0xc0]
mov esi, dword [ebp - 0xac]
mov dword [esp], esi
mov ebx, eax
sub ebx, 0x200
mov dword [ebp - 0xb0], eax
mov eax, ebx
not eax
cdq
and edx, ebx
xor eax, eax
mov dword [ebp - 0xc4], edx
mov ecx, edx
imul ecx, edi
mov dword [esp + 8], eax
lea edi, [ebp - 0x38]
add ecx, 4
mov dword [esp + 4], ecx
call sym._fseek
cld
mov edx, dword [ebp - 0xc4]
mov ecx, 7
mov ebx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x9c]
sub ebx, edx
mov dword [ebp - 0xc8], ebx
lea edx, [ebp - 0x58]
mov ebx, 0xffffffff
rep stosd dword es:[edi], eax
mov dword [esp], edx
mov esi, dword [ebp - 0xa8]
xor edi, edi
mov dword [ebp - 0x94], edi
mov ecx, 0x2800
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [ebp - 0x88], ebx
call sym.CBitStream::CBitStream_unsigned_char__int_
mov edi, dword [ebp - 0xc8]
xor eax, eax
cmp dword [ebp - 0x9c], edi
mov dword [ebp - 0xa0], eax
jge 0x44f8f0
mov eax, dword [ebp - 0xac]
mov ebx, 1
lea edi, [ebp - 0x38]
mov dword [esp + 8], ebx
mov edx, dword [ebp - 0xc0]
mov esi, 1
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x88], esi
call sym._fread
dec eax
jne 0x44f9e6
test byte [ebp - 0xa0], 0x3f
jne 0x44f75c
mov eax, dword [ebp - 0x4c]
test al, 7
mov dword [ebp - 0xb4], eax
je 0x44f719
test eax, eax
js 0x44f9de
mov edx, dword [ebp - 0xb4]
and eax, 0xfffffff8
mov ebx, 8
xor edi, edi
lea esi, [ebp - 0x58]
mov ecx, 1
mov dword [esp + 4], edi
sub edx, eax
sub ebx, edx
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [ebp - 0x88], ecx
call method.CBitStream.Put_unsigned_long__int_
mov eax, dword [ebp - 0xa0]
test eax, eax
js 0x44f9d6
movzx edx, word [ebp - 0x38]
mov ecx, eax
mov eax, dword [ebp - 0xb4]
sar ecx, 6
add eax, 7
js 0x44f9c8
sar eax, 3
mov esi, dword [ebp - 0x98]
shl eax, 0x10
or edx, eax
xor eax, eax
mov dword [esi + ecx*4 + 0x10c8], edx
mov dword [ebp - 0x94], eax
movzx ebx, word [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x44], 0x523970
lea edx, [ebp - 0x94]
mov ecx, 1
mov dword [ebp - 0x40], 5
lea edi, [ebp - 0x58]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [ebp - 0x88], ecx
call method.CBitStream.EncodeData_unsigned_long__unsigned_long_const__int_
movzx edx, byte [ebp - 0x34]
xor ebx, ebx
mov dword [ebp - 0x44], 0x523930
xor edi, edi
movzx ecx, word [ebp - 0x36]
lea esi, [ebp - 0x58]
mov dword [ebp - 0x40], 4
shl edx, 0x10
add ecx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], esi
call method.CBitStream.EncodeData_unsigned_long__unsigned_long_const__int_
movzx ebx, byte [ebp - 0x31]
xor edi, edi
xor ecx, ecx
movzx esi, word [ebp - 0x33]
lea eax, [ebp - 0x58]
mov dword [esp + 0xc], edi
shl ebx, 0x10
mov dword [esp + 8], ecx
add esi, ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call method.CBitStream.EncodeData_unsigned_long__unsigned_long_const__int_
xor eax, eax
mov dword [ebp - 0xa4], eax
lea edx, [ebp - 0x58]
mov dword [ebp - 0xb8], edx
mov ebx, dword [ebp - 0xa4]
mov edx, 0xa
mov esi, 1
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0xb8]
movzx edi, word [ebp + ebx*2 - 0x30]
mov dword [esp], ecx
mov dword [ebp - 0x88], esi
mov dword [esp + 4], edi
call method.CBitStream.Put_unsigned_long__int_
mov ecx, dword [ebp - 0xa4]
mov edi, 0xa
mov eax, dword [ebp - 0xb8]
mov dword [esp + 8], edi
movzx esi, word [ebp + ecx*2 - 0x2a]
mov dword [esp], eax
mov dword [esp + 4], esi
call method.CBitStream.Put_unsigned_long__int_
inc dword [ebp - 0xa4]
cmp dword [ebp - 0xa4], 2
jle 0x44f807
mov dword [ebp - 0x44], 0x523550
xor edx, edx
mov dword [ebp - 0x40], 4
mov dword [ebp - 0xcc], edx
lea ebx, [ebp - 0x58]
mov dword [ebp - 0xbc], ebx
mov edi, dword [ebp - 0xcc]
xor edx, edx
xor ebx, ebx
mov dword [esp + 0xc], edx
mov esi, dword [ebp - 0xbc]
mov eax, 1
mov dword [esp + 8], ebx
movzx ecx, word [ebp + edi*2 - 0x24]
mov dword [esp], esi
mov dword [ebp - 0x88], eax
mov dword [esp + 4], ecx
call method.CBitStream.EncodeData_unsigned_long__unsigned_long_const__int_
inc dword [ebp - 0xcc]
cmp dword [ebp - 0xcc], 3
jle 0x44f88c
inc dword [ebp - 0xa0]
mov edi, dword [ebp - 0xc8]
movzx ebx, word [ebp - 0x38]
cmp dword [ebp - 0xa0], edi
mov dword [ebp - 0x94], ebx
jmp 0x44f685
mov eax, dword [ebp - 0xc8]
test eax, eax
js 0x44f9b8
movzx ecx, word [ebp - 0x38]
mov edi, eax
mov eax, dword [ebp - 0x4c]
sar edi, 6
mov edx, eax
add edx, 7
js 0x44f9c0
sar edx, 3
mov eax, dword [ebp - 0x98]
shl edx, 0x10
or ecx, edx
mov edx, dword [ebp - 0xc8]
mov dword [eax + edi*4 + 0x10cc], ecx
mov word [eax + 0x10c6], dx
jmp 0x44f523
add eax, 0x3f
jmp 0x44f8fe
lea edx, [eax + 0xe]
jmp 0x44f915
mov eax, dword [ebp - 0xb4]
add eax, 0xe
jmp 0x44f73f
add eax, 0x3f
jmp 0x44f727
add eax, 7
jmp 0x44f6e7
mov dword [esp], 4
call sym.___cxa_allocate_exception
mov dword [eax], str.Read_File_Error
xor ecx, ecx
mov esi, 0x55cc84
mov dword [esp], eax
mov eax, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [ebp - 0x88], eax
call sym.___cxa_throw
lea esi, [esi]