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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5279f9
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x575054]
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 0x4c62cc
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4c62cc
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c5e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c62cc
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.004c97c0
test al, al
je 0x4c62cc
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.004c4ec0
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.004c59c0
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.0044ebc0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.0044ebc0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.0044ebc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.0044ebc0
cmp dword [ebp - 0x28], 0
ja 0x4c5f67
jb 0x4c62cc
cmp edi, ebx
jb 0x4c62cc
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.00464080
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.004c96d0
test al, al
je 0x4c62b7
cmp dword [ebp - 0x24], ebx
jne 0x4c62b7
lea ecx, [ebp - 0xa0]
call fcn.004c4e50
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.004c5c50
add esp, 4
test al, al
jne 0x4c6011
xor bl, bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.004c6860
jmp 0x4c62b9
lea ecx, [ebp - 0xc8]
call fcn.004c4e50
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc8]
call fcn.004c4ec0
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0xa0]
call fcn.004c7620
test al, al
je 0x4c60f4
lea ecx, [ebp - 0xf0]
call fcn.004c4e50
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xf0]
call fcn.004c5100
lea edx, [ebp - 0xf0]
lea ecx, [ebp - 0xa0]
call fcn.004c7620
test al, al
je 0x4c60e5
lea ecx, [ebp - 0x78]
call fcn.004c4e50
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x78]
call fcn.004c5340
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0xa0]
call fcn.004c7620
test al, al
je 0x4c60d9
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x78]
call fcn.004c6860
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xf0]
call fcn.004c6860
xor bl, bl
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc8]
call fcn.004c6860
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.004c6860
jmp 0x4c62b9
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x78]
call fcn.004c6860
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xf0]
call fcn.004c6860
lea edx, [ebp - 0xb0]
lea ecx, [ebp - 0x88]
call fcn.004c7620
test al, al
jne 0x4c60b4
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0xa4]
jne 0x4c60b4
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0xa0]
push eax
add ecx, 0x24
call fcn.004c68d0
cmp edi, ebx
jne 0x4c613a
cmp dword [ebp - 0x28], 0
jne 0x4c613a
mov bl, 1
jmp 0x4c60b6
mov eax, dword [esi]
mov dword [ebp - 0x38], 0
test eax, eax
je 0x4c60b4
cmp dword [eax], 0xffffffff
je 0x4c60b4
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 0x4c60b4
cmp dword [ebp - 0x24], 4
jne 0x4c60b4
mov esi, dword [ebp - 0x38]
sub edi, ebx
cmp esi, edi
ja 0x4c60b4
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.00464080
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.004c96d0
test al, al
je 0x4c62a4
cmp dword [ebp - 0x24], esi
jne 0x4c62a4
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 0x4c62a4
mov al, byte [eax]
test al, al
jne 0x4c62a4
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 0x4c62a4
cmp eax, esi
je 0x4c6282
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 0x4c62a4
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
mov edx, ebx
mov ecx, dword [ecx]
call fcn.004d1e40
mov esi, dword [edi]
add esp, 4
xor edx, edx
mov al, byte [esi + edx]
cmp al, byte [ebp + edx - 0x20]
jne 0x4c62a4
inc edx
cmp edx, 0x10
jb 0x4c6273
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0x44]
push eax
call fcn.004c62f0
mov bl, al
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.0044ebc0
jmp 0x4c60b6
xor bl, bl
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.0044ebc0
jmp 0x4c60b6
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0044ebc0
mov al, bl
jmp 0x4c62ce
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.0050f27d
mov esp, ebp
pop ebp
ret 4