Function at 0x614fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.0061b4ee
add esp, 4
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x1c]
push edx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x1b]
push ecx
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 0x1a]
push eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x19]
push edx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x18]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0061b524
add esp, 0x20
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 1
test edx, edx
je 0x61503d
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x28]
sub esp, 8
fstp qword [esp]
mov ecx, dword [ebp + 8]
push ecx
call fcn.0061badb
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
and eax, 0x800
test eax, eax
je 0x615061
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0061bb23
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 2
test edx, edx
je 0x61508a
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x19]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x44
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0061bb5f
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 4
test edx, edx
je 0x61511f
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x9c]
sub esp, 8
fstp qword [esp]
mov ecx, dword [ebp + 0xc]
fld dword [ecx + 0x98]
sub esp, 8
fstp qword [esp]
mov edx, dword [ebp + 0xc]
fld dword [edx + 0x94]
sub esp, 8
fstp qword [esp]
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x90]
sub esp, 8
fstp qword [esp]
mov ecx, dword [ebp + 0xc]
fld dword [ecx + 0x8c]
sub esp, 8
fstp qword [esp]
mov edx, dword [ebp + 0xc]
fld dword [edx + 0x88]
sub esp, 8
fstp qword [esp]
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x84]
sub esp, 8
fstp qword [esp]
mov ecx, dword [ebp + 0xc]
fld dword [ecx + 0x80]
sub esp, 8
fstp qword [esp]
mov edx, dword [ebp + 8]
push edx
call fcn.0061bce8
add esp, 0x44
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
and ecx, 8
test ecx, ecx
je 0x61514b
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [edx + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0061b99b
add esp, 0xc
jmp 0x615169
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x19]
cmp edx, 3
jne 0x615169
push str.Valid_palette_required_for_paletted_images_n
mov eax, dword [ebp + 8]
push eax
call fcn.00616f80
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 0x10
test edx, edx
je 0x615207
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
and ecx, 0x80000
test ecx, ecx
je 0x6151da
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 0x19]
cmp eax, 3
jne 0x6151da
mov dword [ebp - 8], 0
jmp 0x6151a9
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [edx + 0x16]
cmp dword [ebp - 8], eax
jge 0x6151da
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x4c]
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [edx + eax]
mov edx, 0xff
sub edx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x4c]
mov eax, dword [ebp - 8]
mov byte [ecx + eax], dl
jmp 0x6151a0
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x19]
push edx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0x16]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x50
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0061bfe2
add esp, 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
and ecx, 0x20
test ecx, ecx
je 0x615230
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 0x19]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x5a
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0061c0e4
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
and ecx, 0x40
test ecx, ecx
je 0x61525a
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [edx + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x7c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0061c1d7
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 0x100
test edx, edx
je 0x61528d
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x6c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x68]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x64]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0061ca89
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 0x400
test edx, edx
je 0x6152f3
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xb0]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xac]
push eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0xb5]
push edx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0xb4]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xa8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xa4]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xa0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0061cae7
add esp, 0x20
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
and ecx, 0x80
test ecx, ecx
je 0x615326
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 0x78]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x74]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x70]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0061cca0
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
and ecx, 0x200
test ecx, ecx
je 0x61535b
mov edx, dword [ebp + 0xc]
add edx, 0x3c
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0061ccfe
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
or edx, 0x10000
mov eax, dword [ebp + 8]
mov dword [eax + 0x5c], edx
mov dword [ebp - 4], 0
jmp 0x61536d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jge 0x61545b
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
cmp dword [eax + ecx], 0
jl 0x6153f2
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
mov ecx, dword [eax + ecx]
push ecx
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + edx + 0xc]
push edx
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx + eax + 8]
push eax
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
mov ecx, dword [eax + ecx + 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0061c589
add esp, 0x14
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x38]
mov dword [edx + eax], 0xfffffffe
jmp 0x615456
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x38]
cmp dword [edx + eax], 0xffffffff
jne 0x615456
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx + eax + 0xc]
push eax
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
mov ecx, dword [eax + ecx + 8]
push ecx
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + edx + 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0061c4c6
add esp, 0x10
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
mov dword [eax + ecx], 0xfffffffd
jmp 0x615364
mov esp, ebp
pop ebp
ret