Function at 0x511c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
cmp word [edi + 0x1a], 0x18
jne 0x511ce4
movdqu xmm0, xmmword [str.Image_Magick__DirectClass___RLE_]
movdqu xmmword [edi + 0xe6], xmm0
movdqu xmm0, xmmword [0x5eeb5c]
movdqu xmmword [edi + 0xf6], xmm0
mov al, byte [0x5eeb6c]
mov byte [edi + 0x106], al
jmp 0x511d27
movdqu xmm0, xmmword [str.Image_Magick__DirectClassAlpha___RLE_]
movdqu xmmword [edi + 0xe6], xmm0
movdqu xmm0, xmmword [0x5eeb80]
movdqu xmmword [edi + 0xf6], xmm0
mov eax, dword [0x5eeb90]
mov dword [edi + 0x106], eax
mov ax, word [0x5eeb94]
mov word [edi + 0x10a], ax
mov al, byte [0x5eeb96]
mov byte [edi + 0x10c], al
push edi
push ecx
call fcn.00456000
movzx ecx, ax
add esp, 8
mov dword [ebp - 0x10], ecx
test cx, cx
jne 0x511efa
movsx eax, word [edi + 0x1a]
imul eax, dword [edi + 0x10]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x20], eax
cmp dword [edi + 0x14], ebx
jle 0x511ecb
test cx, cx
jne 0x511ecb
cmp word [edi + 0x1a], 0x18
mov eax, dword [ebp - 0x1c]
push dword [eax]
lea eax, [ebp - 0xc]
push 1
jne 0x511d81
push 4
jmp 0x511d83
push 5
push eax
call fcn.00595b79
movzx eax, ax
add esp, 0x10
test ax, ax
je 0x511ef3
cmp word [edi + 0x1a], 0x18
mov dword [ebp - 0x14], 0
jne 0x511e37
movzx eax, byte [ebp - 9]
inc eax
test eax, eax
jle 0x511ebc
jmp 0x511dc0
mov ecx, dword [edi + 0xc]
movzx eax, byte [ebp - 0xc]
movsx edx, si
inc esi
mov byte [edx + ecx], al
mov ecx, dword [edi + 0xc]
movzx eax, byte [ebp - 0xb]
movsx edx, si
inc esi
mov byte [edx + ecx], al
mov ecx, dword [edi + 0xc]
movzx eax, byte [ebp - 0xa]
movsx edx, si
inc esi
mov byte [edx + ecx], al
movsx eax, si
cmp eax, dword [ebp - 0x20]
jl 0x511e21
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.004585b0
movzx ecx, ax
add esp, 0x10
mov dword [ebp - 0x10], ecx
test cx, cx
jne 0x511ebf
inc ebx
xor esi, esi
movsx eax, bx
cmp eax, dword [edi + 0x14]
jge 0x511ebf
mov eax, dword [ebp - 0x14]
movzx ecx, byte [ebp - 9]
inc eax
mov dword [ebp - 0x14], eax
inc ecx
cwde
cmp eax, ecx
jl 0x511dc0
jmp 0x511ebc
movzx eax, byte [ebp - 8]
inc eax
test eax, eax
jle 0x511ebc
mov ecx, dword [edi + 0xc]
movzx eax, byte [ebp - 0xc]
movsx edx, si
inc esi
mov byte [edx + ecx], al
mov ecx, dword [edi + 0xc]
movzx eax, byte [ebp - 0xb]
movsx edx, si
inc esi
mov byte [edx + ecx], al
mov ecx, dword [edi + 0xc]
movzx eax, byte [ebp - 0xa]
movsx edx, si
inc esi
mov byte [edx + ecx], al
mov ecx, dword [edi + 0xc]
movzx eax, byte [ebp - 9]
movsx edx, si
inc esi
mov byte [edx + ecx], al
movsx eax, si
cmp eax, dword [ebp - 0x20]
jl 0x511eab
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.004585b0
movzx ecx, ax
add esp, 0x10
mov dword [ebp - 0x10], ecx
test cx, cx
jne 0x511ebf
inc ebx
xor esi, esi
movsx eax, bx
cmp eax, dword [edi + 0x14]
jge 0x511ebf
mov eax, dword [ebp - 0x14]
movzx ecx, byte [ebp - 8]
inc eax
mov dword [ebp - 0x14], eax
inc ecx
cwde
cmp eax, ecx
jl 0x511e44
mov ecx, dword [ebp - 0x10]
movsx eax, bx
cmp eax, dword [edi + 0x14]
jl 0x511d63
mov esi, dword [ebp - 0x10]
push 0
push 0
push 0
push dword [ebp - 0x18]
call fcn.00453f80
add esp, 0x10
mov ax, si
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov esi, 4
jmp 0x511ece
mov ax, cx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005920c1
mov esp, ebp
pop ebp
ret