Function at 0x4c6da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x18], edi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4c6ddf
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x24], 2
jne 0x4c72a3
mov ecx, dword [esi + 0x20]
cmp ecx, dword [eax + 0x22c]
jb 0x4c7083
cmp dword [eax + 0x208], ebx
je 0x4c7083
mov edx, dword [esi + 0x1c]
xor edi, edi
push edi
push 0x80
push 3
mov dword [ebp - 0xc], ebx
movzx ecx, word [eax + 0x234]
lea eax, [edx + 1]
push edi
push 3
imul eax, ecx
push 0x80000000
push dword [esi + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], eax
mov byte [ebp - 0x11], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x4c6dca
push dword [esi + 0x20]
call fcn.004a8f05
push dword [esi + 0x20]
mov ebx, eax
push edi
push ebx
call fcn.004a35f0
add esp, 0x10
cmp dword [esi + 0x20], edi
jbe 0x4c6f48
mov edx, dword [ebp - 0x10]
nop dword [eax]
test edx, edx
js 0x4c6f3b
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 0x234]
shr ecx, 2
imul ecx, dword [eax + 0x214]
cmp edx, ecx
jle 0x4c6ea1
push str.SAT_index_out_of_bounds.
call fcn.004076b0
add esp, 4
mov byte [ebp - 0x11], 1
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [ebp - 0x11], 0
jne 0x4c6ed4
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x208]
mov edx, dword [eax + edx*4]
movzx eax, word [ecx + 0x234]
inc edx
imul edx, eax
mov dword [ebp - 8], edx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x20]
movzx eax, word [eax + 0x234]
add eax, edi
cmp eax, ecx
jbe 0x4c6ef0
mov eax, ecx
sub eax, edi
mov dword [ebp - 0x1c], eax
jmp 0x4c6ef3
mov eax, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
add edi, eax
cmp eax, dword [ebp - 0x1c]
jb 0x4c6f34
cmp byte [ebp - 0x11], 1
je 0x4c6f48
mov eax, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + 0x208]
mov edx, dword [eax + edx*4]
mov dword [ebp - 0x10], edx
cmp edi, dword [esi + 0x20]
jb 0x4c6e70
jmp 0x4c6f48
push str.Premature_end_of_file_encountered_while_extracting_the_file.
jmp 0x4c6f40
push str.Invalid_SAT_termination_index.
call fcn.004076b0
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], 0
cmp edi, 4
jbe 0x4c6f7c
push 4
push ebx
mov edx, 4
call fcn.004c74a0
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx], edi
jbe 0x4c6f7c
mov dword [ecx], 0
mov edx, dword [ebp - 0x24]
mov eax, edi
sub eax, dword [ecx]
mov dword [edx], eax
cmp eax, 2
jbe 0x4c7298
mov eax, dword [ecx]
mov ecx, 0xd8ff
add eax, ebx
cmp word [eax], cx
je 0x4c7298
push 4
push eax
mov edx, 4
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
call fcn.004c74a0
add esp, 8
cmp dword [ebp - 8], 1
jne 0x4c729d
lea eax, [edi + 0x158]
push eax
mov dword [ebp - 8], eax
call fcn.004a8f05
push 0x14
push 0x4fcfcc
lea edx, [edi + 0x158]
mov dword [ebp - 0x10], eax
mov ecx, eax
call fcn.004c74a0
mov ecx, dword [ebp - 0x10]
lea edx, [edi + 0x144]
push 0x8a
push 0x4fcfe8
add ecx, 0x14
call fcn.004c74a0
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + 0x1e]
push 0x16
push eax
lea edx, [edi + 0xba]
lea ecx, [ecx + 0x9e]
call fcn.004c74a0
mov ecx, dword [ebp - 0x10]
lea edx, [edi + 0xa4]
push 0xd8
push 0x4fd078
add ecx, 0xb4
call fcn.004c74a0
lea edx, [edi - 0x34]
add esp, 0x24
test edx, edx
je 0x4c705d
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + 0x34]
push edx
push eax
add ecx, 0x18c
call fcn.004c74a0
add esp, 8
push ebx
call fcn.004a51e5
mov edi, dword [ebp - 0x18]
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], eax
or byte [esi + 0x25], 2
jmp 0x4c72a3
cmp dword [eax + 0x210], ebx
je 0x4c72a3
cmp dword [eax + 0x20c], ebx
je 0x4c72a3
mov eax, dword [esi + 0x1c]
push ecx
mov dword [ebp - 0x20], eax
call fcn.004a8f05
push dword [esi + 0x20]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.004a35f0
xor edi, edi
add esp, 0x10
lea ebx, [edi + 0x40]
cmp dword [esi + 0x20], edi
jbe 0x4c7153
mov ecx, dword [ebp - 0x20]
nop dword [eax]
test ecx, ecx
js 0x4c7146
mov edx, dword [esi + 0x10]
movzx eax, word [edx + 0x234]
shr eax, 2
imul eax, dword [edx + 0x220]
cmp ecx, eax
jg 0x4c713f
mov edx, dword [esi + 0x20]
mov eax, ecx
shl eax, 6
mov dword [ebp - 0xc], eax
lea eax, [edi + 0x40]
cmp eax, edx
jbe 0x4c7102
mov ebx, edx
sub ebx, edi
test ebx, ebx
je 0x4c7127
mov eax, dword [esi + 0x10]
sub edx, edi
mov ecx, dword [ebp - 0x1c]
push ebx
mov eax, dword [eax + 0x210]
add eax, dword [ebp - 0xc]
lea ecx, [edi + ecx]
push eax
call fcn.004c74a0
mov ecx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [esi + 0x10]
add edi, ebx
mov eax, dword [eax + 0x20c]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x20], ecx
cmp edi, dword [esi + 0x20]
jb 0x4c70d0
jmp 0x4c7153
push str.Short_SAT_index_out_of_bounds.
jmp 0x4c714b
push str.Invalid_Short_SAT_termination_index.
call fcn.004076b0
add esp, 4
mov eax, dword [ebp - 0x18]
cmp edi, 4
mov ebx, dword [ebp - 0x1c]
mov edi, eax
mov dword [eax], 0
jbe 0x4c7185
push 4
push ebx
mov edx, 4
mov ecx, edi
call fcn.004c74a0
mov eax, dword [edi]
add esp, 8
cmp eax, dword [esi + 0x20]
jbe 0x4c7185
mov dword [edi], 0
mov eax, dword [esi + 0x20]
mov edx, dword [ebp - 0x24]
sub eax, dword [edi]
mov dword [edx], eax
cmp eax, 2
jbe 0x4c72a3
mov eax, dword [edi]
mov ecx, 0xd8ff
add eax, ebx
cmp word [eax], cx
je 0x4c72a3
push 4
push eax
mov edx, 4
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
call fcn.004c74a0
add esp, 8
cmp dword [ebp - 0xc], 1
jne 0x4c72a0
mov eax, dword [esi + 0x20]
add eax, 0x158
push eax
call fcn.004a8f05
mov edx, dword [esi + 0x20]
mov ecx, eax
push 0x14
push 0x4fcfcc
add edx, 0x158
mov dword [ebp - 0x10], eax
call fcn.004c74a0
mov edx, dword [esi + 0x20]
mov ecx, dword [ebp - 0x10]
add edx, 0x144
push 0x8a
push 0x4fcfe8
add ecx, 0x14
call fcn.004c74a0
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + 0x1e]
mov edx, dword [esi + 0x20]
push 0x16
push eax
add edx, 0xba
lea ecx, [ecx + 0x9e]
call fcn.004c74a0
mov edx, dword [esi + 0x20]
mov ecx, dword [ebp - 0x10]
add edx, 0xa4
push 0xd8
push 0x4fd078
add ecx, 0xb4
call fcn.004c74a0
mov edx, dword [esi + 0x20]
add esp, 0x24
add edx, 0xffffffcc
je 0x4c7273
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + 0x34]
push edx
push eax
add ecx, 0x18c
call fcn.004c74a0
add esp, 8
push ebx
call fcn.004a51e5
mov edx, dword [ebp - 0x24]
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov eax, dword [esi + 0x20]
add eax, 0x158
mov dword [edx], eax
or byte [esi + 0x25], 2
jmp 0x4c72a3
mov edi, dword [ebp - 0x18]
jmp 0x4c72a3
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov cl, byte [esi + 0x25]
test cl, 0xf
jne 0x4c72e9
test ebx, ebx
je 0x4c72e9
cmp dword [edx], 4
jbe 0x4c72c4
mov eax, dword [edi]
cmp dword [eax + ebx], 0xe0ffd8ff
jne 0x4c72c4
or cl, 1
jmp 0x4c72e6
cmp dword [edx], 8
jbe 0x4c72e3
mov eax, dword [edi]
cmp dword [eax + ebx], 0x474e5089
jne 0x4c72e3
cmp dword [eax + ebx + 4], 0xa1a0a0d
jne 0x4c72e3
or cl, 4
jmp 0x4c72e6
or cl, 8
mov byte [esi + 0x25], cl
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00499a52
mov esp, ebp
pop ebp
ret 8