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

Disassembly:
push 0xffffffffffffffff
push 0x4d24e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x504530]
push esi
mov esi, ecx
push 0
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x21
jae 0x4545e4
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
push ecx
call fcn.004518e0
jmp 0x454794
push edi
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0xc]
push edx
push 8
lea eax, [esp + 0x34]
push eax
push esi
call edi
cmp dword [esp + 8], 8
je 0x454622
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
push edx
call fcn.004518e0
jmp 0x454793
cmp byte [esp + 0x28], 0x89
jne 0x4548c6
cmp byte [esp + 0x29], 0x50
jne 0x4548c6
cmp byte [esp + 0x2a], 0x4e
jne 0x4548c6
cmp byte [esp + 0x2b], 0x47
jne 0x454610
cmp byte [esp + 0x2c], 0xd
jne 0x454610
cmp byte [esp + 0x2d], 0xa
jne 0x454610
cmp byte [esp + 0x2e], 0x1a
jne 0x4548b4
cmp byte [esp + 0x2f], 0xa
jne 0x4548b4
push ebp
push 0
lea eax, [esp + 0x10]
push eax
mov ebp, 4
push ebp
lea ecx, [esp + 0x2c]
push ecx
push esi
call edi
mov ecx, dword [esp + 0x20]
mov eax, ecx
and eax, 0xff00
mov edx, ecx
shl edx, 0x10
add eax, edx
xor edx, edx
mov dh, byte [esp + 0x22]
shl eax, 8
shr ecx, 0x18
add eax, edx
add eax, ecx
cmp dword [esp + 0xc], ebp
mov dword [esp + 0x20], eax
jne 0x454790
cmp eax, 0xa
jb 0x454790
push 0
lea eax, [esp + 0x10]
push eax
push ebp
lea ecx, [esp + 0x34]
push ecx
push esi
call edi
cmp dword [esp + 0xc], ebp
jne 0x454790
cmp dword [esp + 0x28], 0x52444849
jne 0x454790
push 0
lea edx, [esp + 0x10]
push edx
push ebp
lea eax, [esp + 0x24]
push eax
push esi
call edi
mov ecx, dword [esp + 0x18]
mov eax, ecx
shl eax, 0x10
mov edx, ecx
and edx, 0xff00
add eax, edx
xor edx, edx
mov dh, byte [esp + 0x1a]
shl eax, 8
shr ecx, 0x18
add eax, edx
add eax, ecx
cmp dword [esp + 0xc], ebp
mov dword [esp + 0x18], eax
jne 0x454790
test eax, eax
jbe 0x454790
cmp eax, 0xffff
ja 0x454790
push 0
lea eax, [esp + 0x10]
push eax
push ebp
lea ecx, [esp + 0x28]
push ecx
push esi
call edi
mov ecx, dword [esp + 0x1c]
mov eax, ecx
shl eax, 0x10
mov edx, ecx
and edx, 0xff00
add eax, edx
xor edx, edx
mov dh, byte [esp + 0x1e]
shl eax, 8
shr ecx, 0x18
add eax, edx
add eax, ecx
cmp dword [esp + 0xc], ebp
mov dword [esp + 0x1c], eax
jne 0x454790
test eax, eax
jbe 0x454790
cmp eax, 0xffff
ja 0x454790
push 0
lea eax, [esp + 0x10]
push eax
mov ebp, 1
push ebp
lea ecx, [esp + 0x1f]
push ecx
push esi
call edi
cmp dword [esp + 0xc], ebp
je 0x4547af
xor eax, eax
pop ebp
pop edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2c]
pop esi
call fcn.004ae38e
add esp, 0x38
ret 4
push 0
lea edx, [esp + 0x10]
push edx
push ebp
lea eax, [esp + 0x33]
push eax
push esi
call edi
cmp dword [esp + 0xc], ebp
jne 0x454790
push 0x4c
call fcn.004be8d8
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x40], 0
je 0x4547f0
push 0
push eax
mov ecx, str.image
call fcn.00490790
mov esi, eax
jmp 0x4547f2
xor esi, esi
lea ecx, [esp + 0x14]
call fcn.00404090
mov dword [esp + 0x40], ebp
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push 0x4db72c
push edx
call fcn.004058b0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push esi
mov ecx, str.width
call fcn.00405560
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push 0x4db72c
push edx
call fcn.004058b0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push esi
mov ecx, str.height
call fcn.00405560
movzx eax, byte [esp + 0x13]
dec eax
cmp eax, 0xf
ja case.0x45485f.3
movzx ecx, byte [eax + 0x4548f0]
jmp dword [ecx*4 + 0x4548d8]
push 0x4e4c80
jmp 0x454887
push 0x4df5e0
jmp 0x454887
push 0x4e4c78
jmp 0x454887
push 0x4e4c84
jmp 0x454887
push 0x4e4c70
mov ecx, str.colors
push esi
call fcn.00405560
mov ecx, dword [str.http:__www.shareaza.com_schemas_image.xsd]
mov edx, dword [esp + 0x48]
push esi
call fcn.004523e0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00403b90
mov eax, esi
jmp 0x454792
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
push eax
call fcn.004518e0
jmp 0x454793
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
push ecx
call fcn.004518e0
jmp 0x454793