Function at 0x4c0ff0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526d79
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x573054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xfc], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xf8], ebx
mov eax, dword [ebx]
test eax, eax
je 0x4c14ac
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4c14ac
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c1062
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c14ac
mov eax, dword [ebp - 0x28]
xor edi, edi
add edi, esi
mov ecx, ebx
adc eax, 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
call fcn.004c49a0
test al, al
je 0x4c14ac
lea ecx, [ebp - 0x78]
call fcn.004058d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.004058d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.004058d0
mov byte [ebp - 4], 2
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.004c00a0
push 0xc
lea ecx, [ebp - 0x34]
call fcn.00403fa0
lea ecx, [ebp - 0x34]
call fcn.004058d0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x78]
call fcn.004c0ba0
lea ecx, [ebp - 0x34]
call fcn.00403360
lea ecx, [ebp - 0x34]
lea esi, [eax + 4]
call fcn.00403360
mov ebx, dword [esi]
sub ebx, dword [eax]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.0044ec50
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.0044ec50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.0044ec50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.0044ec50
cmp dword [ebp - 0x28], 0
ja 0x4c1147
jb 0x4c14ac
cmp edi, ebx
jb 0x4c14ac
push 0xc
lea ecx, [ebp - 0x50]
call fcn.00403fa0
lea ecx, [ebp - 0x50]
call fcn.004058d0
mov dword [ebp - 4], 8
lea eax, [ebp - 0xf1]
push eax
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 0xf1], 0
call fcn.004640f0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x24], 0
call fcn.00403360
mov esi, dword [ebp - 0xf8]
lea ecx, [ebp - 0x24]
push ecx
push ebx
mov eax, dword [eax]
mov ecx, esi
push eax
call fcn.004c48b0
test al, al
je 0x4c1497
cmp dword [ebp - 0x24], ebx
jne 0x4c1497
lea ecx, [ebp - 0xa0]
call fcn.004c0030
mov byte [ebp - 4], 9
lea eax, [ebp - 0xa0]
push eax
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x50]
call fcn.004c0e30
add esp, 4
test al, al
jne 0x4c11f1
xor bl, bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.004c1a40
jmp 0x4c1499
lea ecx, [ebp - 0xc8]
call fcn.004c0030
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc8]
call fcn.004c00a0
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0xa0]
call fcn.004c2800
test al, al
je 0x4c12d4
lea ecx, [ebp - 0xf0]
call fcn.004c0030
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xf0]
call fcn.004c02e0
lea edx, [ebp - 0xf0]
lea ecx, [ebp - 0xa0]
call fcn.004c2800
test al, al
je 0x4c12c5
lea ecx, [ebp - 0x78]
call fcn.004c0030
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x78]
call fcn.004c0520
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0xa0]
call fcn.004c2800
test al, al
je 0x4c12b9
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x78]
call fcn.004c1a40
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xf0]
call fcn.004c1a40
xor bl, bl
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc8]
call fcn.004c1a40
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.004c1a40
jmp 0x4c1499
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x78]
call fcn.004c1a40
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xf0]
call fcn.004c1a40
lea edx, [ebp - 0xb0]
lea ecx, [ebp - 0x88]
call fcn.004c2800
test al, al
jne 0x4c1294
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0xa4]
jne 0x4c1294
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0xa0]
push eax
add ecx, 0x24
call fcn.004c1ab0
cmp edi, ebx
jne 0x4c131a
cmp dword [ebp - 0x28], 0
jne 0x4c131a
mov bl, 1
jmp 0x4c1296
mov eax, dword [esi]
mov dword [ebp - 0x38], 0
test eax, eax
je 0x4c1294
cmp dword [eax], 0xffffffff
je 0x4c1294
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push ecx
push 4
lea ecx, [ebp - 0x38]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c1294
cmp dword [ebp - 0x24], 4
jne 0x4c1294
mov esi, dword [ebp - 0x38]
sub edi, ebx
cmp esi, edi
ja 0x4c1294
push 0xc
lea ecx, [ebp - 0x44]
call fcn.00403fa0
lea ecx, [ebp - 0x44]
call fcn.004058d0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0xf1]
push eax
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 0xf1], 0
call fcn.004640f0
lea ecx, [ebp - 0x44]
call fcn.00403360
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
push ecx
mov ecx, dword [ebp - 0xf8]
push esi
push dword [eax]
call fcn.004c48b0
test al, al
je 0x4c1484
cmp dword [ebp - 0x24], esi
jne 0x4c1484
lea ecx, [ebp - 0x88]
call fcn.00403360
lea ecx, [ebp - 0x88]
lea esi, [eax + 4]
call fcn.00403360
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x4c1484
mov al, byte [eax]
test al, al
jne 0x4c1484
lea ecx, [ebp - 0x44]
call fcn.00403360
lea ecx, [ebp - 0x44]
mov esi, dword [eax + 4]
call fcn.00403360
mov ebx, esi
mov eax, dword [eax]
sub ebx, eax
test bl, 7
jne 0x4c1484
cmp eax, esi
je 0x4c1462
lea ecx, [ebp - 0x94]
call fcn.00403360
lea ecx, [ebp - 0x94]
lea esi, [eax + 4]
call fcn.00403360
mov ecx, dword [esi]
mov edi, eax
sub ecx, dword [edi]
cmp ecx, 0x10
jne 0x4c1484
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
mov edx, ebx
mov ecx, dword [ecx]
call fcn.004cd020
mov esi, dword [edi]
add esp, 4
xor edx, edx
mov al, byte [esi + edx]
cmp al, byte [ebp + edx - 0x20]
jne 0x4c1484
inc edx
cmp edx, 0x10
jb 0x4c1453
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0x44]
push eax
call fcn.004c14d0
mov bl, al
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.0044ec50
jmp 0x4c1296
xor bl, bl
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.0044ec50
jmp 0x4c1296
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0044ec50
mov al, bl
jmp 0x4c14ae
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050f48d
mov esp, ebp
pop ebp
ret 4