Function at 0x4c6e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c7082
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 4
jb 0x4c702d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax], 2
jne 0x4c702d
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
add eax, 4
cmp eax, dword [ebp - 8]
jne 0x4c702d
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 1]
sub al, 1
jb 0x4c6ec6
sub al, 4
jb 0x4c6f20
jmp 0x4c702d
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
cmp eax, 0x14
jne 0x4c702d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 4]
mov esi, eax
lea edi, [edx + 0x470]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
add eax, 0x470
push eax
push 0
push 0
push 0
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4c658c]
call fcn.004c6a80
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
jmp 0x4c702d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
call fcn.00406f64
cmp eax, dword [ebp - 0x18]
jge 0x4c6f74
mov eax, dword [ebp - 4]
add eax, 0x460
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.004074a4
mov eax, dword [ebp - 4]
add eax, 0x460
call fcn.00407028
mov edx, dword [ebp - 4]
mov dword [edx + 0x464], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [edx + 0x468], eax
mov eax, dword [ebp - 0x10]
cmp word [eax + 2], 0
jbe 0x4c6fab
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x464]
mov edx, dword [ebp - 0x14]
lea edx, [eax + edx]
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 2]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00404c50
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 2
je 0x4c6fbd
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 4
jne 0x4c702d
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 2
jne 0x4c6fcc
mov byte [ebp - 0x1d], 3
jmp 0x4c6fd0
mov byte [ebp - 0x1d], 2
mov eax, dword [ebp - 4]
add eax, 0x470
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x468]
mov edx, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
call fcn.004073f8
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
push 0
push 0
mov cl, byte [ebp - 0x1d]
mov dl, 1
mov eax, dword [0x4c658c]
call fcn.004c6a80
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x468], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
push fcn.004c69f0
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
push eax
call sub.kernel32.dll_ReadFileEx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x4c706c
mov eax, dword [ebp - 4]
mov byte [eax + 8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7089
lea eax, [ebp - 0x24]
call fcn.00406aa8
ret