Function at 0x4821f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
test ebx, ebx
je 0x482729
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x482729
cmp byte [ebx + 0x24], 2
push edi
jne 0x4826b8
mov ecx, dword [ebx + 0x20]
cmp ecx, dword [eax + 0x22c]
jb 0x4824bc
cmp dword [eax + 0x208], esi
je 0x4824bc
mov edx, dword [ebx + 0x1c]
xor edi, edi
push edi
push 0x80
push 3
mov dword [ebp - 0x1c], esi
movzx ecx, word [eax + 0x234]
lea eax, [edx + 1]
push edi
push 3
imul eax, ecx
push SysReAllocString
push dword [ebx + 0x10]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x482287
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebx + 0x20]
push esi
call fcn.0052f54b
push esi
mov esi, eax
mov dword [ebp - 4], eax
push 0
push esi
call fcn.0052f1e0
add esp, 0x10
cmp dword [ebx + 0x20], edi
jbe 0x48238b
mov edx, dword [ebp - 0xc]
lea ecx, [ecx]
test edx, edx
js 0x48237e
mov eax, dword [ebx + 0x10]
movzx ecx, word [eax + 0x234]
shr ecx, 2
imul ecx, dword [eax + 0x214]
cmp edx, ecx
jle 0x4822e1
push str.SAT_index_out_of_bounds._n
call fcn.004812b0
add esp, 4
mov byte [ebp + 0xb], 1
push 0
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [ebp + 0xb], 0
jne 0x482314
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x208]
mov edx, dword [eax + edx*4]
movzx eax, word [ecx + 0x234]
inc edx
imul edx, eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x20]
movzx eax, word [eax + 0x234]
add eax, edi
cmp eax, ecx
jbe 0x482330
mov eax, ecx
sub eax, edi
mov dword [ebp - 0x10], eax
jmp 0x482333
mov eax, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [edi + esi]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
add edi, eax
mov dword [ebp - 8], edi
cmp eax, dword [ebp - 0x10]
jb 0x482377
cmp byte [ebp + 0xb], 1
je 0x48238b
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + 0x208]
mov edx, dword [eax + edx*4]
mov dword [ebp - 0xc], edx
cmp edi, dword [ebx + 0x20]
jb 0x4822b0
jmp 0x48238b
push str.Premature_end_of_file_encountered_while_extracting_the_file._n
jmp 0x482383
push str.Invalid_SAT_termination_index._n
call fcn.004812b0
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
cmp edi, 4
jbe 0x4823bd
push 4
push esi
push 4
push ecx
call fcn.005303b3
mov ecx, dword [ebp + 0x10]
add esp, 0x10
cmp dword [ecx], edi
jbe 0x4823bd
mov dword [ecx], 0
mov edx, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ecx]
mov dword [edx], eax
cmp eax, 2
jbe 0x4826b1
mov eax, dword [ecx]
mov ecx, 0xd8ff
add eax, esi
cmp word [eax], cx
je 0x4826b1
push 4
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push 4
push eax
call fcn.005303b3
add esp, 0x10
cmp dword [ebp + 8], 1
jne 0x4826b8
add edi, 0x158
push edi
call fcn.0052f54b
push 0x14
push 0x644c54
mov esi, eax
push edi
push esi
call fcn.005303b3
mov ecx, dword [ebp - 8]
lea eax, [esi + 0x14]
push 0x8a
push 0x644c70
add ecx, 0x144
push ecx
push eax
call fcn.005303b3
mov eax, dword [ebp - 4]
add eax, 0x1e
push 0x16
push eax
mov eax, dword [ebp - 8]
add eax, 0xba
push eax
lea eax, [esi + 0x9e]
push eax
call fcn.005303b3
mov eax, dword [ebp - 8]
push 0xd8
add eax, 0xa4
push 0x644d00
push eax
lea eax, [esi + 0xb4]
push eax
call fcn.005303b3
mov ecx, dword [ebp - 8]
add esp, 0x44
mov eax, dword [ebp - 4]
add ecx, 0xffffffcc
add eax, 0x34
push ecx
push eax
push ecx
lea eax, [esi + 0x18c]
push eax
call fcn.005303b3
push dword [ebp - 4]
call fcn.0052ee15
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
or byte [ebx + 0x25], 2
mov edi, dword [ebp + 0x10]
jmp 0x4826be
cmp dword [eax + 0x210], esi
je 0x4826b8
cmp dword [eax + 0x20c], esi
je 0x4826b8
mov edi, dword [ebx + 0x1c]
push ecx
call fcn.0052f54b
push dword [ebx + 0x20]
mov dword [ebp - 4], eax
push 0
push eax
call fcn.0052f1e0
xor esi, esi
add esp, 0x10
mov edx, 0x40
mov dword [ebp + 8], edx
cmp dword [ebx + 0x20], esi
jbe 0x482581
test edi, edi
js 0x482574
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x234]
shr eax, 2
imul eax, dword [ecx + 0x220]
cmp edi, eax
jg 0x48256d
mov ecx, dword [ebx + 0x20]
mov eax, edi
shl eax, 6
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x40]
cmp eax, ecx
jbe 0x482536
mov edx, ecx
sub edx, esi
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x10]
sub ecx, esi
push edx
mov eax, dword [eax + 0x210]
add eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push ecx
add eax, esi
push eax
call fcn.005303b3
mov eax, dword [ebx + 0x10]
add esp, 0x10
mov edx, dword [ebp + 8]
add esi, edx
mov eax, dword [eax + 0x20c]
mov edi, dword [eax + edi*4]
cmp esi, dword [ebx + 0x20]
jb 0x482501
jmp 0x482581
push str.Short_SAT_index_out_of_bounds._n
jmp 0x482579
push str.Invalid_Short_SAT_termination_index._n
call fcn.004812b0
add esp, 4
mov edi, dword [ebp + 0x10]
cmp esi, 4
mov esi, dword [ebp - 4]
mov dword [edi], 0
jbe 0x4825ad
push 4
push esi
push 4
push edi
call fcn.005303b3
mov eax, dword [edi]
add esp, 0x10
cmp eax, dword [ebx + 0x20]
jbe 0x4825ad
mov dword [edi], 0
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp + 0xc]
sub eax, dword [edi]
mov dword [edx], eax
cmp eax, 2
jbe 0x4826b4
mov eax, dword [edi]
mov ecx, 0xd8ff
add eax, esi
cmp word [eax], cx
je 0x4826b4
push 4
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push 4
push eax
call fcn.005303b3
add esp, 0x10
cmp dword [ebp + 8], 1
jne 0x4826bb
mov esi, dword [ebx + 0x20]
add esi, 0x158
push esi
call fcn.0052f54b
push 0x14
push 0x644c54
mov edi, eax
push esi
push edi
call fcn.005303b3
mov ecx, dword [ebx + 0x20]
lea eax, [edi + 0x14]
push 0x8a
push 0x644c70
add ecx, 0x144
push ecx
push eax
call fcn.005303b3
mov esi, dword [ebp - 4]
push 0x16
lea eax, [esi + 0x1e]
push eax
mov eax, dword [ebx + 0x20]
add eax, 0xba
push eax
lea eax, [edi + 0x9e]
push eax
call fcn.005303b3
mov eax, dword [ebx + 0x20]
push 0xd8
add eax, 0xa4
push 0x644d00
push eax
lea eax, [edi + 0xb4]
push eax
call fcn.005303b3
mov ecx, dword [ebx + 0x20]
lea eax, [esi + 0x34]
add esp, 0x44
add ecx, 0xffffffcc
push ecx
push eax
push ecx
lea eax, [edi + 0x18c]
push eax
call fcn.005303b3
push esi
call fcn.0052ee15
mov ecx, dword [ebp + 0xc]
mov esi, edi
mov edi, dword [ebp + 0x10]
add esp, 0x14
mov dword [edi], 0
mov eax, dword [ebx + 0x20]
add eax, 0x158
mov dword [ecx], eax
mov eax, ecx
or byte [ebx + 0x25], 2
jmp 0x4826be
mov edi, dword [ebp + 0x10]
mov eax, edx
jmp 0x4826be
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov cl, byte [ebx + 0x25]
test cl, 0xf
jne 0x48271e
test esi, esi
je 0x48271e
mov edx, dword [eax]
cmp edx, 4
jbe 0x4826ed
mov eax, dword [edi]
cmp dword [eax + esi], 0xe0ffd8ff
jne 0x4826ed
pop edi
or cl, 1
mov eax, esi
pop esi
mov byte [ebx + 0x25], cl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edx, 8
jbe 0x482718
mov eax, dword [edi]
cmp dword [eax + esi], 0x474e5089
jne 0x482718
cmp dword [eax + esi + 4], 0xa1a0a0d
jne 0x482718
pop edi
or cl, 4
mov eax, esi
pop esi
mov byte [ebx + 0x25], cl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
or cl, 8
mov byte [ebx + 0x25], cl
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc