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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4945b6
push eax
mov dword fs:[0], esp
sub esp, 0x27c
push ebx
mov ebx, dword [esp + 0x290]
push ebp
push esi
push edi
mov esi, ecx
push ebx
call fcn.0040e800
test al, al
je 0x415339
xor al, al
jmp 0x41598d
mov ecx, esi
call fcn.0040faa0
mov cx, word [esi + 0x16]
mov dword [esp + 0x30], eax
cmp cx, 8
ja 0x415359
test eax, eax
jne 0x415359
xor al, al
jmp 0x41598d
mov eax, dword [esi + 0xc]
and ecx, 0xffff
add eax, 0x1f
mov ebp, ecx
cdq
and edx, 0x1f
mov ecx, esi
add eax, edx
sar eax, 5
shl eax, 2
mov dword [esp + 0x44], eax
imul eax, dword [esi + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
call fcn.004104d0
test al, al
je 0x4153ab
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x4153ab
mov eax, dword [esi + 0xc]
mov ebp, 0x20
imul eax, dword [esi + 0x10]
shl eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2a4]
mov ecx, 1
cmp eax, ecx
jge 0x4153bd
mov eax, ecx
mov dl, byte [esp + 0x2a0]
mov word [esp + 0x34], 0
test dl, dl
mov word [esp + 0x36], cx
mov word [esp + 0x38], ax
jne 0x4153e5
shl eax, 4
add eax, 6
mov dword [esi + 0x1fc], eax
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0x14]
push ecx
push ecx
lea edi, [eax + edx*4 + 0x28]
mov edx, dword [esp + 0x44]
add edi, edx
mov dl, byte [esi + 0xc]
mov byte [esp + 0x28], dl
mov dl, byte [esi + 0x28]
mov byte [esp + 0x2a], dl
mov edx, dword [esi + 0x1fc]
mov al, byte [esi + 0x10]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0xc]
mov byte [esp + 0x29], al
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x10]
shl edx, 1
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x1c]
xor eax, eax
mov word [esp + 0x5c], cx
push ecx
push esi
lea ecx, [esp + 0xa0]
mov byte [esp + 0x33], 0
mov word [esp + 0x34], ax
mov word [esp + 0x36], bp
mov dword [esp + 0x38], edi
mov dword [esp + 0x58], 0x28
mov word [esp + 0x66], bp
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
call sym.webplugin.exe_public:_void___thiscall_CxImage::constructor_class_CxImage_const___bool__bool__bool_
push 0
push 0
lea ecx, [esp + 0x78]
mov dword [esp + 0x29c], 0
call fcn.0040e3e0
mov ecx, dword [esi + 0xc]
mov eax, 0xff
cmp ecx, eax
mov byte [esp + 0x294], 1
jg 0x4154a9
cmp dword [esi + 0x10], eax
jle 0x4154de
lea ecx, [esp + 0x70]
mov byte [esp + 0x21], 0
mov byte [esp + 0x20], 0
call fcn.0040e490
lea eax, [esp + 0x70]
push 4
push eax
lea ecx, [esp + 0x98]
call fcn.0040e960
lea ecx, [esp + 0x70]
call fcn.0040e660
mov edi, eax
mov dword [esp + 0x28], edi
mov al, byte [esp + 0x2a0]
test al, al
jne 0x415649
mov ecx, dword [esp + 0x36]
push ecx
mov ecx, esi
call fcn.0040f8c0
mov edx, dword [esp + 0x38]
mov ecx, esi
push edx
mov word [esp + 0x3a], ax
call fcn.0040f8c0
push 1
lea ecx, [esp + 0x38]
mov word [esp + 0x3c], ax
mov eax, dword [ebx]
push 6
push ecx
mov ecx, ebx
call dword [eax + 0xc]
mov edx, dword [esp + 0x36]
mov ecx, esi
push edx
call fcn.0040f8c0
mov word [esp + 0x36], ax
mov eax, dword [esp + 0x38]
push eax
mov ecx, esi
call fcn.0040f8c0
mov word [esp + 0x38], ax
mov eax, dword [esp + 0x2a4]
test eax, eax
jne 0x41594c
mov ebp, eax
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0040f8c0
mov edx, dword [esp + 0x26]
mov ecx, esi
push edx
mov word [esp + 0x28], ax
call fcn.0040f8c0
mov word [esp + 0x26], ax
mov eax, dword [esp + 0x28]
push eax
mov ecx, esi
call fcn.0040f8f0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
push ecx
mov ecx, esi
call fcn.0040f8f0
mov edx, dword [ebx]
mov dword [esp + 0x2c], eax
push 1
lea eax, [esp + 0x24]
push 0x10
push eax
mov ecx, ebx
call dword [edx + 0xc]
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0040f8c0
mov edx, dword [esp + 0x26]
mov ecx, esi
push edx
mov word [esp + 0x28], ax
call fcn.0040f8c0
mov word [esp + 0x26], ax
mov eax, dword [esp + 0x28]
push eax
mov ecx, esi
call fcn.0040f8f0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
push ecx
mov ecx, esi
call fcn.0040f8f0
mov ecx, dword [esi + 0x1fc]
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x2a0]
add ecx, edi
test al, al
mov dword [esi + 0x1fc], ecx
je 0x415616
cmp ebp, dword [esi + 0x160]
jl 0x41561e
mov al, byte [esp + 0x2a0]
test al, al
jne 0x41594c
test ebp, ebp
jne 0x41594c
mov al, byte [esp + 0x20]
test al, al
jne 0x415660
mov al, byte [esp + 0x21]
test al, al
jne 0x415660
mov esi, dword [ebx]
push 1
push edi
push 0
lea ecx, [esp + 0x7c]
call fcn.0040e4d0
push eax
mov ecx, ebx
call dword [esi + 0xc]
jmp 0x41594c
mov ebp, dword [esp + 0x2a4]
mov eax, dword [esi + 0x160]
cmp ebp, eax
je 0x415552
jmp 0x4155ff
lea edx, [esp + 0x48]
mov ecx, esi
push edx
call fcn.0040f930
mov eax, dword [ebx]
push 1
lea ecx, [esp + 0x4c]
push 0x28
push ecx
mov ecx, ebx
call dword [eax + 0xc]
lea edx, [esp + 0x48]
mov ecx, esi
push edx
call fcn.0040f930
mov edx, dword [esi + 0x14c]
lea eax, [esp + 0x40]
test edx, edx
push eax
mov ecx, esi
setge byte [esp + 0x17]
call fcn.0040f5e0
mov edi, dword [esp + 0x30]
mov ebp, dword [eax]
test edi, edi
mov dword [esp + 0x40], ebp
je 0x4156f5
mov al, byte [esp + 0x13]
test al, al
je 0x4156cd
mov cl, byte [esi + 0x14c]
push 0
push 0
push 0
push 0
push ecx
mov ecx, esi
call fcn.0040fa00
mov eax, dword [esi + 0x28]
mov edx, dword [ebx]
shl eax, 2
push 1
push eax
push edi
mov ecx, ebx
call dword [edx + 0xc]
mov al, byte [esp + 0x13]
test al, al
je 0x4156f5
mov cl, byte [esi + 0x14c]
push ebp
push ecx
mov ecx, esi
call fcn.0040fa50
mov ecx, esi
call fcn.004104d0
test al, al
je 0x4157ac
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x4157ac
mov edx, dword [esp + 0x14]
push edx
call dword [0x496600]
mov edi, eax
mov eax, dword [esi + 0x10]
add esp, 4
mov dword [esp + 0x30], edi
test eax, eax
mov dword [esp + 0x18], 0
jle 0x415791
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
call sym.webplugin.exe_public:_unsigned_char____thiscall_CxImage::GetBits_unsigned_long_int_
mov ebp, eax
mov eax, dword [esi + 0xc]
xor ebx, ebx
test eax, eax
jle 0x415776
mov cl, byte [ebp]
mov byte [edi], cl
mov dl, byte [ebp + 1]
inc edi
inc ebp
mov ecx, dword [esp + 0x18]
mov byte [edi], dl
mov al, byte [ebp + 1]
inc edi
inc ebp
push ecx
push ebx
mov byte [edi], al
inc edi
mov ecx, esi
inc ebp
call fcn.00410640
mov byte [edi], al
mov eax, dword [esi + 0xc]
inc edi
inc ebx
cmp ebx, eax
jl 0x415749
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x415732
mov ebx, dword [esp + 0x29c]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov edx, dword [ebx]
push 1
push eax
push edi
mov ecx, ebx
call dword [edx + 0xc]
push edi
call dword [0x4965c4]
add esp, 4
jmp 0x4157be
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x34]
mov edx, dword [ebx]
push 1
push eax
push ecx
mov ecx, ebx
call dword [edx + 0xc]
mov edx, dword [esp + 0x3c]
push 1
push edx
call dword [0x4965b4]
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x30], ebp
jne 0x41581d
lea ecx, [esp + 0x70]
mov byte [esp + 0x294], al
call fcn.0040e410
lea ecx, [esp + 0x90]
mov dword [esp + 0x294], 0xffffffff
mov dword [esp + 0x90], sym.webplugin.exe_const_CxImage::vftable
call sym.webplugin.exe_public:_bool___thiscall_CxImage::DestroyFrames_void_
lea ecx, [esp + 0x90]
call sym.webplugin.exe_public:_bool___thiscall_CxImage::Destroy_void_
xor al, al
jmp 0x41598d
mov ecx, esi
call fcn.004106f0
mov ecx, esi
mov byte [esp + 0x1f], al
call fcn.004104d0
mov byte [esp + 0x1e], al
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
mov dword [esp + 0x18], edi
jle 0x415933
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0xc]
xor ebp, ebp
test eax, eax
jle 0x415911
mov al, byte [esp + 0x1e]
xor ebx, ebx
test al, al
je 0x415871
push edi
push ebp
mov ecx, esi
call fcn.00410640
test al, al
jne 0x415871
mov ebx, 1
mov al, byte [esp + 0x1f]
test al, al
je 0x415898
push 1
push edi
lea eax, [esp + 0x90]
push ebp
push eax
mov ecx, esi
call fcn.0040fe10
mov cl, byte [eax + 3]
test cl, cl
jne 0x415898
mov ebx, 1
push 0
push edi
lea ecx, [esp + 0x94]
push ebp
push ecx
mov ecx, esi
call fcn.0040fd00
mov cl, byte [esp + 0x13]
mov eax, dword [eax]
test cl, cl
je 0x4158c0
cmp eax, dword [esp + 0x40]
jne 0x4158c0
mov ebx, 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov edi, ebp
sar edi, 3
add edi, edx
mov edx, ebp
add edi, ecx
and edx, 0x80000007
jns 0x4158e0
dec edx
or edx, 0xfffffff8
inc edx
mov ecx, 7
mov al, 1
sub ecx, edx
mov dl, byte [edi]
shl al, cl
and bl, 1
shl bl, cl
not al
and al, dl
or al, bl
inc ebp
mov byte [edi], al
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebp, eax
jl 0x415855
mov ebx, dword [esp + 0x29c]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
inc edi
add edx, ecx
cmp edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edx
jl 0x415848
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx]
push 1
push eax
push ebp
mov ecx, ebx
call dword [edx + 0xc]
push ebp
call dword [0x4965c4]
add esp, 4
lea ecx, [esp + 0x70]
mov byte [esp + 0x294], 0
call fcn.0040e410
lea ecx, [esp + 0x90]
mov dword [esp + 0x294], 0xffffffff
mov dword [esp + 0x90], sym.webplugin.exe_const_CxImage::vftable
call sym.webplugin.exe_public:_bool___thiscall_CxImage::DestroyFrames_void_
lea ecx, [esp + 0x90]
call sym.webplugin.exe_public:_bool___thiscall_CxImage::Destroy_void_
mov al, 1
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x288
ret 0xc