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

Disassembly:
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x128]
push ebp
push esi
mov esi, ebx
imul esi, dword [esp + 0x134]
xor ebp, ebp
push 0x7c
lea eax, [esp + 0x34]
push ebp
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], ebp
call fcn.10059b00
push 0x7c
lea ecx, [esp + 0xc0]
push ebp
push ecx
mov dword [esp + 0xc4], ebp
call fcn.10059b00
mov eax, esi
cdq
push 2
push edx
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x44], ebp
call sym.libwebp.dll_WebPSafeMalloc
mov ecx, eax
or eax, 0xffffffff
add esp, 0x24
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
cmp ecx, ebp
jne 0x10036dc0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
lea eax, [esi - 2]
cmp eax, ebp
lea ecx, [ecx + eax*2]
mov edx, 1
mov word [ecx + 2], dx
jl 0x10036e25
jmp 0x10036de0
mov edx, dword [esp + 0x138]
mov esi, dword [edx + eax*4]
cmp esi, dword [edx + eax*4 + 4]
jne 0x10036e15
movzx esi, word [ecx + 2]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0xc], eax
xor eax, eax
mov edx, 0xfff
cmp si, dx
setne al
add ax, si
mov word [ecx], ax
mov eax, dword [esp + 0xc]
jmp 0x10036e1d
mov edx, 1
mov word [ecx], dx
dec eax
sub ecx, 2
test eax, eax
jge 0x10036de0
mov esi, 0xfffffffa
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 7
push edi
mov edi, 0xd
lea esp, [esp]
test esi, esi
jle 0x10036e94
mov eax, esi
cdq
idiv ebx
mov ecx, esi
mov edx, eax
imul edx, ebx
sub ecx, edx
cmp ecx, 8
jg 0x10036e6b
cmp eax, 8
jge 0x10036e6b
shl eax, 4
sub eax, ecx
movzx eax, byte [eax + 0x10069328]
inc eax
jmp 0x10036e8a
lea edx, [ebx - 8]
cmp ecx, edx
jle 0x10036e87
cmp eax, 7
jge 0x10036e87
shl eax, 4
sub eax, ecx
movzx eax, byte [eax + ebx + 0x10069338]
inc eax
jmp 0x10036e8a
lea eax, [esi + 0x78]
dec eax
cmp eax, 0x20
jge 0x10036e94
mov dword [esp + eax*4 + 0x30], esi
inc esi
sub edi, 1
jne 0x10036e40
mov esi, dword [esp + 0x10]
add esi, ebx
sub dword [esp + 0x1c], 1
mov dword [esp + 0x10], esi
jne 0x10036e37
xor eax, eax
lea ecx, [ecx]
mov ecx, dword [esp + eax*4 + 0x30]
test ecx, ecx
je 0x10036ebd
mov dword [esp + ebp*4 + 0x30], ecx
inc ebp
mov ecx, dword [esp + eax*4 + 0x34]
test ecx, ecx
je 0x10036eca
mov dword [esp + ebp*4 + 0x30], ecx
inc ebp
mov ecx, dword [esp + eax*4 + 0x38]
test ecx, ecx
je 0x10036ed7
mov dword [esp + ebp*4 + 0x30], ecx
inc ebp
mov ecx, dword [esp + eax*4 + 0x3c]
test ecx, ecx
je 0x10036ee4
mov dword [esp + ebp*4 + 0x30], ecx
inc ebp
add eax, 4
cmp eax, 0x20
jl 0x10036eb0
xor edx, edx
mov dword [esp + 0x18], ebp
test ebp, ebp
jle 0x10036f44
xor ecx, ecx
xor eax, eax
lea ebx, [ebx]
test ecx, ecx
jne 0x10036f3f
mov ecx, dword [esp + eax*4 + 0x30]
mov ebp, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x10], ebx
xor ebx, ebx
cmp dword [esp + edx*4 + 0x30], ecx
sete bl
inc eax
cmp eax, dword [esp + 0x18]
mov ecx, ebx
mov ebx, dword [esp + 0x10]
jl 0x10036f00
test ecx, ecx
jne 0x10036f3f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + edx*4 + 0x30]
mov dword [esp + eax*4 + 0xb0], ecx
inc eax
mov dword [esp + 0x24], eax
inc edx
cmp edx, ebp
jl 0x10036ef6
mov edi, dword [esp + 0x148]
mov edx, dword [edi]
mov ebp, 1
cmp dword [esp + 0x28], ebp
mov dword [edx], 0
jle 0x100370f2
mov eax, dword [esp + 0x144]
mov ecx, dword [eax]
mov eax, dword [ecx + ebp*4]
mov esi, eax
and esi, 0xfff
cmp esi, 0xfff
jl 0x10036fa1
shr eax, 0xc
mov ebx, eax
xor eax, eax
cmp dword [esp + 0x18], eax
jle 0x10036fa1
jmp 0x10036f90
cmp ebx, dword [esp + eax*4 + 0x30]
je 0x100370aa
inc eax
cmp eax, dword [esp + 0x18]
jl 0x10036f90
mov esi, dword [esp + 0x20]
lea edx, [esi - 2]
cmp edx, 0xffc
ja 0x10036ff6
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], eax
dec esi
mov ebx, dword [esp + 0x1c]
neg ebx
sbb ebx, ebx
and ebx, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jle 0x100370aa
xor edi, edi
mov edx, ebp
mov ecx, ebp
cmp dword [esp + 0x1c], edi
je 0x10037006
sub ecx, dword [esp + eax*4 + 0xb0]
jmp 0x1003700a
mov ecx, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
jmp 0x10036fc1
sub ecx, dword [esp + eax*4 + 0x30]
test ecx, ecx
jl 0x10037094
mov eax, dword [esp + 0x13c]
mov esi, dword [eax + ecx*4]
cmp esi, dword [eax + ebp*4]
jne 0x1003708c
mov esi, dword [esp + 0x2c]
movzx eax, word [esi + ecx*2]
movzx esi, word [esi + edx*2]
cmp eax, esi
jne 0x10037056
add edi, eax
add ecx, eax
add edx, eax
cmp edi, 0xfff
jg 0x1003705c
cmp edx, dword [esp + 0x28]
jge 0x1003705c
mov eax, dword [esp + 0x13c]
mov esi, dword [eax + ecx*4]
cmp esi, dword [eax + edx*4]
je 0x10037021
jmp 0x1003705c
jl 0x1003705a
mov eax, esi
add edi, eax
mov esi, dword [esp + 0x10]
cmp esi, edi
mov eax, dword [esp + 0x14]
jge 0x10037094
cmp dword [esp + 0x1c], 0
je 0x10037078
mov ebx, dword [esp + eax*4 + 0xb0]
jmp 0x1003707c
mov ebx, dword [esp + eax*4 + 0x30]
cmp edi, 0xfff
jge 0x100370c0
mov esi, edi
mov dword [esp + 0x10], esi
jmp 0x10037094
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jl 0x10036fe1
mov edi, dword [esp + 0x148]
cmp esi, 4
jg 0x100370cc
mov edx, dword [edi]
xor eax, eax
mov dword [edx + ebp*4], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
jmp 0x100370e0
mov edi, dword [esp + 0x148]
mov esi, 0xfff
mov ecx, dword [edi]
mov eax, ebx
shl eax, 0xc
or eax, esi
mov dword [ecx + ebp*4], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], esi
inc ebp
cmp ebp, dword [esp + 0x28]
jl 0x10036f62
mov ebx, dword [esp + 0x134]
mov eax, dword [esp + 0x2c]
mov edx, dword [edi]
push eax
mov dword [edx], 0
call sym.libwebp.dll_WebPFree
mov ecx, dword [esp + 0x150]
mov edx, dword [esp + 0x140]
mov eax, dword [esp + 0x13c]
push ecx
mov ecx, dword [esp + 0x148]
push edi
push edx
push eax
mov eax, ebx
call fcn.10036a50
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret