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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x120]
xor ecx, ecx
mov dword [esi], ecx
mov eax, dword [edi + 0xb4]
lea ebx, [esi + 0x10]
mov dword [ebx + 0x6c], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x7c], eax
cmp eax, ecx
je 0x4df822
mov dword [edi + 0x24], ecx
cmp dword [esi + 0x14f2c], ecx
je 0x4df82d
mov dword [edi + 0x24], ecx
mov edx, dword [edi + 0x110]
mov dword [esi + 0x14f44], edx
mov eax, dword [edi + 0x114]
mov dword [esi + 0x14f48], eax
mov edx, dword [edi + 0x118]
mov dword [esi + 0x14f4c], edx
cmp dword [edi + 0x128], ecx
je 0x4df871
call fcn.004e28a0
add eax, eax
xor eax, dword [esi + 0x14efc]
and eax, 2
xor dword [esi + 0x14efc], eax
jmp 0x4df878
and dword [esi + 0x14efc], 0xfffffffd
cmp dword [edi + 0x124], 0
je 0x4df899
call fcn.004e2890
mov ecx, dword [esi + 0x14efc]
xor ecx, eax
and ecx, 1
xor dword [esi + 0x14efc], ecx
jmp 0x4df8a0
and dword [esi + 0x14efc], 0xfffffffe
cmp dword [edi + 0x12c], 0
je 0x4df8e0
call fcn.004e28b0
lea edx, [eax*4]
xor edx, dword [esi + 0x14efc]
and edx, 4
xor dword [esi + 0x14efc], edx
call fcn.004e28c0
add eax, eax
add eax, eax
add eax, eax
xor eax, dword [esi + 0x14efc]
and eax, 8
xor dword [esi + 0x14efc], eax
jmp 0x4df8e7
and dword [esi + 0x14efc], 0xfffffff3
cmp dword [esi + 0x14f24], 0
jne 0x4df909
push 0xad4
push 1
call fcn.004525b9
add esp, 8
mov dword [esi + 0x14f24], eax
test eax, eax
je 0x4df944
cmp dword [esi + 0x14eac], 0
jne 0x4df927
push 0x20e88
push 1
call fcn.004525b9
add esp, 8
mov dword [esi + 0x14eac], eax
xor edx, edx
cmp dword [esi + 0x14eac], edx
jne 0x4df950
push esi
call fcn.004e1850
add esp, 4
mov dword [edi + 0x120], 0
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x78]
mov dword [ebx + 0x90], ecx
mov eax, dword [edi + 0x68]
mov dword [ebx + 0x94], eax
mov ecx, dword [edi + 0x6c]
mov dword [ebx + 0x98], ecx
mov eax, dword [edi + 0x70]
mov dword [ebx + 0x9c], eax
mov ecx, dword [edi + 0x74]
mov dword [ebx + 0xa0], ecx
mov eax, dword [edi + 8]
mov dword [ebx + 0x34], eax
mov ecx, 3
cmp eax, 1
jne 0x4df990
mov dword [edi + 0x30], ecx
xor eax, eax
cmp dword [edi + 0x30], ecx
setne al
inc eax
mov dword [ebx + 0x38], eax
cmp dword [edi + 0x30], ecx
jne 0x4df9a4
mov dword [edi + 0x34], edx
mov ecx, dword [edi + 0x34]
mov dword [ebx + 0x40], ecx
mov eax, dword [edi + 0x9c]
cmp eax, edx
jne 0x4df9cc
mov ecx, dword [edi + 0xa8]
cmp ecx, 0x80
je 0x4df9ca
cmp dword [edi + 0x60], edx
jne 0x4df9ca
mov dword [edi + 0x60], ecx
cmp eax, edx
jl 0x4df9d8
cmp eax, 1
jle 0x4df9db
cmp eax, 4
je 0x4df9db
mov dword [edi + 0x38], edx
mov eax, dword [edi + 0x38]
fldz
mov dword [ebx + 0x88], eax
mov ecx, dword [edi + 0x9c]
cmp ecx, edx
jne 0x4dfa4c
cmp dword [edi + 0x60], edx
jne 0x4dfa4c
fld dword [edi + 0x64]
fabs
fld st(1)
fabs
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4dfa25
fstp st(0)
fld dword [edi + 0x64]
fsubrp st(2)
fxch st(1)
fabs
fxch st(1)
fmul qword [0x55b058]
fcompp
fnstsw ax
test ah, 1
je 0x4dfa41
jmp 0x4dfa4e
fstp st(1)
fld dword [edi + 0x64]
fsubrp st(2)
fxch st(1)
fabs
fxch st(1)
fmul qword [0x55b058]
fcompp
fnstsw ax
test ah, 1
jne 0x4dfa4e
fld dword [str.Cannot_quantize_more_than__d_color_components]
fstp dword [edi + 0x64]
jmp 0x4dfa4e
fstp st(0)
fldz
cmp ecx, edx
jne 0x4dfada
fcom dword [edi + 0x64]
fnstsw ax
test ah, 5
jp 0x4dfada
cmp dword [edi + 0x10], 0
fstp st(0)
jne 0x4dfa84
fild dword [edi + 0xc]
fmul qword [0x55b118]
call fcn.00452480
push eax
call fcn.004e1d80
add esp, 4
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx + 0x38]
imul ecx, eax
shl ecx, 4
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
fld dword [edi + 0x64]
fmul qword [0x559288]
fdivp st(1)
call fcn.00452480
mov dword [edi + 0x60], eax
mov eax, dword [edi + 0x10]
push ebx
push eax
call fcn.004e1e50
add esp, 8
cmp dword [ebx + 0x88], 0
mov dword [ebx + 4], eax
jne 0x4dfad8
mov edx, dword [edi + 0x10]
mov eax, dword [ebx]
mov ecx, dword [edi + 0x60]
push edx
push eax
push ecx
call fcn.004e1c50
add esp, 0xc
mov dword [edi + 0x60], eax
fldz
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4dfb55
cmp ecx, 0x3e80
mov eax, dword [edi + 0xa8]
jge 0x4dfb0b
cmp eax, 8
jg 0x4dfaf9
mov eax, 8
cmp eax, 0x40
mov dword [edi + 0xa8], eax
jl 0x4dfb4d
mov eax, 0x40
jmp 0x4dfb4d
cmp ecx, 0x7d00
jge 0x4dfb31
cmp eax, 8
jg 0x4dfb1d
mov eax, 8
cmp eax, 0xa0
mov dword [edi + 0xa8], eax
jl 0x4dfb4d
mov eax, 0xa0
jmp 0x4dfb4d
cmp eax, 0x20
jg 0x4dfb3b
mov eax, 0x20
cmp eax, 0x140
mov dword [edi + 0xa8], eax
jl 0x4dfb4d
mov eax, 0x140
mov dword [edi + 0xa8], eax
test ecx, ecx
fld dword [0x55b114]
jne 0x4dfe49
mov eax, dword [edi + 0x9c]
cmp eax, 1
je 0x4dfb75
cmp eax, 4
jne 0x4dfe49
fild dword [edi + 0xa4]
mov dword [ebp - 0x118], 0xbb80
mov dword [ebp - 0x104], 0x5c94
mov dword [ebp - 0x100], 0xac44
fadd dword [edi + 0xa0]
mov dword [ebp - 0xec], 0x5514
mov dword [ebp - 0xe8], 0x7d00
mov dword [ebp - 0xd4], 0x3db8
fstp dword [ebp - 4]
mov dword [ebp - 0xd0], 0x5dc0
fxch st(1)
mov dword [ebp - 0xbc], 0x2e4a
fst dword [ebp - 0x114]
mov dword [ebp - 0xb8], 0x5622
fst dword [ebp - 0x10c]
mov dword [ebp - 0xa4], 0x2a8c
fxch st(1)
mov dword [ebp - 0xa0], 0x3e80
fst dword [ebp - 0x110]
mov dword [ebp - 0x8c], 0x1edf
fst dword [ebp - 0x108]
mov dword [ebp - 0x88], 0x2ee0
fxch st(1)
mov dword [ebp - 0x74], 0x1728
fst dword [ebp - 0xfc]
mov dword [ebp - 0x70], 0x2b11
fst dword [ebp - 0xf4]
mov dword [ebp - 0x5c], 0x1546
fxch st(1)
mov dword [ebp - 0x58], 0x1f40
fst dword [ebp - 0xf8]
fst dword [ebp - 0xf0]
fst dword [ebp - 0xe4]
fld dword [str.SSL_UNDEFINED_VOID_FUNCTION]
fst dword [ebp - 0xe0]
fld dword [0x55b110]
fst dword [ebp - 0xdc]
fxch st(2)
fst dword [ebp - 0xd8]
fxch st(1)
fstp dword [ebp - 0xcc]
fld dword [0x55b10c]
fst dword [ebp - 0xc8]
fxch st(2)
fst dword [ebp - 0xc4]
fld dword [str.SSL_UNDEFINED_FUNCTION]
fst dword [ebp - 0xc0]
fxch st(3)
fstp dword [ebp - 0xb4]
fld dword [0x55b108]
fst dword [ebp - 0xb0]
fxch st(1)
fstp dword [ebp - 0xac]
fxch st(1)
fst dword [ebp - 0xa8]
fxch st(1)
fstp dword [ebp - 0x9c]
fld dword [0x55b104]
fst dword [ebp - 0x98]
fld dword [0x55b100]
fst dword [ebp - 0x94]
fxch st(2)
fst dword [ebp - 0x90]
fxch st(1)
fstp dword [ebp - 0x84]
fld dword [0x55b0fc]
fst dword [ebp - 0x80]
fld dword [str.Cannot_quantize_to_fewer_than__d_colors]
fstp dword [ebp - 0x7c]
fxch st(3)
fstp dword [ebp - 0x78]
fxch st(2)
fstp dword [ebp - 0x6c]
fld dword [0x55b0f4]
fst dword [ebp - 0x68]
fld dword [0x55b0f0]
fstp dword [ebp - 0x64]
fxch st(2)
fst dword [ebp - 0x60]
fxch st(2)
fstp dword [ebp - 0x54]
fld dword [0x530bfc]
mov edx, dword [edi + 0xc]
fstp dword [ebp - 0x50]
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x44], 0xf70
fstp dword [ebp - 0x4c]
mov dword [ebp - 0x40], 2
mov dword [ebp + 8], ecx
fst dword [ebp - 0x48]
fld dword [ebp - 4]
cmp edx, dword [ecx - 4]
jne 0x4dfd96
fld dword [ecx]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4dfd96
mov eax, dword [ebp + 8]
fld st(0)
fdiv dword [eax]
fmul dword [eax + 8]
fld st(0)
call fcn.00452480
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
fisub dword [ebp - 4]
mov dword [edi + 0xa4], eax
fstp dword [edi + 0xa0]
mov edx, dword [edi + 0xc]
cmp edx, dword [ecx - 4]
jl 0x4dfdb5
fld dword [ecx]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x4dfdb5
fld dword [ecx + 4]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4dfdcb
mov eax, dword [ebp - 0x40]
inc eax
add ecx, 0x18
cmp eax, 9
mov dword [ebp - 0x40], eax
mov dword [ebp + 8], ecx
jl 0x4dfd60
fstp st(0)
jmp 0x4dfe49
mov eax, dword [ebp - 0x40]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
fld dword [ebp + eax - 0x108]
lea ecx, [ebp + eax - 0x10c]
fsub dword [ecx]
lea edx, [ebp + eax - 0x114]
mov dword [ebp - 4], eax
fstp dword [ebp + 8]
fld dword [edx]
fsubp st(1)
fmul dword [ebp + 8]
fld dword [ebp + eax - 0x110]
fsub dword [edx]
fstp dword [ebp + 8]
fdiv dword [ebp + 8]
fadd dword [ecx]
fld st(0)
call fcn.00452480
cmp dword [edi + 0xb8], 0
mov edx, dword [ebp - 4]
mov dword [ebp + 8], eax
fisub dword [ebp + 8]
mov dword [edi + 0xa4], eax
mov eax, dword [ebp + edx - 0x118]
mov dword [edi + 0x10], eax
fstp dword [edi + 0xa0]
jne 0x4dfec3
mov dword [edi + 0xb8], 0xffffffff
cmp dword [edi + 0xb8], 0
jne 0x4dfec3
mov eax, dword [edi + 0x9c]
fld qword [0x55b0e8]
fstp qword [ebp - 8]
cmp eax, 4
ja 0x4e0022
jmp dword [eax*4 + 0x4e035c]
cmp dword [edi + 0x30], 3
jne 0x4dfeb8
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x4dfeb2
cmp eax, 3
jne 0x4dfeb8
fmul qword [0x559278]
call fcn.00452480
mov dword [edi + 0xb8], eax
cmp dword [edi + 0x10], 0
jne 0x4dfef3
mov eax, dword [edi + 0xb8]
mov ecx, dword [edi + 0xc]
add eax, eax
cmp eax, ecx
jle 0x4dfee5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0xb8], eax
mov edx, dword [edi + 0xb8]
call fcn.004de4c0
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x9c]
cmp eax, 1
je 0x4e009d
cmp eax, 4
je 0x4e009d
mov eax, dword [edi + 0xb8]
cmp eax, 0x5014
jle 0x4e00af
mov eax, 0x5014
jmp 0x4e00af
fld qword [0x55b0e0]
jmp 0x4dfe9d
mov eax, dword [edi + 0xa4]
mov dword [ebp - 0x3c], 0x4c2c
mov dword [ebp - 0x38], 0x4a38
mov dword [ebp - 0x34], 0x4844
mov dword [ebp - 0x30], 0x4650
mov dword [ebp - 0x2c], 0x445c
mov dword [ebp - 0x28], 0x4074
mov dword [ebp - 0x24], 0x3c8c
mov dword [ebp - 0x20], 0x38a4
mov dword [ebp - 0x1c], 0x30d4
mov dword [ebp - 0x18], 0x251c
mov dword [ebp - 0x14], 0xf6e
test eax, eax
jl 0x4dff99
cmp eax, 9
jg 0x4dff99
fild dword [ebp + eax*4 - 0x3c]
fild dword [ebp + eax*4 - 0x38]
fsub st(1)
fmul dword [edi + 0xa0]
faddp st(1)
jmp 0x4dfe9d
mov eax, dword [edi + 0xb8]
cmp eax, 0x5dc0
jle 0x4e00af
mov eax, 0x5dc0
mov ecx, dword [edi + 0x10]
mov dword [edi + 0xb8], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [edi + 0xb8]
sar eax, 1
cmp eax, edx
jl 0x4e00cb
mov eax, edx
mov dword [edi + 0xb8], eax
mov eax, dword [edi + 0x9c]
xor edx, edx
cmp eax, edx
jne 0x4e00fc
mov edx, dword [ebx + 0x38]
imul edx, ecx
shl edx, 4
mov dword [ebp + 8], edx
xor edx, edx
fild dword [ebp + 8]
fild dword [edi + 0x60]
fmul qword [0x559288]
fdivp st(1)
fstp dword [edi + 0x64]
cmp eax, 3
jne 0x4e0121
mov eax, dword [ebx + 0x38]
imul eax, ecx
shl eax, 4
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fild dword [edi + 0xa8]
fmul qword [0x559288]
fdivp st(1)
fstp dword [edi + 0x64]
cmp dword [edi + 0x24], edx
jne 0x4e012f
mov dword [edi + 0x3c], edx
mov dword [edi + 0x40], edx
mov dword [ebx + 0x74], edx
mov ecx, dword [edi + 0x3c]
mov dword [ebx + 0x70], ecx
mov eax, dword [edi + 0x40]
mov dword [ebx + 0x78], eax
cmp eax, edx
je 0x4e0146
mov dword [ebx + 0x74], 1
cmp ecx, edx
je 0x4e018c
mov edx, dword [edi + 0x10]
fstp st(0)
mov eax, dword [esi + 0x14eac]
fstp st(0)
push edx
push eax
call fcn.004e2d40
add esp, 8
test eax, eax
jne 0x4e0184
push esi
call fcn.004e1850
add esp, 4
mov dword [edi + 0x120], 0
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret
fldz
fld dword [0x55b114]
cmp dword [ebx + 0x78], 0
je 0x4e01f8
cmp dword [edi + 0x28], 0
jne 0x4e01f8
mov eax, dword [esi + 0x14f30]
fstp st(0)
fstp st(0)
test eax, eax
je 0x4e01af
push eax
call fcn.004f1970
add esp, 4
call fcn.004f1950
mov dword [esi + 0x14f30], eax
mov ecx, dword [edi + 0x118]
push ecx
push eax
call fcn.004f19e0
mov edx, dword [edi + 0x114]
mov eax, dword [esi + 0x14f30]
push edx
push eax
call fcn.004f1a00
mov ecx, dword [edi + 0x110]
mov edx, dword [esi + 0x14f30]
push ecx
push edx
call fcn.004f1a20
fldz
fld dword [0x55b114]
add esp, 0x18
mov eax, dword [edi + 0x80]
mov dword [ebx + 0x80], eax
mov ecx, dword [edi + 0xb8]
mov dword [ebx + 0x24], ecx
mov edx, dword [edi + 0xbc]
mov dword [ebx + 0x28], edx
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x10]
xor ecx, ecx
cmp eax, 0x5dc0
setg cl
mov dword [ebx + 0x30], eax
inc ecx
mov dword [ebx + 0x3c], ecx
mov dword [esi + 0x14b18], 0x240
mov eax, dword [edi + 0x9c]
dec eax
cmp eax, 3
ja 0x4e02cb
jmp dword [eax*4 + 0x4e0370]
mov ecx, dword [ebx + 0x30]
fstp st(0)
imul ecx, dword [ebx + 0x38]
shl ecx, 4
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
fild dword [edi + 0x60]
fmul qword [0x559288]
fdivp st(1)
cmp dword [edi + 0x30], 4
fstp dword [edi + 0x64]
jne 0x4e02f8
mov dword [edi + 0x30], 1
mov ecx, dword [ebx + 0x28]
fld qword [0x547450]
mov edx, dword [edi + 0x30]
mov dword [ebx + 0xa4], edx
mov dword [ebp + 8], ecx
test ecx, ecx
jle 0x4e035e
fild dword [ebp + 8]
fmul st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xf0]
mov eax, dword [edi + 0xc4]
test eax, eax
jl 0x4e033e
add eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul st(2)
fstp dword [ebx + 0xf4]
jmp 0x4e0344
fst dword [ebx + 0xf4]
fidiv dword [ebx + 0x30]
fstp dword [ebx + 0xf0]
fld dword [ebx + 0xf4]
fidiv dword [ebx + 0x30]
fstp dword [ebx + 0xf4]
jmp 0x4e036e
fxch st(1)
fst dword [ebx + 0xf0]
fst dword [ebx + 0xf4]
fxch st(1)
mov ecx, dword [ebx + 0x24]
fxch st(1)
fst dword [ebx + 0xe8]
mov dword [ebp + 8], ecx
fst dword [ebx + 0xec]
test ecx, ecx
jle 0x4e03fe
mov eax, dword [ebx + 0x30]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jge 0x4e03fe
fild dword [ebp + 8]
fmul st(2)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xec]
mov eax, dword [edi + 0xc0]
test eax, eax
jl 0x4e03d6
sub ecx, eax
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
fmulp st(3)
fxch st(2)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xe8]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4e03e2
fstp dword [ebx + 0xe8]
jmp 0x4e03e4
fstp st(2)
fstp st(0)
fst dword [ebx + 0xe8]
jmp 0x4e03e4
fstp st(0)
fld dword [ebx + 0xe8]
fidiv dword [ebx + 0x30]
fstp dword [ebx + 0xe8]
fidiv dword [ebx + 0x30]
fstp dword [ebx + 0xec]
jmp 0x4e0402
fstp st(1)
fstp st(0)
call fcn.004ddeb0
mov eax, dword [ebx + 0x30]
push ebx
push eax
call fcn.004e1e50
add esp, 8
mov dword [ebx + 4], eax
test eax, eax
jl 0x4e0466
cmp dword [edi + 0x9c], 0
jne 0x4e0483
cmp dword [ebx + 0x88], 0
je 0x4e0439
mov dword [esi + 0x14b08], 0
jmp 0x4e048d
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx]
mov eax, dword [edi + 0x60]
push ecx
push edx
push eax
call fcn.004e1c50
mov dword [edi + 0x60], eax
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx]
push ecx
push edx
push eax
call fcn.004e1e10
add esp, 0x18
mov dword [esi + 0x14b08], eax
test eax, eax
jg 0x4e048d
push esi
call fcn.004e1850
add esp, 4
mov dword [edi + 0x120], 0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14b08], 1
push esi
call fcn.004e5b10
mov ecx, dword [ebx]
xor eax, eax
add esp, 4
cmp dword [ebx + 0x30], 0x3e80
mov dword [ebp + 8], 0x17
setl al
lea eax, [ecx + eax*2]
lea eax, [eax + eax*2]
add eax, dword [ebx + 4]
lea ecx, [esi + 0x5370]
imul eax, eax, 0xcc
mov dword [ebp - 4], eax
lea eax, [eax + 0x55e600]
lea esp, [esp]
mov edx, dword [eax]
mov dword [ecx], edx
add eax, 4
add ecx, 4
sub dword [ebp + 8], 1
jne 0x4e04d0
mov eax, dword [esi + 0x53c4]
mov dword [esi + 0x5404], eax
mov ecx, dword [esi + 0x53c4]
mov edx, dword [esi + 0x53c8]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [esi + 0x5408], eax
mov ecx, dword [esi + 0x53c4]
mov edx, dword [esi + 0x53c8]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ecx + eax*2]
mov dword [esi + 0x540c], ecx
mov ecx, dword [esi + 0x53c4]
mov edx, dword [esi + 0x53c8]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + eax*2]
add edx, eax
mov dword [esi + 0x5410], edx
mov ecx, dword [esi + 0x53c4]
mov edx, dword [esi + 0x53c8]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ecx + eax*4]
mov dword [esi + 0x5414], ecx
mov ecx, dword [esi + 0x53c4]
mov edx, dword [esi + 0x53c8]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + eax*4]
add edx, eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x5418], edx
mov dword [esi + 0x541c], 0x240
lea ecx, [esi + 0x53cc]
lea eax, [eax + 0x55e65c]
mov dword [ebp + 8], 0xe
mov edx, dword [eax]
mov dword [ecx], edx
add eax, 4
add ecx, 4
sub dword [ebp + 8], 1
jne 0x4e05c8
mov eax, dword [esi + 0x53fc]
mov dword [esi + 0x5420], eax
mov ecx, dword [esi + 0x53fc]
mov edx, dword [esi + 0x5400]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [esi + 0x5424], eax
mov ecx, dword [esi + 0x53fc]
mov edx, dword [esi + 0x5400]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ecx + eax*2]
mov dword [esi + 0x5428], ecx
mov ecx, dword [esi + 0x53fc]
mov edx, dword [esi + 0x5400]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + eax*2]
add edx, eax
mov dword [esi + 0x542c], edx
mov ecx, dword [esi + 0x53fc]
mov edx, dword [esi + 0x5400]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ecx + eax*4]
mov dword [esi + 0x5430], ecx
mov ecx, dword [esi + 0x53fc]
mov edx, dword [esi + 0x5400]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + eax*4]
add edx, eax
mov dword [esi + 0x5434], edx
mov ecx, dword [esi + 0x53fc]
mov edx, dword [esi + 0x5400]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, 2
mov dword [esi + 0x5438], 0xc0
lea eax, [eax + eax*2]
cmp dword [ebx + 0x3c], ecx
jne 0x4e06e6
mov edx, dword [ebx + 0x38]
dec edx
neg edx
sbb edx, edx
and edx, 0xf
add edx, 0x15
mov dword [ebx + 8], edx
jmp 0x4e06f9
xor eax, eax
cmp dword [ebx + 0x38], 1
setne al
lea eax, [eax*8 + 0xd]
mov dword [ebx + 8], eax
cmp dword [ebx + 0x90], 0
je 0x4e0705
add dword [ebx + 8], ecx
mov dword [esi], 0xfff88e3b
lea eax, [esi + 0x9b50]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
add eax, 0x20
fild dword [ebp + 8]
fstp dword [eax - 0x24]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 0x20]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 0x1c]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 0x18]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 0x14]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 0x10]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 0xc]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
sub ecx, 1
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 8]
jne 0x4e0711
lea eax, [esi + 0x9b8c]
mov ecx, 3
jmp 0x4e07e0
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
add eax, 4
sub ecx, 1
fild dword [ebp + 8]
fstp dword [eax - 4]
jne 0x4e07e0
cmp dword [edi + 0xdc], 0xffffffff
jne 0x4e0811
mov dword [edi + 0xdc], 4
mov eax, dword [edi + 0x9c]
sub eax, 1
je 0x4e0908
sub eax, 1
je 0x4e089c
sub eax, 2
je 0x4e0908
mov dword [esi + 0x14c64], 0
cmp dword [edi + 0x2c], 0
jge 0x4e0845
mov dword [edi + 0x2c], 3
mov eax, dword [edi + 0x9c]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4e085f
mov eax, dword [edi + 0x60]
push eax
push edi
call fcn.004e1340
add esp, 8
mov ecx, dword [edi + 0xa8]
push 0
push ecx
push edi
call fcn.004f1430
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [edi + 0x9c], eax
test eax, eax
jne 0x4e088d
mov dword [esi + 0x14f34], 0x4ef6b0
jmp 0x4e099c
mov dword [esi + 0x14f34], 0x4ef4b0
jmp 0x4e099c
mov eax, 0x32
sub eax, dword [edi + 0xa4]
push 0
lea edx, [eax + eax*4]
add edx, edx
push edx
push edi
call fcn.004f1430
add esp, 0xc
cmp dword [edi + 0x8c], 0
je 0x4e08cd
mov dword [esi + 0x14c64], 0
jmp 0x4e08df
xor eax, eax
cmp dword [ebx + 0x30], 0xabe0
setg al
mov dword [esi + 0x14c64], eax
mov eax, 6
cmp dword [edi + 0x2c], eax
jle 0x4e08ec
mov dword [edi + 0x2c], eax
cmp dword [edi + 0x2c], 0
jge 0x4e08f9
mov dword [edi + 0x2c], 3
mov dword [esi + 0x14f34], 0x4eeb70
jmp 0x4e099c
cmp dword [edi + 0x7c], 0
jge 0x4e0915
mov dword [edi + 0x7c], 2
cmp dword [edi + 0xf4], 0
jge 0x4e0928
mov dword [edi + 0xf4], 0
mov eax, 0x32
sub eax, dword [edi + 0xa4]
push 0
lea ecx, [eax + eax*4]
add ecx, ecx
push ecx
push edi
call fcn.004f1430
add esp, 0xc
cmp dword [edi + 0x2c], 0
jge 0x4e0951
mov dword [edi + 0x2c], 3
cmp dword [edi + 0x2c], 5
jge 0x4e095e
mov dword [edi + 0x2c], 0
mov eax, 7
cmp dword [edi + 0x2c], eax
jle 0x4e096b
mov dword [edi + 0x2c], eax
cmp dword [edi + 0x8c], 0
je 0x4e0980
mov dword [esi + 0x14c64], 0
jmp 0x4e0992
xor edx, edx
cmp dword [ebx + 0x30], 0xabe0
setg dl
mov dword [esi + 0x14c64], edx
mov dword [esi + 0x14f34], 0x4eefb0
fld dword [edi + 0xc8]
fstp dword [esi + 0x14bb0]
fld dword [edi + 0xcc]
fstp dword [esi + 0x14bb4]
cmp dword [edi + 0x100], 0
je 0x4e09e1
fld dword [edi + 0x104]
fadd dword [esi + 0x14bb0]
fstp dword [esi + 0x14bb0]
fld dword [esi + 0x14bb4]
fadd dword [edi + 0x104]
fstp dword [esi + 0x14bb4]
cmp dword [edi + 0x9c], 0
je 0x4e0ae2
cmp dword [ebx + 0x30], 0x3e80
mov dword [ebx + 0x60], 1
mov dword [ebx + 0x64], 0xe
jge 0x4e0a0c
mov dword [ebx + 0x64], 8
mov eax, dword [edi + 0xac]
test eax, eax
je 0x4e0a44
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx]
push ecx
push edx
push eax
call fcn.004e1c50
mov dword [edi + 0xac], eax
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx]
push ecx
push edx
push eax
call fcn.004e1e10
add esp, 0x18
mov dword [ebx + 0x60], eax
test eax, eax
jl 0x4e0479
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x4e0a7c
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx]
push ecx
push edx
push eax
call fcn.004e1c50
mov dword [edi + 0xb0], eax
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx]
push ecx
push edx
push eax
call fcn.004e1e10
add esp, 0x18
mov dword [ebx + 0x64], eax
test eax, eax
jl 0x4e0479
mov eax, dword [ebx]
shl eax, 4
add eax, dword [ebx + 0x60]
mov ecx, dword [eax*4 + 0x55e0b8]
mov dword [edi + 0xac], ecx
mov edx, dword [ebx]
shl edx, 4
add edx, dword [ebx + 0x64]
mov eax, dword [edx*4 + 0x55e0b8]
mov dword [edi + 0xb0], eax
mov ecx, dword [ebx]
shl ecx, 4
add ecx, dword [ebx + 0x64]
mov eax, dword [ecx*4 + 0x55e0b8]
mov ecx, dword [edi + 0xa8]
cmp eax, ecx
jl 0x4e0ac1
mov eax, ecx
mov dword [edi + 0xa8], eax
mov edx, dword [ebx]
shl edx, 4
add edx, dword [ebx + 0x60]
mov ecx, dword [edx*4 + 0x55e0b8]
cmp ecx, eax
jle 0x4e0adc
mov eax, ecx
mov dword [edi + 0xa8], eax
mov eax, dword [edi + 0x98]
mov dword [ebx + 0x54], eax
mov ecx, dword [edi + 0x24]
mov dword [ebx + 0x8c], ecx
mov edx, dword [edi + 0x9c]
mov dword [ebx + 0x58], edx
mov eax, dword [edi + 0x50]
mov dword [esi + 0x14c68], eax
mov ecx, dword [edi + 0x54]
mov dword [ebx + 0xc], ecx
mov edx, dword [edi + 0x58]
mov dword [ebx + 0x10], edx
mov eax, dword [edi + 0x5c]
mov dword [ebx + 0x14], eax
mov ecx, dword [edi + 0x60]
mov dword [ebx + 0x68], ecx
mov edx, dword [edi + 0xa8]
mov dword [ebx + 0x5c], edx
fld dword [edi + 0x64]
mov ecx, edi
fstp dword [ebx + 0xe4]
call fcn.004de630
mov eax, dword [edi + 0xe8]
test eax, eax
jge 0x4e0b4f
mov eax, dword [esi + 0x14f24]
mov dword [eax], 3
jmp 0x4e0b57
mov ecx, dword [esi + 0x14f24]
mov dword [ecx], eax
fld dword [edi + 0xec]
fdiv qword [0x55b0b0]
fld qword [0x530bb0]
fxch st(1)
call fcn.00501480
fstp dword [ebp + 8]
fld dword [ebp + 8]
mov edx, dword [esi + 0x14f24]
fstp dword [edx + 4]
cmp dword [edi + 0xf0], 0xffffffff
jne 0x4e0b92
mov dword [edi + 0xf0], 0
cmp dword [edi + 0xf0], 0
jne 0x4e0bb4
mov eax, dword [ebx + 0xa4]
cmp eax, 1
je 0x4e0baa
test eax, eax
jne 0x4e0bb4
mov dword [edi + 0xf0], 1
mov eax, dword [edi + 0xf0]
push edi
mov dword [ebx + 0xa8], eax
call fcn.004e1150
add esp, 4
test eax, eax
jge 0x4e0bd8
push 1
push edi
call fcn.004e1120
add esp, 8
push edi
call fcn.004e11b0
add esp, 4
test eax, eax
jge 0x4e0bf0
push 0
push edi
call fcn.004e1180
add esp, 8
push edi
call fcn.004e1740
fcomp dword [0x530bd0]
add esp, 4
fnstsw ax
test ah, 5
jp 0x4e0c17
fldz
sub esp, 8
fstp qword [esp]
push edi
call fcn.004e1720
add esp, 0xc
push edi
call fcn.004e1240
or eax, 1
push eax
push edi
call fcn.004e1210
add esp, 0xc
cmp dword [edi + 0xdc], 0
jge 0x4e0c3d
mov dword [edi + 0xdc], 4
fldz
fcom dword [edi + 0xe0]
fnstsw ax
test ah, 0x41
jne 0x4e0c58
fld dword [0x530bc0]
fstp dword [edi + 0xe0]
fcom dword [edi + 0xf8]
fnstsw ax
test ah, 0x41
jne 0x4e0c6d
fstp dword [edi + 0xf8]
jmp 0x4e0c6f
fstp st(0)
cmp dword [edi + 0xf4], 0
jge 0x4e0c82
mov dword [edi + 0xf4], 1
fld dword [edi + 0xf8]
fstp dword [ebx + 0xac]
fld dword [edi + 0xfc]
fstp dword [ebx + 0xb0]
fld dword [edi + 0xe4]
fldz
fsubrp st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xb4]
fmul qword [0x55b0a8]
fld qword [0x530bb0]
fxch st(1)
call fcn.00501480
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [ebx + 0xb8]
fld dword [edi + 0xe0]
fstp dword [ebx + 0xbc]
mov ecx, dword [edi + 0xdc]
mov dword [ebx + 0xc0], ecx
mov edx, dword [edi + 0xd0]
mov dword [ebx + 0xc4], edx
mov eax, dword [edi + 0xd4]
mov dword [ebx + 0xc8], eax
mov ecx, dword [edi + 0xd8]
mov dword [ebx + 0xcc], ecx
mov edx, dword [edi + 0x84]
mov dword [ebx + 0x44], edx
mov eax, dword [edi + 0x88]
mov dword [ebx + 0x48], eax
mov ecx, dword [edi + 0xf4]
mov dword [ebx + 0x4c], ecx
mov edx, dword [edi + 0x94]
and edx, 2
mov dword [ebx + 0x50], edx
mov eax, dword [edi + 0x94]
sar eax, 2
and eax, 0x3f
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xd8]
fld dword [str.Invalid_JPEG_file_structure:_two_SOF_markers]
fcom st(1)
fnstsw ax
fld qword [0x547490]
test ah, 0x41
jp 0x4e0d71
fsub st(2), st(0)
fxch st(2)
fstp dword [ebx + 0xd8]
jmp 0x4e0d73
fstp st(2)
fld dword [ebx + 0xd8]
fld qword [0x55b098]
fmul st(1), st(0)
fxch st(1)
fstp dword [ebx + 0xd8]
mov ecx, dword [edi + 0x94]
sar ecx, 8
and ecx, 0x3f
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xd4]
fcom st(2)
fnstsw ax
test ah, 1
jne 0x4e0dba
fsub st(3)
fstp dword [ebx + 0xd4]
jmp 0x4e0dbc
fstp st(0)
fld dword [ebx + 0xd4]
fmul st(1)
fstp dword [ebx + 0xd4]
mov edx, dword [edi + 0x94]
sar edx, 0xe
and edx, 0x3f
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xdc]
fcom st(2)
fnstsw ax
test ah, 1
jne 0x4e0dfb
fsub st(3)
fstp dword [ebx + 0xdc]
jmp 0x4e0dfd
fstp st(0)
fld dword [ebx + 0xdc]
fmul st(1)
fstp dword [ebx + 0xdc]
mov eax, dword [edi + 0x94]
sar eax, 0x14
and eax, 0x3f
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xe0]
fcom st(2)
fnstsw ax
fstp st(2)
test ah, 1
jne 0x4e0e42
fxch st(1)
fsubrp st(2)
fxch st(1)
fstp dword [ebx + 0xe0]
jmp 0x4e0e46
fstp st(1)
fstp st(1)
cmp dword [ebx + 0x34], 2
fmul dword [ebx + 0xe0]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fadd dword [ebx + 0xdc]
fstp dword [ebx + 0xe0]
fld dword [edi + 0x14]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebp - 0x10]
fld dword [edi + 0x14]
fmul qword [0x5343b8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebp - 0xc]
fstp dword [ebp - 8]
fstp dword [ebp - 4]
fld dword [ebp - 0x10]
fmul dword [edi + 0x18]
fstp dword [ebp - 0x10]
fld dword [ebp - 0xc]
fmul dword [edi + 0x18]
fstp dword [ebp - 0xc]
fld dword [ebp - 8]
fmul dword [edi + 0x1c]
fstp dword [ebp - 8]
fld dword [ebp - 4]
fmul dword [edi + 0x1c]
fstp dword [ebp - 4]
jne 0x4e0ed8
cmp dword [ebx + 0x38], 1
jne 0x4e0ed8
fld dword [ebp - 8]
fadd dword [ebp - 0x10]
fld qword [0x545498]
fmul st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x10]
fld dword [ebp - 4]
fadd dword [ebp - 0xc]
fmulp st(1)
fstp dword [ebp - 0xc]
fldz
fst dword [ebp - 8]
fstp dword [ebp - 4]
fld dword [ebp - 0x10]
xor eax, eax
fstp dword [ebx + 0xf8]
fld dword [ebp - 0xc]
fstp dword [ebx + 0xfc]
fld dword [ebp - 8]
fstp dword [ebx + 0x100]
fld dword [ebp - 4]
fstp dword [ebx + 0x104]
mov dword [esi + 0x9b98], eax
mov dword [esi + 0x9b9c], eax
cmp dword [ebx + 0x58], eax
jne 0x4e0f2c
mov eax, dword [ebx]
inc eax
imul eax, dword [ebx + 0x68]
imul eax, eax, 0x11940
cdq
idiv dword [ebx + 0x30]
mov dword [esi + 0x9b98], edx
mov dword [esi + 0x9b9c], edx
push edi
call fcn.004df500
push esi
call fcn.004eb670
push edi
call fcn.004ea660
mov ecx, dword [edi + 0x7c]
push ecx
push ebx
call fcn.004e41c0
add esp, 0x14
pop edi
mov dword [ebx + 0x84], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret