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

Disassembly:
push 0xffffffffffffffff
push 0x4f4c7f
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e4ce0]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [esp + 0x14]
call fcn.00468330
mov esi, dword [esp + 0xd8]
xor edi, edi
cmp esi, edi
mov dword [esp + 0xc4], edi
jne 0x4555a0
lea esi, [esp + 0x14]
cmp byte [ebx + 4], 0xdb
je 0x4555ad
mov byte [0], 0x78
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x4555c6
cmp byte [ebx + 5], 0
jne 0x4555c3
push eax
call fcn.004cac16
add esp, 4
mov dword [ebx + 8], edi
lea ecx, [esp + 0x60]
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov byte [ebx + 5], 0
call fcn.004537d0
mov eax, dword [esp + 0xcc]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xc8], 1
call fcn.00453a00
lea ecx, [esp + 0x60]
push esi
push ecx
call fcn.00456880
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x455912
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x455669
lea ecx, [esp + 0x28]
call fcn.00451c20
mov byte [esp + 0xc4], 2
lea ecx, [esp + 0x28]
call fcn.00453240
mov ebx, dword [esi]
lea ecx, [esp + 0x28]
call fcn.004c06c0
mov edx, dword [ebx + 0x10]
push eax
mov ecx, esi
call edx
push edi
push ebp
call fcn.004661e0
add esp, 8
lea ecx, [esp + 0x28]
mov byte [esp + 0xc4], 1
call fcn.00451e70
jmp 0x455912
cmp eax, 4
jae 0x4556b2
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push str.File_is_empty_or_too_small
mov ecx, esi
call edx
push edi
push ebp
call fcn.004661e0
add esp, 8
lea ecx, [esp + 0x60]
mov byte [esp + 0xc4], 0
call fcn.00453880
lea ecx, [esp + 0x14]
mov dword [esp + 0xc4], 0xffffffff
call fcn.00468350
mov al, 1
jmp 0x455939
push edi
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x30]
push ecx
push ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
jne 0x4556e8
lea ecx, [esp + 0x28]
call fcn.00451c20
mov byte [esp + 0xc4], 3
jmp 0x45562d
mov eax, dword [esp + 0x24]
cmp eax, 4
jle 0x4558e4
cmp eax, dword [esp + 0xd4]
jg 0x4558e4
add eax, 0xfffffffc
push eax
mov dword [esp + 0x20], eax
call fcn.004cabe6
mov ecx, dword [esp + 0x20]
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
push ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45579e
lea ecx, [esp + 0x28]
call fcn.00451c20
lea ecx, [esp + 0x28]
mov byte [esp + 0xc4], 4
call fcn.00453240
mov ebx, dword [esi]
lea ecx, [esp + 0x28]
call fcn.004c06c0
mov edx, dword [ebx + 0x10]
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0xcc]
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push ecx
push str.filename
mov ecx, esi
call edx
push edi
call fcn.004cac16
push 0
push ebp
call fcn.004661e0
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0xc4], 1
call fcn.00451e70
jmp 0x455912
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x4557e2
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push str.Failed_to_read_the_entire_header
mov ecx, esi
call edx
mov ecx, dword [esp + 0xcc]
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push ecx
push str.filename
mov ecx, esi
call edx
push edi
call fcn.004cac16
push 0
push ebp
call fcn.004661e0
add esp, 0xc
jmp 0x455912
mov ecx, dword [esp + 0xd0]
push eax
push edi
mov dword [ecx + 0xc], 0
call fcn.00454fa0
push edi
call fcn.004cac16
mov edi, dword [esp + 0x24]
sub edi, dword [esp + 0x20]
push edi
call fcn.004cabe6
push edi
push 0
push eax
mov dword [ebx + 8], eax
call fcn.004db150
mov edx, dword [ebx + 8]
add esp, 0x14
push 0
lea eax, [edi - 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
push edx
push ebp
mov dword [esp + 0x34], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov bl, 1
jne 0x455896
lea ecx, [esp + 0x44]
call fcn.00451c20
lea ecx, [esp + 0x44]
mov byte [esp + 0xc4], 5
call fcn.00453240
mov edi, dword [esi]
lea ecx, [esp + 0x44]
call fcn.004c06c0
push eax
mov eax, dword [edi + 0x10]
mov ecx, esi
call eax
mov eax, dword [esp + 0xcc]
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
push eax
push str.filename
mov ecx, esi
call edx
lea ecx, [esp + 0x44]
xor bl, bl
mov byte [esp + 0xc4], 1
call fcn.00451e70
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x18], eax
je 0x4558b0
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push str.Failed_to_read_the_entire_file
mov ecx, esi
call eax
xor bl, bl
push 0
push ebp
call fcn.004661e0
add esp, 8
lea ecx, [esp + 0x60]
mov byte [esp + 0xc4], 0
call fcn.00453880
lea ecx, [esp + 0x14]
mov dword [esp + 0xc4], 0xffffffff
call fcn.00468350
mov al, bl
jmp 0x455939
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push str.Invalid_header_size
mov ecx, esi
call eax
mov eax, dword [esp + 0xcc]
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
push eax
push str.filename
mov ecx, esi
call edx
push edi
push ebp
call fcn.004661e0
add esp, 8
lea ecx, [esp + 0x60]
mov byte [esp + 0xc4], 0
call fcn.00453880
lea ecx, [esp + 0x14]
mov dword [esp + 0xc4], 0xffffffff
call fcn.00468350
xor al, al
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret 0x10