Function at 0x51e9b0
Capabilities:
Check http status code
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0xe8], 0
mov esi, dword [ebp + 0x18]
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x64], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 4]
mov edx, dword [edx + 0x20]
mov dword [ebp - 0xd4], edx
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x5c], 0xf
movss dword [ebp - 0xec], xmm0
mov dword [ebp - 0x4c], 0
movss dword [ebp - 0xbc], xmm0
movss dword [ebp - 0x88], xmm0
mov dword [ebp - 0x54], eax
mov dword [ebp - 8], edx
movss dword [ebp - 0xc8], xmm0
movss dword [ebp - 0x24], xmm0
cmp esi, 2
jl 0x52102b
cmp dword [ebp + 0xc], 0
je 0x52102b
mov edx, dword [ebp - 0x1c]
mov edi, dword [ecx + 0x1c]
xor ecx, ecx
imul edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0x24]
test edx, edx
js 0x51ea99
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 0x2c]
mov eax, esi
shl eax, cl
cmp eax, edi
je 0x51ea90
inc ecx
cmp ecx, edx
jle 0x51ea83
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], ecx
cmp ecx, edx
jg 0x52102b
imul eax, dword [ebp - 0x64]
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], edx
add eax, 0x3d
mov ecx, dword [ecx + 0x2c]
imul ecx, edx
mov edx, dword [ebp + 8]
lea eax, [edx + eax*4]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0x30]
imul ecx, dword [ebp - 0x64]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x54]
shl eax, 2
mov dword [ebp - 0x20], eax
add eax, 0x1000
imul eax, dword [ebp - 0x64]
mov dword [ebp - 0xd0], ecx
shl ecx, 2
mov dword [ebp - 0x68], ecx
add eax, 0xf4
add eax, edx
add ecx, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
add ecx, eax
add eax, ecx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x51eb31
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x40], eax
jmp 0x51eb5c
push eax
call fcn.005349a0
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [ebp - 0x90], eax
bsr eax, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x14]
sub ecx, eax
dec ecx
mov dword [ebp - 0x28], ecx
lea eax, [ecx + 4]
sar eax, 3
mov dword [ebp - 0x40], eax
cmp dword [edx + 0x30], 0
je 0x51eb7c
push 0x60b
push str.D:UsersphiliDropboxDevelopmentlibcodecsopusceltcelt_encoder.c
push str.assertion_failed:_st__signalling0
call fcn.00504d50
mov edx, dword [ebp + 8]
add esp, 0xc
mov eax, 0x4fb
cmp esi, eax
cmovl eax, esi
mov ecx, eax
mov dword [ebp - 0x34], eax
sub ecx, dword [ebp - 0x40]
cmp dword [edx + 0x2c], 0
mov dword [ebp - 0x60], ecx
je 0x51ebc4
mov ecx, dword [edx + 0x28]
cmp ecx, 0xffffffff
je 0x51ebc4
mov eax, dword [ebp - 0x1c]
imul ecx, edi
mov edi, dword [ebp - 0x40]
mov esi, dword [eax]
sar esi, 3
mov eax, esi
sar eax, 1
add eax, ecx
cdq
idiv esi
mov dword [ebp - 0xcc], eax
sar eax, 6
mov dword [ebp - 0x3c], eax
jmp 0x51ec38
mov ecx, dword [edx + 0x28]
mov eax, ecx
mov esi, dword [ebp - 0x28]
imul eax, edi
cmp esi, 1
mov dword [ebp - 0xcc], 0
lea edx, [esi + eax]
cmovle edx, eax
cmp ecx, 0xffffffff
je 0x51ec2d
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
lea ecx, [edx + eax*4]
lea esi, [eax*8]
mov eax, ecx
cdq
xor ecx, ecx
idiv esi
mov edx, dword [ebp + 8]
cmp dword [edx + 0x30], ecx
mov edx, eax
setne cl
sub edx, ecx
mov ecx, dword [ebp - 0x34]
cmp ecx, edx
mov eax, edx
cmovl eax, ecx
cmp eax, 2
jge 0x51ec23
mov ecx, 2
mov dword [ebp - 0x34], ecx
jmp 0x51ec30
cmp ecx, edx
cmovge ecx, edx
mov dword [ebp - 0x34], ecx
jmp 0x51ec30
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x40]
sub ecx, edi
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0xc]
mov edx, 0x190
mov ecx, dword [ebp - 0x18]
mov esi, 3
sar edx, cl
sub esi, ecx
sub edx, 0x32
mov dword [ebp - 0xe4], esi
lea eax, [eax + eax*4]
mov ecx, esi
mov esi, dword [ebp + 8]
lea eax, [eax*8 + 0x14]
imul edx, eax
imul eax, dword [ebp - 0x34], 0x190
shl eax, cl
mov ecx, eax
mov dword [ebp - 0x9c], eax
mov eax, dword [esi + 0x28]
sub ecx, edx
mov dword [ebp - 0x9c], ecx
cmp eax, 0xffffffff
je 0x51ec95
sub eax, edx
cmp ecx, eax
cmovge ecx, eax
mov dword [ebp - 0x9c], ecx
cmp dword [ebp - 0x14], 0
jne 0x51ecb9
push dword [ebp - 0x34]
lea eax, [ebp - 0x124]
push dword [ebp + 0x14]
push eax
call fcn.00530090
lea eax, [ebp - 0x124]
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xcc]
test eax, eax
jle 0x51ed0f
cmp dword [esi + 0x34], 0
je 0x51ed0f
lea ecx, [eax + eax]
xor edx, edx
sub ecx, dword [esi + 0xd0]
mov eax, 2
mov esi, dword [ebp - 0x60]
sar ecx, 6
cmp dword [ebp - 0x28], 1
cmove edx, eax
mov eax, ecx
cmp edx, ecx
cmovg eax, edx
cmp eax, esi
jge 0x51ed0f
cmp edx, ecx
cmovg ecx, edx
cmp ecx, esi
jge 0x51ed0f
lea eax, [ecx + edi]
mov dword [ebp - 0x60], ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
call fcn.00530280
add esp, 8
mov eax, dword [ebp - 0x34]
shl eax, 3
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 8], ecx
mov eax, dword [ebp - 0x8c]
cmovle ecx, dword [ebp - 8]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
imul eax, dword [ebp - 0x64]
mov dword [ebp - 0x84], ecx
shl eax, 2
call fcn.00550610
mov eax, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
xorps xmm1, xmm1
mov dword [ebp - 0x38], esp
xorps xmm2, xmm2
mov edi, dword [eax + 0x1c]
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x54]
imul eax, dword [ebp - 0xc]
mov dword [ebp - 0xa0], edi
cdq
idiv edi
mov edx, eax
test edx, edx
jle 0x51ed8f
nop word [eax + eax]
maxss xmm1, dword [esi + ecx*4]
minss xmm2, dword [esi + ecx*4]
inc ecx
cmp ecx, edx
jl 0x51ed80
movss xmm4, dword [0x560cb0]
mov eax, dword [ebp + 8]
xorps xmm2, xmm4
maxss xmm1, xmm2
movss xmm2, dword [eax + 0xe0]
comiss xmm2, xmm1
ja 0x51edd6
xor eax, eax
xorps xmm2, xmm2
xorps xmm1, xmm1
test edx, edx
jle 0x51edcf
nop word [eax + eax]
maxss xmm2, dword [esi + eax*4]
minss xmm1, dword [esi + eax*4]
inc eax
cmp eax, edx
jl 0x51edc0
xorps xmm1, xmm4
maxss xmm2, xmm1
mov eax, dword [ebp - 0x54]
lea edi, [esi + edx*4]
imul eax, dword [ebp - 0xc]
xor ecx, ecx
xorps xmm1, xmm1
xorps xmm3, xmm3
cdq
idiv dword [ebp - 0xa0]
test eax, eax
jle 0x51ee02
maxss xmm1, dword [edi + ecx*4]
minss xmm3, dword [edi + ecx*4]
inc ecx
cmp ecx, eax
jl 0x51edf3
mov ecx, dword [ebp + 8]
xorps xmm3, xmm4
maxss xmm1, xmm3
mov eax, 1
movss dword [ecx + 0xe0], xmm1
maxss xmm2, xmm1
mov ecx, dword [ecx + 0x3c]
movss xmm1, dword [0x619e48]
shl eax, cl
movss dword [ebp - 0x80], xmm2
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm2
setae al
cmp dword [ebp - 0x28], 1
mov dword [ebp - 0x94], eax
jne 0x51ef09
push 0xf
push eax
push dword [ebp - 0x14]
call fcn.0052fd50
mov edi, dword [ebp - 0x94]
add esp, 0xc
test edi, edi
je 0x51eec8
cmp dword [ebp - 0xcc], 0
jle 0x51eea8
mov eax, dword [ebp - 0x40]
add eax, 2
mov dword [ebp - 0x60], 2
cmp dword [ebp - 0x34], eax
cmovl eax, dword [ebp - 0x34]
mov ecx, eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 0x34], ecx
lea eax, [ecx*8]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0xac], eax
call fcn.00530280
add esp, 8
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x94], edi
lea ecx, [eax*8]
bsr eax, dword [edx + 0x1c]
mov dword [ebp - 0x28], ecx
inc eax
add eax, ecx
mov dword [edx + 0x14], eax
movss xmm2, dword [ebp - 0x80]
mov ecx, dword [ebp + 8]
xor edi, edi
mov edx, dword [ebp - 0x38]
add ecx, 0xc0
add edx, dword [ebp - 0x20]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0x98], edx
nop word [eax + eax]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
je 0x51ef15
comiss xmm2, dword [0x60bddc]
jbe 0x51ef15
mov eax, 1
jmp 0x51ef17
mov dword [ebp - 0x94], 0
jmp 0x51eecd
xor eax, eax
push eax
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0x10
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
push dword [ebp - 0x64]
push dword [ebp - 0x8c]
push edx
push esi
call fcn.00521180
mov ecx, dword [ebp - 0x58]
inc edi
mov edx, dword [ebp - 0x98]
add esp, 0x20
movss xmm2, dword [ebp - 0x80]
add esi, 4
lea eax, [ecx*4]
mov ecx, dword [ebp - 0xd8]
add edx, eax
add ecx, 4
mov dword [ebp - 0x98], edx
mov dword [ebp - 0xd8], ecx
cmp edi, dword [ebp - 0x64]
jl 0x51eef0
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x60]
cmp dword [esi + 0x40], 0
je 0x51ef7f
cmp edx, 3
jg 0x51ef8c
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
shl eax, 2
cmp edx, eax
jle 0x51efae
cmp dword [ebp - 0x10], 0
jne 0x51efae
cmp dword [ebp - 0x94], 0
jne 0x51efae
cmp dword [esi + 0x14], 0
jne 0x51efae
cmp dword [esi + 0x18], 5
jl 0x51efae
mov eax, 1
jmp 0x51efb0
xor eax, eax
mov edi, dword [esi + 0x64]
lea ecx, [esi + 0x78]
push ecx
push edx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0xa0], edi
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0xd8], ecx
push eax
lea eax, [ebp - 0x5c]
push eax
push edi
push dword [ebp - 0x8c]
mov edi, dword [ebp - 0x38]
push dword [ebp - 0x64]
push dword [ebp - 0x50]
push edi
push esi
call fcn.00523610
movss xmm0, dword [ebp - 0x4c]
add esp, 0x30
movss xmm1, dword [0x60bd7c]
comiss xmm0, xmm1
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x98], ecx
movss dword [ebp - 0xc4], xmm0
ja 0x51f01e
movss xmm0, dword [esi + 0x6c]
comiss xmm0, xmm1
jbe 0x51f070
cmp dword [esi + 0x78], 0
je 0x51f036
movss xmm0, dword [esi + 0x7c]
cvtps2pd xmm0, xmm0
comisd xmm0, xmmword [0x55d4a8]
jbe 0x51f070
movd xmm1, dword [esi + 0x68]
cvtdq2pd xmm1, xmm1
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
movaps xmm0, xmm1
mulsd xmm0, qword [0x60bdb0]
comisd xmm2, xmm0
ja 0x51f066
mulsd xmm1, qword [0x60bda8]
comisd xmm1, xmm2
jbe 0x51f070
mov dword [ebp - 0xb4], 1
test eax, eax
jne 0x51f0a1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x51f113
mov eax, dword [ebp - 0x28]
add eax, 0x10
cmp eax, dword [ebp - 0xac]
jg 0x51f113
push 1
push ecx
push dword [ebp - 0x14]
call fcn.0052fd50
add esp, 0xc
jmp 0x51f110
push 1
push 1
push dword [ebp - 0x14]
call fcn.0052fd50
mov edi, dword [ebp - 0x98]
inc edi
bsr esi, edi
push 6
add esi, 0xfffffffc
push esi
push dword [ebp - 0x14]
call fcn.005302d0
lea eax, [esi + 4]
mov ecx, esi
mov esi, dword [ebp - 0x14]
mov edx, 0x10
push eax
shl edx, cl
mov eax, edi
sub eax, edx
push eax
push esi
call fcn.0052fd90
push 3
push dword [ebp - 0x20]
lea eax, [edi - 1]
push esi
mov dword [ebp - 0x98], eax
call fcn.0052fd90
push 2
push 0x60baf0
push dword [ebp - 0xa0]
push esi
call fcn.00530020
mov edi, dword [ebp - 0x38]
add esp, 0x40
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 0x18]
mov esi, edx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x28], 0
cmp edx, 1
jl 0x51f18a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
jne 0x51f18a
test ecx, ecx
je 0x51f14e
cmp dword [ebp - 0x3c], 0xf
jge 0x51f14e
cmp dword [eax + 0xb8], 2
je 0x51f14e
mov eax, 1
jmp 0x51f150
xor eax, eax
lea ecx, [ebp - 0x44]
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x58]
push edi
call fcn.00524190
movss xmm0, dword [ebp - 0x24]
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
movss dword [ebp - 0xc8], xmm0
mov esi, dword [eax + 0x18]
mov edx, esi
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x18], 0
jle 0x51f1b7
mov ecx, dword [ebp - 0x14]
bsr eax, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x14]
sub ecx, eax
add ecx, 2
cmp ecx, dword [ebp - 0xac]
jg 0x51f1b7
cmp dword [ebp - 0x48], 0
je 0x51f1c8
mov eax, dword [ebp - 0x7c]
mov esi, edx
mov dword [ebp - 0x28], eax
jmp 0x51f1c8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0xf0], 1
mov eax, dword [ebp - 0x8c]
imul eax, dword [ebp - 0x64]
shl eax, 2
call fcn.00550610
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], esp
call fcn.00550610
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x78], esp
call fcn.00550610
cmp dword [ebp - 0x28], 0
mov dword [ebp - 0x74], esp
je 0x51f205
cmp esi, 8
jl 0x51f205
mov esi, 1
jmp 0x51f207
xor esi, esi
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x54], eax
shl eax, 2
call fcn.00550610
mov dword [ebp - 0x4c], esp
test esi, esi
je 0x51f33d
mov esi, dword [ebp + 8]
push dword [esi + 0x48]
push dword [esi + 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x64]
push dword [ebp - 0xc]
push dword [ebp - 0x5c]
push edi
push 0
push dword [ebp - 0x1c]
call fcn.00521550
push dword [esi + 0x48]
mov esi, dword [ebp - 0xc]
push dword [ebp - 0x18]
mov edi, dword [ebp - 0x78]
push esi
push dword [ebp - 0x84]
push edi
push dword [ebp - 0x5c]
push dword [ebp - 0x1c]
call fcn.00524be0
add esp, 0x40
push esi
mov esi, dword [ebp - 0x4c]
push esi
push edi
mov edi, dword [ebp - 8]
push edi
push dword [ebp - 0x84]
push dword [ebp - 0x1c]
call fcn.005285b0
mov eax, dword [ebp - 0xc]
add esp, 0x18
test eax, eax
jle 0x51f343
movd xmm1, dword [ebp - 0x18]
xor edi, edi
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
cvtdq2ps xmm1, xmm1
shl eax, 2
add esi, 8
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x40], eax
mulss xmm1, dword [0x619e40]
shufps xmm1, xmm1, 0
nop dword [eax]
mov dword [ebp - 0x50], 0
cmp edx, 4
jl 0x51f2fa
lea ecx, [edx - 4]
mov eax, esi
shr ecx, 2
inc ecx
lea edx, [ecx*4]
nop dword [eax]
movups xmm0, xmmword [eax - 8]
addps xmm0, xmm1
movups xmmword [eax - 8], xmm0
add eax, 0x10
sub ecx, 1
jne 0x51f2e0
cmp edx, dword [ebp - 8]
jl 0x51f301
jmp 0x51f323
cmp dword [ebp - 0x50], edx
jge 0x51f329
xor edx, edx
mov ecx, dword [ebp - 0x4c]
lea eax, [edi + edx]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 8]
sub ecx, edx
nop
movaps xmm0, xmm1
addss xmm0, dword [eax]
movss dword [eax], xmm0
add eax, 4
sub ecx, 1
jne 0x51f310
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x40]
add edi, dword [ebp - 0x30]
add esi, ecx
mov edx, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 0x40], eax
jne 0x51f2c0
mov edi, edx
jmp 0x51f340
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
push dword [esi + 0x48]
push dword [esi + 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x64]
push eax
push dword [ebp - 0x5c]
push edx
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
call fcn.00521550
mov ecx, dword [ebp - 0x5c]
add esp, 0x24
movss xmm0, dword [ecx]
ucomiss xmm0, xmm0
lahf
test ah, 0x44
jp 0x51f394
mov edx, dword [ebp - 0xc]
cmp edx, 1
je 0x51f3b1
mov eax, dword [ebp - 0x8c]
movss xmm0, dword [ecx + eax*4]
ucomiss xmm0, xmm0
lahf
test ah, 0x44
jnp 0x51f3b1
push 0x6c4
push str.D:UsersphiliDropboxDevelopmentlibcodecsopusceltcelt_encoder.c
push str.assertion_failed:__celt_isnan_freq_0_____C1___celt_isnan_freq_N___
call fcn.00504d50
mov ecx, dword [ebp - 0x5c]
add esp, 0xc
mov edx, dword [ebp - 0xc]
cmp dword [ebp - 0x64], 2
jne 0x51f3cb
mov eax, dword [ebp - 0x70]
cmp edx, 1
mov dword [ebp - 0x50], 0
cmove eax, dword [ebp - 0x50]
mov dword [ebp - 0x70], eax
push dword [esi + 0x48]
push dword [ebp - 0x18]
push edx
push dword [ebp - 0x84]
push dword [ebp - 0x78]
push ecx
push dword [ebp - 0x1c]
call fcn.00524be0
movss xmm3, dword [0x60ba98]
add esp, 0x1c
cmp dword [esi + 0x40], 0
mov ecx, dword [ebp - 0x78]
je 0x51f42f
mov eax, 2
cmp edi, eax
jle 0x51f42f
movss xmm2, dword [0x601734]
nop dword [eax]
movss xmm0, dword [ecx]
movss xmm1, dword [ecx + eax*4]
mulss xmm0, xmm2
minss xmm1, xmm0
maxss xmm1, xmm3
movss dword [ecx + eax*4], xmm1
inc eax
cmp eax, edi
jl 0x51f410
push dword [ebp - 0xc]
push dword [ebp - 0x74]
push ecx
push edi
push dword [ebp - 0x84]
push dword [ebp - 0x1c]
call fcn.005285b0
mov ecx, dword [ebp - 0x54]
add esp, 0x18
lea eax, [ecx*4]
call fcn.00550610
mov eax, esp
lea ecx, [edi*4]
push ecx
push 0
push eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x80], ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x10]
add esp, 0xc
movss xmm3, dword [0x5fb544]
test eax, eax
jne 0x51f8e8
mov edi, dword [esi + 0xec]
mov dword [ebp - 0xe0], edi
test edi, edi
je 0x51f8e8
cmp dword [esi + 0x40], 0
jne 0x51f8e8
mov esi, dword [esi + 0x5c]
xor eax, eax
cmp esi, 2
mov dword [ebp - 0x40], eax
mov ecx, 2
xorps xmm6, xmm6
cmovl esi, ecx
movss dword [ebp - 0xbc], xmm6
mov ecx, dword [ebp - 0xc]
xorps xmm5, xmm5
movss dword [ebp - 0x88], xmm5
xorps xmm4, xmm4
mov dword [ebp - 0x24], esi
test ecx, ecx
jle 0x51f5c8
movss xmm2, dword [0x60bad8]
xor edx, edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x50], ecx
jmp 0x51f4f8
mov edi, dword [ebp - 0xe0]
xor ecx, ecx
mov dword [ebp - 0xdc], ecx
test esi, esi
je 0x51f59a
mov esi, 1
sub esi, dword [ebp - 0x24]
add edx, edi
movss xmm1, dword [edx]
minss xmm1, xmm3
comiss xmm1, xmm2
jbe 0x51f52e
comiss xmm1, xmm4
jbe 0x51f531
mulss xmm1, dword [0x619e40]
jmp 0x51f531
movaps xmm1, xmm2
mov eax, dword [ebp - 0xd4]
add edx, 4
lea edi, [eax + 2]
movsx eax, word [eax + ecx*2]
movsx ecx, word [edi + ecx*2]
sub ecx, eax
mov eax, dword [ebp - 0x40]
add eax, ecx
mov dword [ebp - 0x40], eax
movd xmm0, ecx
mov ecx, dword [ebp - 0xdc]
cvtdq2ps xmm0, xmm0
inc ecx
mov dword [ebp - 0xdc], ecx
mulss xmm0, xmm1
addss xmm6, xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
add esi, 2
mulss xmm0, xmm1
addss xmm5, xmm0
cmp ecx, dword [ebp - 0x24]
jl 0x51f512
mov edx, dword [ebp - 0xa8]
movss dword [ebp - 0xbc], xmm6
movss dword [ebp - 0x88], xmm5
jmp 0x51f5a3
mov edi, dword [ebp - 0xd4]
add edi, 2
mov esi, dword [ebp - 0x30]
lea ecx, [esi*4]
mov esi, dword [ebp - 0x24]
add edx, ecx
sub dword [ebp - 0x50], 1
mov dword [ebp - 0xa8], edx
jne 0x51f4f2
test eax, eax
jg 0x51f5f6
jmp 0x51f5d1
mov edi, dword [ebp - 0xd4]
add edi, 2
push 0x6ed
push str.D:UsersphiliDropboxDevelopmentlibcodecsopusceltcelt_encoder.c
push str.assertion_failed:_count_0
call fcn.00504d50
movss xmm3, dword [0x5fb544]
add esp, 0xc
mov eax, dword [ebp - 0x40]
xorps xmm4, xmm4
movss xmm5, dword [ebp - 0xbc]
lea ecx, [esi - 1]
movss xmm1, dword [ebp - 0x88]
mulss xmm1, dword [0x5fa458]
movd xmm0, eax
lea eax, [esi + 1]
imul ecx, eax
cvtdq2ps xmm0, xmm0
imul ecx, esi
divss xmm5, xmm0
imul ecx, dword [ebp - 0xc]
addss xmm5, dword [0x58037c]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x60bde0]
mulss xmm1, dword [0x619e40]
minss xmm1, dword [0x60bd58]
comiss xmm1, xmm0
movss dword [ebp - 0x88], xmm1
ja 0x51f66c
movaps xmm1, xmm0
movss dword [ebp - 0x88], xmm0
mov ecx, dword [ebp - 0xd4]
xor esi, esi
mov eax, dword [ebp - 0x24]
movsx eax, word [ecx + eax*2]
movsx ecx, word [edi]
cdq
sub eax, edx
mov edx, eax
sar edx, 1
cmp ecx, edx
jge 0x51f69c
nop dword [eax]
movsx eax, word [edi + 2]
lea edi, [edi + 2]
inc esi
cmp eax, edx
jl 0x51f690
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 0x50], edx
test ecx, ecx
je 0x51f8ba
neg esi
cmp dword [ebp - 0xc], 2
jne 0x51f721
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov edi, dword [eax + 0xec]
mov eax, dword [ebp - 0x58]
lea ecx, [edi + ecx*4]
sub edi, eax
mov dword [ebp - 0xa8], edi
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0xa8]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss xmm1, dword [edx + eax]
maxss xmm1, dword [ecx]
mov edx, dword [ebp - 0x50]
addss xmm0, xmm5
minss xmm1, xmm4
subss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x51f70b
subss xmm1, xmm3
inc edx
mov dword [ebp - 0x50], edx
movss dword [eax], xmm1
movss xmm1, dword [ebp - 0x88]
inc esi
add ecx, 4
add eax, 4
sub edi, 1
jne 0x51f6d1
jmp 0x51f76b
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x58]
mov edi, dword [edi + 0xec]
sub edi, eax
nop
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss xmm1, dword [eax + edi]
minss xmm1, xmm4
addss xmm0, xmm5
subss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x51f75a
subss xmm1, xmm3
inc edx
movss dword [eax], xmm1
movss xmm1, dword [ebp - 0x88]
inc esi
add eax, 4
sub ecx, 1
jne 0x51f730
cmp edx, 3
jl 0x51f8ba
addss xmm5, xmm3
comiss xmm5, xmm4
jbe 0x51f7ae
mov eax, dword [ebp - 0x24]
shl eax, 2
push eax
push 0
push dword [ebp - 0x58]
movss dword [ebp - 0xbc], xmm4
movss dword [ebp - 0x88], xmm4
call sub.VCRUNTIME140.dll_memset
movss xmm5, dword [ebp - 0xbc]
add esp, 0xc
jmp 0x51f8ba
mov esi, dword [ebp - 0x24]
xor ecx, ecx
mov edi, dword [ebp - 0x58]
cmp esi, 0x10
jb 0x51f824
movaps xmm2, xmmword [0x60be30]
lea eax, [edi + 0x20]
mov edx, esi
and edx, 0xfffffff0
nop word [eax + eax]
movups xmm1, xmmword [eax - 0x20]
add ecx, 0x10
xorps xmm0, xmm0
subps xmm1, xmm2
maxps xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
movups xmm1, xmmword [eax - 0x10]
xorps xmm0, xmm0
subps xmm1, xmm2
maxps xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
movups xmm1, xmmword [eax]
xorps xmm0, xmm0
subps xmm1, xmm2
maxps xmm0, xmm1
movups xmmword [eax], xmm0
movups xmm1, xmmword [eax + 0x10]
xorps xmm0, xmm0
subps xmm1, xmm2
maxps xmm0, xmm1
movups xmmword [eax + 0x10], xmm0
add eax, 0x40
cmp ecx, edx
jl 0x51f7d0
cmp ecx, esi
jge 0x51f8ba
mov eax, esi
sub eax, ecx
cmp eax, 4
jl 0x51f8a0
mov edx, esi
lea eax, [ecx + 2]
sub edx, ecx
lea eax, [edi + eax*4]
sub edx, 4
shr edx, 2
inc edx
lea ecx, [ecx + edx*4]
movss xmm1, dword [eax - 8]
movaps xmm0, xmm4
subss xmm1, xmm3
maxss xmm0, xmm1
movss xmm1, dword [eax - 4]
subss xmm1, xmm3
movss dword [eax - 8], xmm0
movaps xmm0, xmm4
maxss xmm0, xmm1
movss xmm1, dword [eax]
subss xmm1, xmm3
movss dword [eax - 4], xmm0
movaps xmm0, xmm4
maxss xmm0, xmm1
movss xmm1, dword [eax + 4]
subss xmm1, xmm3
movss dword [eax], xmm0
movaps xmm0, xmm4
maxss xmm0, xmm1
movss dword [eax + 4], xmm0
add eax, 0x10
sub edx, 1
jne 0x51f841
cmp ecx, esi
jge 0x51f8ba
nop
movss xmm1, dword [edi + ecx*4]
movaps xmm0, xmm4
subss xmm1, xmm3
maxss xmm0, xmm1
movss dword [edi + ecx*4], xmm0
inc ecx
cmp ecx, esi
jl 0x51f8a0
movss xmm0, dword [ebp - 0x88]
addss xmm5, dword [0x58037c]
mulss xmm0, dword [0x60bdd0]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
movss dword [ebp - 0x88], xmm0
movss dword [ebp - 0xbc], xmm5
mov edi, dword [esi + 0x40]
test edi, edi
jne 0x51f9cf
xorps xmm3, xmm3
movss xmm1, dword [0x60bdf8]
cmp dword [ebp - 0x28], edi
je 0x51f915
movd xmm2, dword [ebp - 0x18]
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [0x619e40]
jmp 0x51f918
xorps xmm2, xmm2
mov edx, dword [ebp - 8]
mov ecx, eax
cmp eax, edx
jge 0x51f96c
cmp dword [ebp - 0xc], 2
movss xmm4, dword [0x619e48]
jne 0x51fb45
add eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x74]
lea eax, [esi + eax*4]
nop dword [eax]
movss xmm0, dword [esi + ecx*4]
subss xmm1, xmm4
subss xmm0, xmm2
inc ecx
maxss xmm1, xmm0
movss xmm0, dword [eax]
subss xmm0, xmm2
add eax, 4
maxss xmm1, xmm0
addss xmm3, xmm1
cmp ecx, edx
jl 0x51f940
mov eax, dword [ebp - 0x10]
mov esi, edx
sub esi, eax
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp + 8]
movss xmm1, dword [eax + 0xf0]
divss xmm3, xmm0
movss xmm0, dword [0x60bdf0]
movss xmm2, dword [0x60bdb8]
subss xmm3, xmm1
movss dword [ebp - 0xec], xmm2
maxss xmm0, xmm3
comiss xmm0, xmm2
ja 0x51f9b6
movaps xmm2, xmm0
movss dword [ebp - 0xec], xmm0
movaps xmm0, xmm2
mov esi, eax
mulss xmm0, dword [0x60baac]
addss xmm0, xmm1
movss dword [esi + 0xf0], xmm0
cmp dword [ebp - 0x20], 0
jne 0x51f9ee
mov ecx, dword [ebp - 0x54]
lea eax, [ecx*4]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x4c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x18], 0
jle 0x51fc81
mov edx, dword [ebp - 0x14]
bsr ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0x14]
sub eax, ecx
add eax, 2
cmp eax, dword [ebp - 0xac]
jg 0x51fc5f
cmp dword [ebp - 0x48], 0
jne 0x51fc5f
cmp dword [esi + 0x18], 5
jl 0x51fc5f
test edi, edi
jne 0x51fc5f
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x51fc5f
mov edi, dword [ebp - 0xc]
push edi
push dword [ebp - 8]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x74]
call fcn.00523370
add esp, 0x18
test eax, eax
je 0x51fc5c
push dword [esi + 0x48]
mov eax, dword [ebp - 0x7c]
push dword [esi + 0x1c]
mov dword [ebp - 0x48], 1
push dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x64]
push edi
mov edi, dword [ebp - 0x5c]
push edi
push dword [ebp - 0x38]
push eax
push dword [ebp - 0x1c]
call fcn.00521550
push dword [esi + 0x48]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x84]
push dword [ebp - 0x78]
push edi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.00524be0
add esp, 0x40
push dword [ebp - 0xc]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 8]
push dword [ebp - 0x84]
push edi
call fcn.005285b0
mov ecx, dword [ebp - 0xc]
add esp, 0x18
test ecx, ecx
jle 0x51fc4c
mov eax, dword [ebp - 0x30]
xor esi, esi
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x20], ecx
add edi, 8
mov ecx, dword [ebp - 8]
lea edx, [eax*4]
mov dword [ebp - 0x38], edx
mov eax, edx
nop word [eax + eax]
xor edx, edx
cmp ecx, 4
jl 0x51fbff
movd xmm2, dword [ebp - 0x18]
add ecx, 0xfffffffc
cvtdq2ps xmm2, xmm2
shr ecx, 2
mov eax, edi
inc ecx
movaps xmm1, xmm2
lea edx, [ecx*4]
mulss xmm1, dword [0x619e40]
shufps xmm1, xmm1, 0
movups xmm0, xmmword [eax - 8]
addps xmm0, xmm1
movups xmmword [eax - 8], xmm0
add eax, 0x10
sub ecx, 1
jne 0x51fb22
mov ecx, dword [ebp - 8]
cmp edx, ecx
jl 0x51fc0b
jmp 0x51fc37
mov esi, edx
sub esi, eax
cmp esi, 4
jl 0x51fbce
mov ecx, dword [ebp - 0x74]
add ecx, 8
lea edx, [ecx + eax*4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sub eax, ecx
sub eax, 4
shr eax, 2
inc eax
lea ecx, [ecx + eax*4]
nop dword [eax]
movss xmm0, dword [edx - 8]
subss xmm1, xmm4
subss xmm0, xmm2
maxss xmm1, xmm0
movss xmm0, dword [edx - 4]
subss xmm0, xmm2
addss xmm3, xmm1
subss xmm1, xmm4
maxss xmm1, xmm0
movss xmm0, dword [edx]
subss xmm0, xmm2
addss xmm3, xmm1
subss xmm1, xmm4
maxss xmm1, xmm0
movss xmm0, dword [edx + 4]
subss xmm0, xmm2
add edx, 0x10
addss xmm3, xmm1
subss xmm1, xmm4
maxss xmm1, xmm0
addss xmm3, xmm1
sub eax, 1
jne 0x51fb70
mov edx, dword [ebp - 8]
cmp ecx, edx
jge 0x51f970
mov eax, dword [ebp - 0x74]
nop dword [eax]
movss xmm0, dword [eax + ecx*4]
subss xmm1, xmm4
subss xmm0, xmm2
inc ecx
maxss xmm1, xmm0
addss xmm3, xmm1
cmp ecx, edx
jl 0x51fbe0
jmp 0x51f970
test ecx, ecx
jle 0x51fc3a
movd xmm2, dword [ebp - 0x18]
cvtdq2ps xmm2, xmm2
mov ecx, dword [ebp - 0x4c]
lea eax, [edx + esi]
mulss xmm2, dword [0x619e40]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 8]
sub ecx, edx
movaps xmm0, xmm2
addss xmm0, dword [eax]
movss dword [eax], xmm0
add eax, 4
sub ecx, 1
jne 0x51fc21
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x38]
add esi, dword [ebp - 0x30]
add edi, eax
sub dword [ebp - 0x20], 1
jne 0x51faf0
mov esi, dword [ebp + 8]
movss xmm0, dword [0x58037c]
movss dword [ebp - 0xc8], xmm0
mov edx, dword [ebp - 0x14]
bsr eax, dword [edx + 0x1c]
mov ecx, dword [edx + 0x14]
sub ecx, eax
add ecx, 2
cmp ecx, dword [ebp - 0xac]
jg 0x51fc81
push 3
push dword [ebp - 0x48]
push edx
call fcn.0052fd50
add esp, 0xc
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0xc]
imul eax, edi
shl eax, 2
call fcn.00550610
mov eax, esp
push dword [ebp - 0x7c]
mov dword [ebp - 0x40], eax
push edi
push dword [ebp - 0x84]
push dword [ebp - 0x78]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x1c]
call fcn.00525d70
mov eax, edi
add esp, 0x1c
shl eax, 4
sub eax, edi
cmp dword [ebp - 0x3c], eax
jl 0x51fcdb
cmp dword [ebp - 0x10], 0
jne 0x51fcdb
cmp dword [esi + 0x18], 2
jl 0x51fcdb
cmp dword [esi + 0x40], 0
jne 0x51fcdb
mov esi, 1
jmp 0x51fcdd
xor esi, esi
mov eax, dword [ebp - 0x30]
lea edi, [eax*4]
mov eax, edi
mov dword [ebp - 0x24], edi
call fcn.00550610
mov eax, edi
mov dword [ebp - 0x5c], esp
call fcn.00550610
mov eax, dword [ebp - 0x24]
mov edi, esp
call fcn.00550610
mov eax, esp
lea ecx, [ebp - 0xc0]
push eax
push edi
push dword [ebp - 0xd8]
mov dword [ebp - 0xa8], eax
push dword [ebp - 0x58]
mov eax, dword [ebp + 8]
push dword [eax + 0x40]
push ecx
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
push dword [ebp - 0x18]
push dword [ebp - 0xd4]
push dword [eax + 0x34]
push dword [eax + 0x2c]
push ecx
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x38]
push dword [eax + 0x3c]
push dword [ebp - 0x5c]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push dword [ebp - 0x4c]
push dword [ebp - 0x74]
call fcn.00521a70
mov eax, dword [ebp - 0x24]
add esp, 0x54
fstp dword [ebp - 0xe0]
call fcn.00550610
mov edx, esp
mov dword [ebp - 0x4c], edx
test esi, esi
je 0x51ff27
mov eax, 0x5000
movss xmm0, dword [ebp - 0xc8]
cdq
mov ecx, 0x50
idiv dword [ebp - 0x3c]
mov esi, dword [ebp - 0x4c]
push edi
push dword [ebp - 0x70]
add eax, 2
push ecx
movss dword [esp], xmm0
cmp eax, ecx
push dword [ebp - 0x18]
cmovl eax, ecx
push dword [ebp - 0x8c]
push dword [ebp - 0x40]
push eax
push esi
push dword [ebp - 0x48]
push dword [ebp - 0x84]
push dword [ebp - 0x1c]
call fcn.00523af0
mov edi, dword [ebp - 8]
add esp, 0x2c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x84]
mov edx, eax
cmp edx, edi
jge 0x51fdec
nop dword [eax + eax]
mov ecx, dword [esi + eax*4 - 4]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x51fde0
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x54]
lea eax, [ecx*4]
call fcn.00550610
mov eax, dword [ebp - 0x74]
xor ecx, ecx
movss xmm2, dword [0x619f00]
movss xmm3, dword [0x5fb584]
movss xmm4, dword [0x5fb544]
mov edx, dword [ebp - 0x24]
lea eax, [eax + esi*4]
mov dword [ebp - 0x58], esp
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x20], eax
nop word [eax + eax]
cmp esi, edi
jge 0x51fe8e
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0xa4]
mov edx, dword [ebp - 8]
sub esi, dword [ebp - 0xa4]
sub edi, dword [ebp - 0x74]
sub edx, dword [ebp - 0x10]
nop dword [eax]
movss xmm1, dword [eax]
lea ecx, [edi + eax]
movaps xmm0, xmm1
subss xmm0, dword [ecx + esi]
andps xmm0, xmm2
comiss xmm3, xmm0
jbe 0x51fe77
movss xmm0, dword [ecx]
mulss xmm0, xmm4
subss xmm1, xmm0
movss dword [eax], xmm1
add eax, 4
sub edx, 1
jne 0x51fe50
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
inc ecx
add eax, edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x20], eax
cmp ecx, dword [ebp - 0xc]
jl 0x51fe30
mov ecx, dword [ebp + 8]
xor eax, eax
push dword [ecx + 0x40]
cmp dword [ecx + 0x18], 4
push dword [ecx + 0x38]
setge al
push eax
lea eax, [ecx + 0x54]
push eax
push dword [ecx + 0xc]
push dword [ebp - 0x60]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x58]
push dword [ebp - 0xac]
push dword [ebp - 0x2c]
push dword [ebp - 0x74]
push dword [ebp - 0x84]
push edi
push esi
push dword [ebp - 0x1c]
call fcn.005286b0
mov ecx, dword [ebp - 0x14]
xor edx, edx
add esp, 0x44
bsr eax, dword [ecx + 0x1c]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 0x14]
sub esi, eax
shl edi, 3
cmp dword [ebp - 0x48], edx
sete dl
cmp dword [ebp - 0x18], 0
lea ecx, [esi - 1]
lea edx, [edx*2 + 2]
jle 0x51ffaf
lea eax, [edx + esi]
cmp eax, edi
ja 0x51ffaf
mov eax, 1
jmp 0x51ffb1
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x51ff8c
cmp dword [ebp - 0x44], 0
je 0x51ff59
mov edi, dword [ebp - 8]
test edi, edi
jle 0x51ff4d
mov ecx, dword [ebp - 0x80]
mov eax, 1
shr ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
mov dword [ebp - 0x38], 0
jmp 0x51fdef
cmp dword [ebp - 0x3c], 0xf
jge 0x51ff8c
mov eax, dword [ebp + 8]
cmp dword [eax + 0xb8], 2
je 0x51ff8c
mov edi, dword [ebp - 8]
test edi, edi
jle 0x51ff81
mov ecx, dword [ebp - 0x80]
mov edi, edx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
jmp 0x51fdef
mov edi, dword [ebp - 8]
test edi, edi
jle 0x51ffa3
mov ecx, dword [ebp - 0x80]
mov edi, edx
mov eax, dword [ebp - 0x48]
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
mov dword [ebp - 0x38], 0
jmp 0x51fdef
xor eax, eax
mov esi, dword [ebp - 0x10]
sub edi, eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x70], eax
mov eax, esi
mov dword [ebp - 0x20], edi
xor edi, edi
cmp eax, dword [ebp - 8]
mov eax, edi
jge 0x52002a
mov eax, dword [ebp - 0x48]
neg eax
sbb eax, eax
add eax, 5
mov dword [ebp - 0x50], eax
nop dword [eax]
lea eax, [edx + ecx]
cmp eax, dword [ebp - 0x20]
ja 0x520018
push edx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + esi*4]
xor eax, edi
mov edi, dword [ebp - 0x14]
push eax
push edi
call fcn.0052fd50
bsr eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x14]
add esp, 0xc
sub ecx, eax
mov eax, dword [ebp - 0x4c]
dec ecx
mov edi, dword [eax + esi*4]
mov eax, dword [ebp - 0x70]
or eax, edi
mov dword [ebp - 0x70], eax
jmp 0x520021
mov eax, dword [ebp - 0x4c]
mov dword [eax + esi*4], edi
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x50]
inc esi
cmp esi, dword [ebp - 8]
jl 0x51ffe0
cmp dword [ebp - 0x44], 0
je 0x520063
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x70]
lea esi, [ecx + ecx]
mov ecx, dword [ebp - 0x48]
add ecx, esi
mov al, byte [eax + ecx*4 + 0x5fb950]
cmp al, byte [edx + ecx*4 + 0x5fb952]
je 0x520069
push 1
push dword [ebp - 0x38]
push dword [ebp - 0x14]
call fcn.0052fd50
mov edx, dword [ebp - 0x38]
add esp, 0xc
jmp 0x52006b
mov eax, dword [ebp - 0x18]
lea esi, [eax + eax]
xor edx, edx
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
cmp ecx, edi
jge 0x520093
mov eax, dword [ebp - 0x48]
add eax, esi
mov esi, dword [ebp - 0x4c]
lea edx, [edx + eax*2]
mov eax, dword [esi + ecx*4]
movsx eax, byte [eax + edx*2 + 0x5fb950]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jl 0x520080
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
bsr eax, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x14]
sub ecx, eax
add ecx, 3
cmp ecx, dword [ebp - 0xac]
jg 0x5200dd
cmp dword [esi + 0x40], 0
je 0x5203cd
mov dword [esi + 0x64], 0
mov dword [esi + 0x50], 2
mov eax, 2
push 5
push 0x60baec
push eax
push dword [ebp - 0x14]
call fcn.00530020
add esp, 0x10
cmp dword [esi + 0x40], 0
je 0x520101
mov eax, 0x55555556
mov ecx, 8
imul dword [ebp - 0x3c]
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
cmovg eax, ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
call fcn.00550610
mov eax, esp
push dword [ebp - 0xc]
mov dword [ebp - 0xa8], eax
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.00505110
push dword [ebp - 0x14]
mov dword [ebp - 0x70], 6
mov dword [ebp - 0x60], 0
call fcn.005349a0
mov edi, eax
add esp, 0x14
mov eax, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], esi
cmp eax, dword [ebp - 8]
jge 0x52026d
mov edx, dword [ebp - 0x5c]
mov edi, 0x30
lea ecx, [edx + eax*4]
mov eax, dword [ebp - 0xa8]
sub eax, edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0xb0], eax
nop dword [eax + eax]
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0x18]
movsx edx, word [eax + esi*2 + 2]
movsx eax, word [eax + esi*2]
sub edx, eax
imul edx, dword [ebp - 0xc]
shl edx, cl
cmp edx, 0x30
mov esi, edx
cmovl esi, edi
mov edi, dword [ebp - 0xac]
lea eax, [edx*8]
cmp eax, esi
cmovl esi, eax
lea edi, [edi*8]
mov eax, dword [ebp - 0x38]
xor edx, edx
sub edi, dword [ebp - 0x60]
xor ecx, ecx
mov dword [ebp - 0xdc], esi
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x20], ecx
lea eax, [eax + esi*8]
cmp eax, edi
jge 0x52024a
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0xb0]
cmp edx, dword [esi + eax]
jge 0x520232
mov esi, dword [eax]
xor eax, eax
push dword [ebp - 0x44]
cmp ecx, esi
setl al
push eax
push dword [ebp - 0x14]
call fcn.0052fd50
push dword [ebp - 0x14]
call fcn.005349a0
mov ecx, dword [ebp - 0x20]
add esp, 0x10
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x38], eax
cmp ecx, esi
jge 0x520232
mov eax, dword [ebp - 0xdc]
inc ecx
add dword [ebp - 0x60], eax
add edx, eax
sub edi, eax
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x38]
add eax, 8
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x20], ecx
cmp eax, edi
jl 0x5201d2
test ecx, ecx
je 0x52024a
mov eax, dword [ebp - 0x70]
dec eax
mov esi, eax
cmp eax, 2
mov eax, 2
cmovl esi, eax
mov dword [ebp - 0x70], esi
mov eax, dword [ebp - 0x3c]
mov edi, 0x30
mov esi, dword [ebp - 0x50]
inc esi
mov dword [ebp - 0x50], esi
mov dword [eax], edx
add eax, 4
mov dword [ebp - 0x3c], eax
cmp esi, dword [ebp - 8]
jl 0x520170
mov edi, dword [ebp - 0x38]
cmp dword [ebp - 0xc], 2
jne 0x520483
cmp dword [ebp - 0x18], 0
je 0x52036b
mov eax, dword [ebp - 0x1c]
mov edi, 0xd
movss xmm6, dword [0x60ba98]
movaps xmm4, xmm6
mov eax, dword [eax + 0x20]
nop word [eax + eax]
movsx esi, word [eax + 2]
lea ecx, [eax + 2]
movsx edx, word [eax]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp - 0x18]
shl esi, cl
shl edx, cl
cmp edx, esi
jge 0x520312
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x40]
add eax, edx
movss xmm5, dword [0x619f00]
lea eax, [ecx + eax*4]
movss xmm2, dword [ecx + edx*4]
inc edx
movss xmm3, dword [eax]
movaps xmm0, xmm2
movaps xmm1, xmm3
andps xmm0, xmm5
andps xmm1, xmm5
add eax, 4
addss xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, xmm3
addss xmm3, xmm2
addss xmm6, xmm1
andps xmm0, xmm5
andps xmm3, xmm5
addss xmm0, xmm3
addss xmm4, xmm0
cmp edx, esi
jl 0x5202d1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xb0]
sub edi, 1
jne 0x5202a0
mov edx, dword [ebp - 0x1c]
inc ecx
mulss xmm4, dword [0x60bd88]
mov edi, dword [ebp - 0x38]
mov eax, dword [edx + 0x20]
movsx edx, word [eax + 0x1a]
xor eax, eax
shl edx, cl
cmp dword [ebp - 0x18], 1
setg al
movd xmm0, edx
cvtdq2ps xmm0, xmm0
lea eax, [eax*8 + 5]
add eax, edx
mulss xmm0, xmm6
movd xmm1, eax
xor eax, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm4
comiss xmm1, xmm0
seta al
mov dword [ebp - 0xe8], eax
mov esi, dword [ebp + 8]
mov eax, 0x10624dd3
imul dword [ebp - 0x9c]
push dword [esi + 0xe8]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push 0x15
push 0x60bb50
push 0x60baf8
movd xmm0, eax
cvtdq2ps xmm0, xmm0
push ecx
movss dword [esp], xmm0
call fcn.00525820
mov edx, eax
add esp, 0x14
cmp dword [ebp - 0x10], edx
mov ecx, edx
mov eax, dword [ebp - 8]
cmovg ecx, dword [ebp - 0x10]
cmp eax, ecx
jge 0x520474
mov edx, eax
mov dword [esi + 0xe8], edx
jmp 0x52048c
cmp dword [ebp - 0x10], 0
je 0x520402
cmp dword [esi + 0x18], 0
jne 0x5203e7
mov dword [esi + 0x50], 0
xor eax, eax
jmp 0x5200ca
cmp dword [ebp - 0x48], 0
jne 0x5200be
mov dword [esi + 0x50], 3
mov eax, 3
jmp 0x5200ca
cmp dword [ebp - 0x28], 0
jne 0x52045c
cmp dword [esi + 0x18], 3
jl 0x52045c
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + ecx*4]
add eax, eax
cmp dword [ebp - 0x60], eax
jl 0x52045c
push dword [ebp - 0xa8]
xor eax, eax
push dword [ebp - 0x7c]
cmp dword [ebp - 0xb0], eax
push ecx
push dword [ebp - 0x84]
setne al
push eax
lea eax, [esi + 0x64]
push eax
lea eax, [esi + 0x60]
push eax
push dword [esi + 0x50]
lea eax, [esi + 0x58]
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x1c]
call fcn.00528030
add esp, 0x2c
mov dword [esi + 0x50], eax
jmp 0x5200ca
cmp dword [esi + 0x18], 0
jne 0x5200be
mov dword [esi + 0x50], 0
xor eax, eax
jmp 0x5200ca
cmp dword [ebp - 0x10], edx
cmovg edx, dword [ebp - 0x10]
mov dword [esi + 0xe8], edx
jmp 0x52048c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xe8]
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x7c], 5
lea ecx, [eax*8]
sub ecx, dword [ebp - 0x60]
lea eax, [edi + 0x30]
cmp eax, ecx
jg 0x520544
cmp dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
jg 0x520516
cmp dword [eax + 0x40], 0
jne 0x520516
push dword [eax + 0x48]
movss xmm0, dword [ebp - 0x88]
add eax, 0xe4
push dword [ebp - 0x9c]
push ecx
movss dword [esp], xmm0
movss xmm0, dword [ebp - 0xc8]
push edx
push ecx
movss dword [esp], xmm0
push eax
push dword [ebp - 0xd8]
push dword [ebp - 0x8c]
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 8]
push dword [ebp - 0x74]
push dword [ebp - 0x40]
push dword [ebp - 0x1c]
call fcn.0051e5b0
add esp, 0x38
mov dword [ebp - 0x7c], eax
mov esi, eax
jmp 0x520528
mov esi, 5
mov dword [eax + 0xe4], 0
mov dword [ebp - 0x7c], esi
push 7
push str.wmW_
push esi
mov esi, dword [ebp - 0x14]
push esi
call fcn.00530020
push esi
call fcn.005349a0
add esp, 0x14
mov edi, eax
mov esi, dword [ebp - 0xcc]
test esi, esi
jle 0x52080b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xe4]
mov edx, dword [eax + 0x24]
mov eax, 0x4fb
sub edx, dword [ebp - 0x18]
sar eax, cl
mov ecx, dword [ebp - 0x34]
cmp ecx, eax
mov dword [ebp - 0x20], edx
cmovge ecx, eax
cmp dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], ecx
jne 0x52058f
lea eax, [eax + eax*4]
shl eax, 6
sub esi, eax
sub esi, 0xa0
jmp 0x52059f
lea ecx, [eax + eax*8]
xor eax, eax
shl ecx, 3
sub esi, ecx
add esi, 0xffffffe0
cmovs esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0xb0], ecx
test ecx, ecx
je 0x5205c4
mov eax, dword [eax + 0xd8]
mov ecx, edx
sar eax, cl
mov ecx, dword [ebp - 0xb0]
add esi, eax
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x10], 0
jne 0x520670
mov edx, dword [ebp + 8]
sub esp, 8
movss xmm0, dword [ebp - 0xec]
xor eax, eax
cmp dword [edx + 0xec], eax
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0xbc]
setne al
movss dword [esp], xmm0
movss xmm0, dword [ebp - 0xe0]
push eax
push dword [edx + 0x40]
lea eax, [edx + 0x78]
push ecx
movss dword [esp], xmm0
push dword [ebp - 0xb4]
movss xmm0, dword [ebp - 0xc8]
push ecx
movss dword [esp], xmm0
push dword [ebp - 0xc0]
movss xmm0, dword [edx + 0xe4]
push ecx
movss dword [esp], xmm0
push ecx
push dword [edx + 0xe8]
push dword [ebp - 0xc]
push dword [edx + 0x5c]
push dword [ebp - 0x9c]
push dword [ebp - 0x18]
push esi
push eax
push dword [ebp - 0x1c]
call fcn.005217e0
mov ecx, dword [ebp - 0x60]
add esp, 0x48
add ecx, 0x3f
add ecx, edi
sar ecx, 6
lea esi, [edi + eax]
add ecx, 2
jmp 0x520700
cmp dword [eax + 0xbc], 0x64
jge 0x52068a
mov ecx, dword [ebp - 0xe4]
mov edx, 0x60
sar edx, cl
add edx, esi
jmp 0x52069d
mov edx, esi
jle 0x52069d
mov ecx, dword [ebp - 0xe4]
mov eax, 0x90
sar eax, cl
sub edx, eax
movss xmm1, dword [ebp - 0xc8]
movaps xmm0, xmm1
subss xmm0, dword [0x5fb544]
mulss xmm0, dword [0x60bdd8]
cvttss2si eax, xmm0
add edx, eax
mov eax, dword [ebp - 0x60]
comiss xmm1, dword [0x60bd84]
lea ecx, [eax + 0x3f]
jbe 0x5206df
cmp edx, 0x190
mov esi, 0x190
cmovg esi, edx
add esi, edi
jmp 0x5206e2
lea esi, [edx + edi]
mov edx, dword [ebp - 0x90]
add ecx, edi
add edx, 0x167
sar ecx, 6
add eax, edx
add ecx, 2
sar eax, 6
cmp ecx, eax
cmovle ecx, eax
mov edi, dword [ebp - 0x44]
lea eax, [esi + 0x20]
sar eax, 6
cmp ecx, eax
cmovg eax, ecx
cmp edi, eax
cmovl eax, edi
sub esi, dword [ebp - 0xcc]
mov ecx, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x94]
shl ecx, 6
mov dword [ebp - 0xc0], esi
test eax, eax
je 0x52073d
mov dword [ebp - 0x34], 2
mov ecx, 0x80
mov edx, dword [ebp + 8]
xor esi, esi
test eax, eax
cmove esi, dword [ebp - 0xc0]
mov eax, dword [edx + 0xdc]
cmp eax, 0x3ca
jge 0x520777
movss xmm1, dword [0x619e48]
inc eax
mov dword [edx + 0xdc], eax
add eax, 0x14
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
jmp 0x52077f
movss xmm1, dword [0x5fb518]
cmp dword [edx + 0x34], 0
je 0x5207f4
sub ecx, dword [ebp - 0xcc]
mov eax, dword [edx + 0xd0]
add eax, ecx
mov ecx, dword [ebp - 0x20]
shl esi, cl
mov ecx, dword [ebp + 8]
mov dword [edx + 0xd0], eax
mov edx, dword [edx + 0xd4]
sub esi, edx
sub esi, dword [ecx + 0xd8]
movd xmm0, esi
mov esi, dword [ebp + 8]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvttss2si ecx, xmm0
add ecx, edx
mov dword [esi + 0xd4], ecx
neg ecx
mov dword [esi + 0xd8], ecx
test eax, eax
jns 0x5207f4
cdq
xor ecx, ecx
and edx, 0x3f
mov dword [esi + 0xd0], ecx
add eax, edx
sar eax, 6
neg eax
cmp dword [ebp - 0x94], ecx
cmovne eax, ecx
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp edi, eax
cmovl eax, edi
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
call fcn.00530280
add esp, 8
mov edi, dword [ebp - 0x24]
mov eax, edi
call fcn.00550610
mov esi, esp
mov eax, edi
mov dword [ebp - 0x20], esi
call fcn.00550610
mov eax, edi
mov dword [ebp - 0xb4], esp
call fcn.00550610
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x44], esp
push dword [ebp - 0x14]
shl edi, 6
mov dword [ebp - 0xc0], edi
call fcn.005349a0
mov edx, edi
add esp, 4
sub edx, eax
dec edx
cmp dword [ebp - 0x48], 0
je 0x52086d
mov eax, dword [ebp - 0x18]
cmp eax, 2
jl 0x52086d
lea eax, [eax*8 + 0x10]
cmp edx, eax
jl 0x52086d
mov eax, 8
jmp 0x52086f
xor eax, eax
mov ecx, dword [ebp - 8]
sub edx, eax
mov dword [ebp - 0x90], eax
dec ecx
mov eax, dword [ebp - 0xd8]
cmp dword [eax], 0
je 0x5208ea
mov ecx, dword [ebp - 0xc]
imul eax, ecx, 0x7d00
cmp dword [ebp - 0x9c], eax
jge 0x52089e
mov ecx, 0xd
jmp 0x5208dc
imul eax, ecx, 0xbb80
cmp dword [ebp - 0x9c], eax
jge 0x5208b3
mov ecx, 0x10
jmp 0x5208dc
imul eax, ecx, 0xea60
cmp dword [ebp - 0x9c], eax
jge 0x5208c8
mov ecx, 0x12
jmp 0x5208dc
imul eax, ecx, 0x13880
xor ecx, ecx
cmp dword [ebp - 0x9c], eax
setge cl
add ecx, 0x13
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x98]
cmp eax, ecx
cmovg ecx, eax
mov eax, dword [ebp + 8]
mov edi, 1
cmp dword [eax + 0x40], 0
cmovne ecx, edi
add eax, 0xe8
push ecx
mov ecx, dword [ebp + 8]
push dword [ecx + 0x5c]
lea ecx, [ebp - 0xf4]
push edi
push dword [ebp - 0x14]
mov edi, dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x44]
push esi
push dword [ebp - 0xb4]
push ecx
push edx
lea ecx, [ebp - 0xe8]
push ecx
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0xa8]
push dword [ebp - 0x5c]
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.00535650
mov esi, eax
add esp, 0x4c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x52096b
lea edx, [eax - 1]
mov ecx, esi
cmp edx, esi
cmovg ecx, edx
inc eax
cmp eax, ecx
jl 0x52096d
cmp edx, esi
mov eax, esi
cmovg eax, edx
jmp 0x52096d
mov eax, esi
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
mov dword [ecx + 0x5c], eax
push dword [ebp - 0x20]
push dword [ebp - 0x58]
push dword [ebp - 0x2c]
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.00528fb0
mov eax, dword [ebp - 0x54]
add esp, 0x20
call fcn.00550610
cmp dword [ebp - 0xc], 2
mov ecx, esp
jne 0x5209af
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x8c]
lea eax, [eax + edx*4]
jmp 0x5209b1
xor eax, eax
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 8]
add edx, 0x4c
push dword [edi + 0x44]
push dword [edi + 0x48]
push dword [edi + 0x18]
mov edi, dword [ebp - 0xc0]
push edx
mov edx, dword [ebp - 0x4c]
push esi
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x90]
sub edi, esi
push dword [ebp - 0x14]
push dword [ebp - 0xf4]
push edi
mov edi, dword [ebp + 8]
push edx
push dword [edi + 0xe8]
push dword [ebp - 0xe8]
push dword [edi + 0x50]
push dword [ebp - 0x28]
push dword [ebp - 0xb4]
push dword [ebp - 0x78]
push ecx
push eax
push dword [ebp - 0x40]
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push 1
call fcn.00525ef0
add esp, 0x5c
test esi, esi
je 0x520a35
xor eax, eax
cmp dword [edi + 0x74], 2
push 1
setl al
push eax
push dword [ebp - 0x14]
call fcn.0052fd90
add esp, 0xc
mov edx, dword [ebp - 0x14]
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x10]
bsr ecx, dword [edx + 0x1c]
push edx
shl eax, 3
inc ecx
sub eax, dword [edx + 0x14]
add eax, ecx
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x20]
push dword [ebp - 0x58]
push dword [ebp - 0x2c]
push dword [ebp - 8]
push esi
push dword [ebp - 0x1c]
call fcn.00528e80
push dword [ebp - 0x68]
push 0
push dword [ebp - 0xa4]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0xa4]
add esp, 0x34
movss xmm1, dword [0x5fb5a8]
xor edi, edi
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x90], edi
lea esi, [eax + esi*4]
mov eax, dword [ebp - 0x24]
nop word [eax + eax]
cmp dword [ebp - 0x10], ecx
jge 0x520afd
mov edx, dword [ebp - 0x58]
mov eax, esi
sub edx, dword [ebp - 0xa4]
sub ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x94]
nop dword [eax]
movss xmm0, dword [0x619e40]
minss xmm0, dword [edx + eax]
comiss xmm1, xmm0
jbe 0x520ad5
movaps xmm0, xmm1
movss dword [eax], xmm0
add eax, 4
sub ecx, 1
jne 0x520ac0
mov eax, dword [ebp - 0x24]
mov edx, edi
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x94], edi
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
jmp 0x520b03
mov edx, dword [ebp - 0x94]
inc edi
add esi, eax
mov dword [ebp - 0x90], edi
cmp edi, dword [ebp - 0xc]
jl 0x520aa0
mov esi, dword [ebp - 0x2c]
test edx, edx
je 0x520b35
mov ecx, dword [ebp - 0x54]
test ecx, ecx
jle 0x520b35
lea ecx, [ecx*4]
mov eax, 0xc1e00000
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x64], 2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x98]
movss xmm0, dword [ebp - 0xc4]
mov dword [ecx + 0x68], edx
mov edx, dword [ebp - 0xa0]
movss dword [ecx + 0x6c], xmm0
mov dword [ecx + 0x70], edx
jne 0x520b70
cmp dword [ebp - 0xc], 1
jne 0x520b70
push eax
add eax, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x48], 0
mov edi, dword [ebp - 0x6c]
jne 0x520b9a
push dword [ebp - 0x68]
push edi
push dword [ebp - 0xb8]
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0x68]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
jmp 0x520d09
mov eax, dword [ebp - 0xd0]
xor edx, edx
test eax, eax
jle 0x520d09
cmp eax, 0x10
jb 0x520c55
mov eax, dword [ebp - 0x68]
lea ecx, [eax - 4]
add eax, 0xfffffffc
add eax, esi
add ecx, edi
cmp edi, eax
ja 0x520bcc
cmp ecx, esi
jae 0x520c59
mov edi, dword [ebp - 0xd0]
mov eax, edi
and eax, reloc.WS2_32.dll_ntohs
jns 0x520be0
dec eax
or eax, 0xfffffff0
inc eax
mov ecx, dword [ebp - 0x6c]
sub edi, eax
add esi, 0x30
mov dword [ebp - 0xc4], edi
add ecx, 0x10
movups xmm0, xmmword [esi - 0x30]
mov eax, ecx
add edx, 0x10
movups xmm1, xmmword [ecx - 0x10]
sub eax, dword [ebp - 0x68]
lea esi, [esi + 0x40]
minps xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
movups xmm0, xmmword [eax]
mov eax, edx
movups xmm1, xmmword [ecx]
minps xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm0, xmmword [esi - 0x50]
movups xmm1, xmmword [ecx + 0x10]
minps xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
movups xmm0, xmmword [esi - 0x40]
movups xmm1, xmmword [ecx + 0x20]
minps xmm1, xmm0
movups xmmword [ecx + 0x20], xmm1
add ecx, 0x40
cmp edx, dword [ebp - 0xc4]
jl 0x520bf1
mov esi, dword [ebp - 0xd0]
mov edi, dword [ebp - 0x6c]
cmp eax, esi
jge 0x520d09
jmp 0x520c5f
mov esi, eax
jmp 0x520c5f
mov esi, dword [ebp - 0xd0]
mov eax, esi
sub eax, edx
cmp eax, 4
jl 0x520ce6
mov ecx, dword [ebp - 0x2c]
lea eax, [edi + 4]
neg dword [ebp - 0x68]
lea eax, [eax + edx*4]
mov edi, dword [ebp - 0x68]
sub esi, edx
sub esi, 4
add ecx, 0xc
shr esi, 2
inc esi
lea ecx, [ecx + edx*4]
lea edx, [edx + esi*4]
nop dword [eax]
movss xmm0, dword [eax - 4]
lea eax, [eax + 0x10]
lea ecx, [ecx + 0x10]
minss xmm0, dword [ecx - 0x1c]
movss dword [eax - 0x14], xmm0
movss xmm0, dword [eax - 0x10]
minss xmm0, dword [edi + eax - 0x10]
movss dword [eax - 0x10], xmm0
movss xmm0, dword [eax - 0xc]
minss xmm0, dword [ecx - 0x14]
movss dword [eax - 0xc], xmm0
movss xmm0, dword [eax - 8]
minss xmm0, dword [ecx - 0x10]
movss dword [eax - 8], xmm0
sub esi, 1
jne 0x520c90
mov edi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
mov esi, dword [ebp - 0xd0]
jmp 0x520ceb
mov ecx, dword [ebp - 0x68]
neg ecx
cmp edx, esi
jge 0x520d09
lea eax, [edi + edx*4]
movss xmm0, dword [eax]
lea eax, [eax + 4]
minss xmm0, dword [ecx + eax - 4]
inc edx
movss dword [eax - 4], xmm0
cmp edx, esi
jl 0x520cf2
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 8]
mov esi, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xb8]
sub edi, dword [ebp - 0xb8]
add edx, 0xfffffffc
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x80]
add eax, esi
mov dword [ebp - 0x3c], esi
lea esi, [esi + ecx*4]
mov dword [ebp - 0xb4], 0
mov ecx, dword [ebp - 0x24]
add esi, 0xfffffffc
add ecx, edx
mov dword [ebp - 0xa4], 0
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc0], ecx
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
jle 0x520e8d
cmp dword [ebp - 0x10], 4
jb 0x520e47
mov eax, dword [ebp - 0x6c]
lea edi, [edx + eax]
add eax, esi
mov dword [ebp - 0xc4], edi
cmp edi, esi
ja 0x520db3
cmp eax, edx
jae 0x520e44
mov edx, dword [ebp - 0x2c]
add edx, esi
cmp edi, edx
mov edx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x2c]
ja 0x520dd0
add edi, edx
mov dword [ebp - 0xa0], edi
cmp eax, edi
jae 0x520e44
jmp 0x520dd8
add edi, edx
mov dword [ebp - 0xa0], edi
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0xa0]
add eax, esi
cmp edx, eax
ja 0x520deb
cmp esi, edi
jae 0x520e44
mov edx, dword [ebp - 0x10]
mov eax, edx
and eax, reloc.WS2_32.dll_closesocket
jns 0x520dfc
dec eax
or eax, 0xfffffffc
inc eax
sub edx, eax
nop
add ecx, 4
mov esi, ecx
cmp ecx, edx
jl 0x520e00
lea eax, [edx + 3]
cdq
and edx, 3
add edx, eax
xor eax, eax
sar edx, 2
shl edx, 4
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x3c]
mov ecx, edx
shr ecx, 2
mov eax, 0xc1e00000
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xc4]
shr edx, 2
mov ecx, edx
rep stosd dword es:[edi], eax
mov ecx, esi
cmp esi, dword [ebp - 0x10]
jge 0x520e87
mov edi, dword [ebp - 0x54]
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xb8]
add eax, ecx
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov ecx, dword [ebp - 0xc0]
mov dword [ecx + eax], 0
lea eax, [eax + 4]
mov dword [eax - 4], 0xc1e00000
mov dword [edi + eax - 4], 0xc1e00000
sub edx, 1
jne 0x520e63
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x6c], edi
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 8]
mov ecx, esi
cmp esi, dword [ebp - 0x30]
jge 0x520faa
cmp dword [ebp - 0x90], 4
jb 0x520f5e
mov esi, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x98]
lea edi, [eax + esi]
add esi, edx
mov dword [ebp - 0xc4], edi
cmp edi, edx
ja 0x520ec8
cmp esi, eax
jae 0x520f5e
mov eax, dword [ebp - 0x2c]
add eax, edx
cmp edi, eax
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
ja 0x520ee5
add edi, eax
mov dword [ebp - 0xa0], edi
cmp esi, edi
jae 0x520f5e
jmp 0x520eed
add edi, eax
mov dword [ebp - 0xa0], edi
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0xa0]
add esi, edx
cmp eax, esi
ja 0x520f00
cmp edx, edi
jae 0x520f5e
mov eax, dword [ebp - 0x90]
and eax, reloc.WS2_32.dll_closesocket
jns 0x520f12
dec eax
or eax, 0xfffffffc
inc eax
mov edx, dword [ebp - 0x30]
sub edx, eax
add ecx, 4
mov esi, ecx
cmp ecx, edx
jl 0x520f17
sub edx, dword [ebp - 8]
lea eax, [edx + 3]
cdq
and edx, 3
add edx, eax
xor eax, eax
sar edx, 2
shl edx, 4
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x28]
mov ecx, edx
shr ecx, 2
mov eax, 0xc1e00000
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xc4]
shr edx, 2
mov ecx, edx
rep stosd dword es:[edi], eax
mov ecx, esi
cmp esi, dword [ebp - 0x30]
jge 0x520fa4
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xb8]
add eax, ecx
mov edi, dword [ebp - 0xb0]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x30]
sub edx, ecx
mov ecx, dword [ebp - 0x20]
nop dword [eax]
mov dword [ecx + eax], 0
lea eax, [eax + 4]
mov dword [eax - 4], 0xc1e00000
mov dword [edi + eax - 4], 0xc1e00000
sub edx, 1
jne 0x520f80
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x6c], edi
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
add dword [ebp - 0xa4], esi
mov edi, dword [ebp - 0x24]
add eax, edi
mov ecx, dword [ebp - 0xb4]
add edx, edi
mov esi, dword [ebp - 0x44]
inc ecx
add dword [ebp - 0x98], edi
add esi, edi
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], edx
cmp ecx, dword [ebp - 0x64]
jl 0x520d84
cmp dword [ebp - 0x48], 0
jne 0x521002
cmp dword [ebp - 0xf0], 0
jne 0x521002
mov eax, dword [ebp + 8]
mov dword [eax + 0x74], 0
jmp 0x521008
mov eax, dword [ebp + 8]
inc dword [eax + 0x74]
mov esi, dword [ebp - 0x14]
push esi
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x4c], ecx
call fcn.0052feb0
mov eax, dword [ebp - 0x34]
add esp, 4
cmp dword [esi + 0x2c], 0
mov ecx, 0xfffffffd
cmovne eax, ecx
jmp 0x52102e
or eax, 0xffffffff
lea esp, [ebp - 0x12c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret