Function at 0x4c66e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x51b08c]
xor eax, esp
mov dword [esp + 0xf0], eax
mov eax, dword [ebp + 8]
mov ecx, 0x20
push ebx
push esi
push edi
mov dword [esp + 0xa8], eax
lea esi, [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea edi, [esp + 0x28]
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x4c6d44
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4c6d44
mov edx, dword [esp + 0xa0]
cmp edx, dword [eax + 0x22c]
jb 0x4c68e4
cmp dword [eax + 0x208], 0
je 0x4c68e4
mov edi, dword [esp + 0x9c]
xor esi, esi
mov dword [esp + 0xac], 0
movzx ecx, word [eax + 0x234]
push edx
lea ebx, [edi + 1]
mov dword [esp + 0x20], ecx
imul ebx, ecx
mov byte [esp + 0x1b], 0
call fcn.004a8f05
add esp, 4
mov dword [esp + 0x18], eax
push dword [esp + 0xa0]
push esi
push eax
call fcn.004a35f0
add esp, 0xc
cmp dword [esp + 0xa0], esi
jbe 0x4c69e6
nop dword [eax]
nop dword [eax + eax]
cmp byte [0x51f324], 1
je 0x4c68bf
test edi, edi
js 0x4c68b5
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
movzx ecx, word [eax + 0x234]
shr ecx, 2
imul ecx, dword [eax + 0x214]
cmp edi, ecx
jle 0x4c67f3
push str.SAT_index_out_of_bounds.
call fcn.004076b0
add esp, 4
mov byte [esp + 0x17], 1
push 0
push 0
push ebx
push dword [esp + 0xb4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esp + 0x17], 0
jne 0x4c6827
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx + 0x208]
mov ebx, dword [eax + edi*4]
movzx eax, word [ecx + 0x234]
inc ebx
imul ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xa0]
mov eax, dword [eax + 0x10]
movzx eax, word [eax + 0x234]
add eax, esi
cmp eax, ecx
jbe 0x4c684c
mov eax, ecx
sub eax, esi
mov dword [esp + 0x1c], eax
jmp 0x4c6850
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0xb0]
push ecx
push eax
mov eax, dword [esp + 0x24]
add eax, esi
push eax
push dword [esp + 0xb8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xac]
add esi, eax
cmp eax, dword [esp + 0x1c]
jb 0x4c68ab
cmp byte [esp + 0x17], 1
je 0x4c69e6
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x208]
mov edi, dword [eax + edi*4]
cmp esi, dword [esp + 0xa0]
jb 0x4c67b0
jmp 0x4c69e6
push str.Premature_end_of_file_encountered_while_updating_the_directory.
jmp 0x4c69de
push str.Invalid_SAT_termination_index.
jmp 0x4c69de
push dword [esp + 0x18]
call fcn.004a51e5
add esp, 4
mov al, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 0x88
cmp dword [eax + 0x210], 0
je 0x4c6cf2
cmp dword [eax + 0x20c], 0
je 0x4c6cf2
mov ebx, dword [esp + 0x9c]
push edx
call fcn.004a8f05
add esp, 4
mov dword [esp + 0x18], eax
push dword [esp + 0xa0]
push 0
push eax
call fcn.004a35f0
xor esi, esi
add esp, 0xc
lea edi, [esi + 0x40]
cmp dword [esp + 0xa0], esi
jbe 0x4c69e6
nop word [eax + eax]
cmp byte [0x51f324], 1
je 0x4c68bf
test ebx, ebx
js 0x4c69d9
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
movzx eax, word [ecx + 0x234]
shr eax, 2
imul eax, dword [ecx + 0x220]
cmp ebx, eax
jg 0x4c69d2
mov edx, ebx
lea eax, [esi + 0x40]
shl edx, 6
cmp eax, dword [esp + 0xa0]
jbe 0x4c698b
mov edi, dword [esp + 0xa0]
sub edi, esi
test edi, edi
je 0x4c69b1
mov eax, dword [ecx + 0x210]
mov ecx, dword [esp + 0x18]
add eax, edx
mov edx, dword [esp + 0xa0]
push edi
push eax
sub edx, esi
lea ecx, [esi + ecx]
call fcn.004c74a0
add esp, 8
mov eax, dword [esp + 0x10]
add esi, edi
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x20c]
mov ebx, dword [eax + ebx*4]
cmp esi, dword [esp + 0xa0]
jb 0x4c6940
jmp 0x4c69e6
push str.Short_SAT_index_out_of_bounds.
jmp 0x4c69de
push str.Invalid_Short_SAT_termination_index.
call fcn.004076b0
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4c6cf2
mov edi, dword [esp + 0xa0]
cmp edi, 4
jbe 0x4c6cf2
push 2
push esi
mov edx, 4
mov dword [esp + 0xb0], 0
lea ecx, [esp + 0xb0]
call fcn.004c74a0
mov ebx, dword [esp + 0x18]
lea eax, [esi + 2]
push 2
push eax
mov edx, 2
mov ecx, dword [ebx + 0x10]
add ecx, 0x236
call fcn.004c74a0
mov ecx, dword [esp + 0xb8]
xor eax, eax
add esp, 0x10
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
cmp ecx, edi
jae 0x4c6ce9
nop
cmp byte [0x51f324], 1
je 0x4c6d5d
test ebx, ebx
jne 0x4c6a7b
test eax, eax
je 0x4c6ce9
mov ebx, eax
lea edi, [ecx + esi]
test edi, edi
je 0x4c6a86
mov edi, dword [edi]
jmp 0x4c6a9c
xor edi, edi
call fcn.004ac91d
mov dword [eax], 0x16
call fcn.004a4f51
mov ecx, dword [esp + 0x10]
add ecx, 4
mov dword [esp + 0x10], ecx
add esi, ecx
je 0x4c6aab
mov esi, dword [esi]
jmp 0x4c6ac1
xor esi, esi
call fcn.004ac91d
mov dword [eax], 0x16
call fcn.004a4f51
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x10], ecx
add eax, ecx
je 0x4c6adf
movq xmm0, qword [eax]
movq qword [esp + 0xb0], xmm0
jmp 0x4c6aff
xorps xmm0, xmm0
movq qword [esp + 0xb0], xmm0
call fcn.004ac91d
mov dword [eax], 0x16
call fcn.004a4f51
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
mov edx, 0x1000
add ecx, 8
mov dword [esp + 0x10], ecx
cmp word [eax + 0x234], dx
mov edx, dword [esp + 0x18]
jne 0x4c6b48
lea eax, [ecx + edx]
mov dword [esp + 0xa8], 0
push 4
push eax
mov edx, 4
lea ecx, [esp + 0xb0]
call fcn.004c74a0
add dword [esp + 0x18], 4
add esp, 8
sub edi, 4
lea eax, [edi - 0x14]
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x1c], eax
cmp eax, edi
ja 0x4c6d2b
xor ecx, ecx
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.004a8f05
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, edx
mov dword [esp + 0xa8], eax
shr ecx, 1
push ecx
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x1c]
push ecx
lea ecx, [edx + 2]
shr ecx, 1
push ecx
push eax
call fcn.004aca37
mov eax, dword [ebx + 0x10]
add esp, 0x10
cmp word [eax + 0x236], 1
jne 0x4c6bad
lea esi, [esi + esi*4]
add esi, esi
push esi
push 0x4fd29c
lea eax, [esp + 0xc0]
push 0x20
push eax
call fcn.00407670
add esp, 0x10
lea ecx, [esp + 0xb8]
call fcn.004c75d0
mov ecx, dword [ebx + 0x18]
lea eax, [esp + 0xb8]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c6c06
test dx, dx
je 0x4c6c02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c6c06
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c6be0
xor eax, eax
jmp 0x4c6c0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c6c6a
mov eax, dword [esp + 0x24]
mov esi, eax
mov dword [esp + 0x20], ebx
test eax, eax
je 0x4c6c6a
nop dword [eax]
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0xb8]
nop word [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4c6c56
test dx, dx
je 0x4c6c52
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4c6c56
add ecx, 4
add eax, 4
test dx, dx
jne 0x4c6c30
xor eax, eax
jmp 0x4c6c5b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c6c68
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4c6c20
jmp 0x4c6c6a
mov ebx, esi
mov eax, dword [esp + 0xb0]
push dword [ebx + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0xb8]
mov dword [ebx + 0xc], eax
call fcn.004a51e5
mov ecx, dword [ebx + 0x10]
add esp, 4
mov edx, dword [esp + 0xa8]
mov dword [ebx + 0x18], edx
movzx eax, word [ecx + 0x236]
dec eax
cmp eax, 6
ja case.0x4c6caa.2
movzx eax, byte [eax + 0x4c6d8c]
jmp dword [eax*4 + 0x4c6d80]
mov eax, dword [esp + 0x1c]
mov byte [ecx + 0x238], 1
jmp 0x4c6cc9
mov eax, dword [esp + 0x1c]
mov byte [ecx + 0x238], 2
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x14]
add ecx, 4
mov esi, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
cmp ecx, edi
jb 0x4c6a60
push esi
call fcn.004a51e5
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 0x88
mov eax, dword [esp + 0x1c]
cmp eax, 2
jbe 0x4c6cc2
cmp word [edx + 2], 0x3a
jne 0x4c6cc2
cmp word [edx + 4], 0x5c
jne 0x4c6cc2
mov byte [ecx + 0x238], 1
jmp 0x4c6cc9
push dword [esp + 0x18]
call fcn.004a51e5
add esp, 4
push str.Invalid_directory_entry.
call fcn.004076b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 0x88
push esi
call fcn.004a51e5
mov ecx, dword [esp + 0x100]
add esp, 4
mov al, 2
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 0x88