Function at 0x42cd60
Capabilities:
Read file on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
cld
xor eax, eax
push esi
mov ecx, 9
push ebx
sub esp, 0x8c
xor esi, esi
mov dword [ebp - 0x68], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x64], ebx
mov word [ebx + 0x10c6], dx
mov edx, dword [ebp - 0x64]
add ebx, 0x10c8
mov dword [ebp - 0x84], ebx
mov edi, ebx
mov ebx, 0x532d35
rep stosd dword es:[edi], eax
mov dword [esp + 4], esi
add edx, 0x10ec
mov edi, 0x2800
mov dword [ebp - 0x80], edx
mov dword [esp], edx
mov dword [esp + 8], edi
call sym._memset
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x70], eax
test eax, eax
je 0x42ce14
mov dword [esp + 0xc], eax
mov ecx, 4
mov edi, 1
mov dword [esp + 8], edi
lea esi, [ebp - 0x5c]
mov dword [esp + 4], ecx
mov dword [esp], esi
call sym._fread
dec eax
je 0x42ce22
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call sym._fclose
mov edi, dword [ebp - 0x64]
movzx ecx, word [edi + 0x10c6]
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x5c]
lea eax, [edx + 0x76fe59]
cmp eax, 1
ja 0x42cdfc
mov esi, dword [ebp - 0x70]
xor eax, eax
cmp edx, 0xff8901a7
setne al
mov ecx, 2
xor edx, edx
mov dword [esp + 8], ecx
lea edi, [eax*8 + 0x14]
mov dword [esp + 4], edx
mov dword [ebp - 0x88], edi
xor edi, edi
mov dword [esp], esi
call sym._fseek
mov dword [esp], esi
call sym._ftell
mov dword [esp + 8], edi
mov ebx, eax
xor edx, edx
sub ebx, 4
mov ecx, dword [ebp - 0x88]
lea edi, [ebp - 0x38]
mov eax, ebx
div dword [ebp - 0x88]
mov edx, dword [ebp - 0x70]
mov dword [esp], edx
mov ebx, eax
lea eax, [eax - 0x1ff]
mov esi, eax
not esi
sar esi, 0x1f
and esi, eax
imul ecx, esi
sub ebx, esi
mov esi, 0x2800
add ecx, 4
mov dword [esp + 4], ecx
call sym._fseek
cld
mov eax, dword [ebp - 0x68]
mov ecx, 7
mov dword [ebp - 0x74], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x60], 0
mov edx, dword [ebp - 0x80]
lea edi, [ebp - 0x58]
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 4], edx
call sym.CBitStream::CBitStream_unsigned_char__int_
cmp dword [ebp - 0x68], ebx
mov byte [ebp - 0x75], 0
mov dword [ebp - 0x6c], 0
jl 0x42cf9b
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x74]
test eax, eax
js 0x42d130
mov esi, eax
movzx eax, dx
mov edx, dword [ebp - 0x4c]
sar esi, 6
mov ecx, edx
add ecx, 7
js 0x42d128
sar ecx, 3
mov edx, dword [ebp - 0x64]
shl ecx, 0x10
or eax, ecx
test byte [ebp - 0x75], 1
mov dword [edx + esi*4 + 0x10cc], eax
jne 0x42d138
mov edx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x64]
mov word [ebx + 0x10c6], dx
jmp 0x42cdfc
mov dword [ebp - 0x44], 0x5220f0
xor esi, esi
mov dword [ebp - 0x40], 4
lea esi, [esi]
lea edi, [edi]
movzx ecx, word [ebp + esi*2 - 0x24]
xor edx, edx
mov dword [esp], edi
xor eax, eax
inc esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call method.CBitStream.EncodeData_unsigned_long__unsigned_long_const__int_
cmp esi, 3
jle 0x42cf60
inc dword [ebp - 0x6c]
mov esi, dword [ebp - 0x74]
mov edx, dword [ebp - 0x38]
cmp dword [ebp - 0x6c], esi
movzx ebx, dx
mov dword [ebp - 0x60], ebx
jge 0x42cef7
mov ecx, dword [ebp - 0x70]
mov edx, 1
lea ebx, [ebp - 0x38]
mov dword [esp + 8], edx
mov esi, dword [ebp - 0x88]
mov dword [esp], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
call sym._fread
dec eax
jne 0x42d170
test byte [ebp - 0x6c], 0x3f
jne 0x42d110
mov esi, dword [ebp - 0x4c]
test esi, 7
lea ebx, [esi + 7]
je 0x42d009
test esi, esi
mov eax, esi
js 0x42d179
mov dword [esp], edi
and eax, 0xfffffff8
mov edx, esi
sub edx, eax
mov ecx, 8
sub ecx, edx
mov dword [esp + 8], ecx
xor eax, eax
mov dword [esp + 4], eax
call method.CBitStream.Put_unsigned_long__int_
mov eax, dword [ebp - 0x6c]
test eax, eax
js 0x42d120
mov ecx, dword [ebp - 0x38]
sar eax, 6
test ebx, ebx
mov dword [ebp - 0x7c], eax
movzx edx, cx
mov eax, ebx
js 0x42d118
sar eax, 3
mov ebx, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x64]
shl eax, 0x10
or edx, eax
mov dword [esi + ebx*4 + 0x10c8], edx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x44], 0x522230
movzx esi, cx
lea edx, [ebp - 0x60]
mov dword [esp + 8], edx
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor ebx, ebx
mov dword [esp + 4], esi
mov dword [ebp - 0x40], 5
mov dword [esp], edi
call method.CBitStream.EncodeData_unsigned_long__unsigned_long_const__int_
movzx eax, byte [ebp - 0x34]
xor ecx, ecx
movzx edx, word [ebp - 0x36]
mov dword [esp + 0xc], ecx
mov dword [ebp - 0x44], 0x5221f0
shl eax, 0x10
add edx, eax
mov dword [esp + 4], edx
mov dword [ebp - 0x40], 4
mov dword [esp + 8], ebx
mov dword [esp], edi
call method.CBitStream.EncodeData_unsigned_long__unsigned_long_const__int_
movzx esi, byte [ebp - 0x31]
xor edx, edx
mov dword [esp], edi
xor eax, eax
movzx ecx, word [ebp - 0x33]
mov dword [esp + 0xc], edx
shl esi, 0x10
mov dword [esp + 8], eax
add ecx, esi
xor esi, esi
mov dword [esp + 4], ecx
call method.CBitStream.EncodeData_unsigned_long__unsigned_long_const__int_
movzx edx, word [ebp + esi*2 - 0x30]
mov ebx, 0xa
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 4], edx
call method.CBitStream.Put_unsigned_long__int_
movzx ecx, word [ebp + esi*2 - 0x2a]
mov eax, 0xa
inc esi
mov dword [esp + 8], eax
mov dword [esp], edi
mov dword [esp + 4], ecx
call method.CBitStream.Put_unsigned_long__int_
cmp esi, 2
jle 0x42d0ca
jmp 0x42cf46
mov ecx, dword [ebp - 0x38]
jmp 0x42d046
lea eax, [esi + 0xe]
jmp 0x42d02a
add eax, 0x3f
jmp 0x42d014
lea ecx, [edx + 0xe]
jmp 0x42cf18
add eax, 0x3f
jmp 0x42cf02
cld
mov edi, dword [ebp - 0x84]
xor eax, eax
xor esi, esi
mov ecx, 9
mov word [edx + 0x10c6], si
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x80]
xor ecx, ecx
mov eax, 0x2800
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edi
call sym._memset
jmp 0x42cdfc
mov byte [ebp - 0x75], 1
jmp 0x42cef4
mov eax, ebx
jmp 0x42cfe9