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

Disassembly:
sub esp, 0x4b0
push ebx
push ebp
push esi
push edi
push 0x8ac
xor edi, edi
push edi
push 1
call sym.libwebp.dll_WebPSafeCalloc
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x1004bc0c
mov esi, dword [esp + 0x4c8]
push 1
push esi
call fcn.1004c5d0
add esp, 8
xor ebx, ebx
mov dword [esp + 0x10], ebx
jmp 0x1004bc34
mov eax, dword [esp + 0x4c4]
mov ecx, dword [esp + 0x4c8]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 0xc], edi
call fcn.100557a0
mov dword [esp + 0x10], esi
mov ebx, esi
mov esi, dword [esp + 0x4c8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edi
call sym.libwebp.dll_WebPGetWorkerInterface
mov ebp, eax
mov dword [esp + 0x2c], ebp
cmp ebx, edi
je 0x1004c0eb
lea edx, [esp + 0x30]
push edi
push edx
call fcn.10058850
add esp, 8
test eax, eax
je 0x1004c0eb
lea eax, [esp + 0x78]
push 0x20f
push eax
call sym.libwebp.dll_WebPPictureInitInternal
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1f0]
push eax
push ebx
call fcn.100492a0
add esp, 0x18
test eax, eax
je 0x1004c0db
mov eax, ebx
call fcn.10049560
test eax, eax
je 0x1004c0db
mov ecx, dword [esp + 0x4c4]
cmp dword [ecx + 0x54], edi
mov ebx, dword [esp + 0x18]
jle 0x1004bcfd
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
test eax, eax
jle 0x1004bcf6
mov ecx, ebx
sub ecx, eax
lea esi, [ecx*8]
sub esi, ecx
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add ecx, ecx
lea esi, [esp + esi*4 + 0x1e0]
shr ecx, 2
lea edi, [esp + 0x3d4]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x4b4], eax
sub ebx, dword [esp + 0x14]
test ebx, ebx
jle 0x1004bd25
lea ecx, [ebx*8]
sub ecx, ebx
add ecx, ecx
add ecx, ecx
shr ecx, 2
lea esi, [esp + 0x1e0]
lea edi, [esp + 0x2d4]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
cmp dword [esp + 0x14], eax
mov dword [esp + 0x3b4], ebx
setg al
xor edi, edi
mov dword [esp + 0x18], edi
inc eax
mov dword [esp + 0x28], eax
test eax, eax
jle 0x1004bedc
test edi, edi
jne 0x1004bd5d
lea esi, [esp + 0x60]
mov dword [esp + 0x1c], esi
lea ebx, [esp + 0x2c0]
jmp 0x1004bd6e
lea edx, [esp + 0x48]
mov dword [esp + 0x1c], edx
lea ebx, [esp + 0x3c0]
mov esi, edx
mov eax, dword [esp + 0x4c4]
mov ecx, dword [esp + 0x4d0]
mov edx, dword [esp + 0x24]
mov dword [ebx], eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0xf8], edx
test edi, edi
jne 0x1004bdb8
mov eax, dword [esp + 0x4c8]
mov ecx, dword [esp + 0x4cc]
mov edx, dword [esp + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [eax + 0x58]
mov dword [ebx + 0xfc], eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
jmp 0x1004beb3
mov esi, dword [esp + 0x4c8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
lea eax, [esp + 0x78]
push eax
push ecx
push edx
push 0
push 0
push esi
call sym.libwebp.dll_WebPPictureView
mov ecx, dword [esi + 0x58]
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x90]
lea edx, [esp + 0x13c]
and ecx, edx
mov dword [ebx + 4], eax
lea eax, [esp + 0x48]
mov dword [ebx + 0xfc], ecx
mov ecx, dword [esp + 0x4e4]
push eax
push ecx
mov dword [esp + 0xf8], 0
call fcn.10058880
add esp, 0x20
test eax, eax
je 0x1004bfd8
push 0x8ac
lea edx, [esp + 0x34]
push 0
push 1
mov dword [ebx + 8], edx
call sym.libwebp.dll_WebPSafeCalloc
mov ebp, eax
xor esi, esi
add esp, 0xc
lea ecx, [esp + 0x78]
cmp ebp, esi
je 0x1004bfc4
mov eax, dword [esp + 0x4c4]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 0xc], esi
call fcn.100557a0
mov eax, ebp
mov dword [esp + 0x20], ebp
call fcn.10049560
test eax, eax
je 0x1004befc
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x24]
mov dword [ebp + 0x24], edx
mov ecx, dword [eax + 0x28]
mov dword [ebp + 0x28], ecx
mov edx, dword [eax + 0x40]
mov dword [ebp + 0x40], edx
lea edi, [ebp + 0x44]
lea esi, [eax + 0x44]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x444]
lea esi, [eax + 0x444]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [ebx + 0xc], ebp
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp]
push esi
call eax
inc edi
add esp, 4
cmp edi, dword [esp + 0x28]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0x1004b660
mov dword [esp + 0x18], edi
jl 0x1004bd48
cmp dword [esp + 0x14], 0
je 0x1004c009
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x48]
push eax
call ecx
add esp, 4
test eax, eax
jne 0x1004bfe0
mov edx, dword [esp + 0x4c8]
push 1
push edx
call fcn.1004c5d0
add esp, 8
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.100588e0
lea ecx, [ebx + 0x8a4]
push ecx
call fcn.10036170
add esp, 8
lea esi, [ebx + 0x844]
mov edi, 4
push esi
call fcn.10035e60
add esp, 4
add esi, 0x18
sub edi, 1
jne 0x1004bf36
mov edx, dword [ebx + 0x18]
push edx
call sym.libwebp.dll_WebPFree
xor ebp, ebp
push ebx
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x1c], ebp
call sym.libwebp.dll_WebPFree
mov ebx, dword [esp + 0x28]
add esp, 8
cmp ebx, ebp
je 0x1004bfaa
lea eax, [ebx + 0x8a4]
push eax
call fcn.10036170
add esp, 4
lea esi, [ebx + 0x844]
lea edi, [ebp + 4]
push esi
call fcn.10035e60
add esp, 4
add esi, 0x18
sub edi, 1
jne 0x1004bf81
mov ecx, dword [ebx + 0x18]
push ecx
call sym.libwebp.dll_WebPFree
push ebx
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x1c], ebp
call sym.libwebp.dll_WebPFree
add esp, 8
mov edx, dword [esp + 0x4c8]
pop edi
xor eax, eax
cmp dword [edx + 0x5c], ebp
pop esi
pop ebp
sete al
pop ebx
add esp, 0x4b0
ret
push 1
push ecx
call fcn.1004c5d0
add esp, 8
mov dword [esp + 0x20], esi
jmp 0x1004befc
push 1
push esi
jmp 0x1004bf06
mov eax, dword [esp + 0x4c8]
mov esi, dword [eax + 0x58]
test esi, esi
je 0x1004bffc
mov ecx, 0x2f
lea edi, [esp + 0x124]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x48]
push ecx
call edx
add esp, 4
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x60]
push eax
call ecx
mov eax, dword [ebp + 8]
lea edx, [esp + 0x64]
push edx
call eax
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x68]
push ecx
mov esi, eax
call edx
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x1004bf0e
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x48]
push eax
call ecx
lea edx, [esp + 0x4c]
mov edi, eax
mov eax, dword [ebp + 0x14]
push edx
call eax
add esp, 8
test esi, esi
je 0x1004c0bb
test edi, edi
je 0x1004c0bb
mov eax, dword [esp + 0x4cc]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x34]
add ecx, 7
add edx, 7
sar ecx, 3
sub ecx, dword [eax + 8]
sar edx, 3
sub edx, dword [esp + 0x38]
add ecx, dword [eax + 0xc]
add edx, dword [esp + 0x3c]
cmp edx, ecx
jae 0x1004bf0e
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.10058940
mov edx, dword [esp + 0x4d0]
mov edi, dword [edx + 0x58]
add esp, 8
test edi, edi
je 0x1004bf0e
mov ecx, 0x2f
lea esi, [esp + 0x124]
rep movsd dword es:[edi], dword [esi]
jmp 0x1004bf0e
mov eax, dword [esp + 0x4c8]
cmp dword [eax + 0x5c], 0
jne 0x1004bf0e
mov ecx, dword [esp + 0xd4]
push ecx
mov edx, eax
jmp 0x1004bf05
push 1
push esi
call fcn.1004c5d0
add esp, 8
jmp 0x1004bf12
mov edi, ebx
call fcn.1004b610
push 1
push esi
call fcn.1004c5d0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4b0
ret