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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
mov eax, dword [0x5d7008]
xor eax, esp
mov dword [esp + 0x154], eax
push esi
push edi
mov dword [esp + 0x98], edx
mov edx, ecx
mov dword [esp + 0xc], edx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [eax + 8]
movq xmm0, qword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, ecx
add eax, esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x30], eax
add eax, 0xfffffff8
mov dword [esp + 0xa8], eax
mov eax, dword [edx + 0xbc]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x158], edi
mov edi, 0xfff
mov dword [esp + 0x90], esi
mov esi, dword [edx + 4]
add esi, dword [edx + 0xc]
cmp eax, edi
mov dword [esp + 0xac], ecx
mov ecx, 0x5b5e48
cmovb edi, eax
movq qword [esp + 0x150], xmm0
xor eax, eax
cmp dword [edx + 0xb8], 3
mov dword [esp + 0xb4], edi
setne al
mov edi, dword [esp + 0xac]
add eax, 3
mov dword [esp + 0x88], eax
mov eax, dword [edx + 0x1c]
mov dword [esp + 0xb0], eax
mov eax, dword [edx + 0x74]
mov dword [esp + 0x7c], eax
mov eax, dword [edx + 0x70]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0xc4]
test eax, eax
push edi
cmovne ecx, eax
xor edx, edx
movups xmm0, xmmword [ecx]
movups xmmword [esp + 0xf4], xmm0
mov eax, dword [ecx + 0x10]
lea ecx, [esp + 0xf4]
mov dword [esp + 0x104], eax
mov dword [esp + 0x110], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
call fcn.005178e0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xa0]
push 2
push edi
lea ecx, [ecx + 0x60]
call fcn.00516e80
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x9c], esi
sete al
add eax, dword [esp + 0x9c]
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0xa8]
jae 0x51c8df
movq xmm0, qword [esp + 0xd0]
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0xb8], ecx
movq qword [esp + 0xe0], xmm0
nop dword [eax + eax]
sub eax, dword [esp + 0x90]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x8c], eax
mov eax, 0
sete al
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
mov esi, dword [eax + 0x1c]
mov ecx, dword [eax + 0xb8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x5c], edx
lea eax, [esi + edx]
cmp dword [esp + 0x24], eax
jae 0x51a406
xor edx, edx
jmp 0x51b187
mov edi, dword [esp + 0x24]
sub edi, edx
cmp esi, edi
jae 0x51a440
push 0
push ecx
push dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
add edx, esi
call fcn.005174d0
mov ecx, dword [esp + 0x40]
add esi, eax
mov edx, dword [esp + 0x68]
add esp, 0xc
cmp esi, edi
jb 0x51a410
mov esi, dword [esp + 0xc]
mov edx, dword [esi + 4]
mov dword [esp + 0x5c], edx
jmp 0x51a444
mov esi, dword [esp + 0xc]
add ecx, 0xfffffffd
mov dword [esi + 0x1c], edi
cmp ecx, 4
ja case.0x51a453.4
jmp dword [ecx*4 + 0x51c930]
mov eax, dword [esi + 0xbc]
mov ecx, 0xfff
mov esi, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x78], 0
cmovb ecx, eax
mov dword [esp + 0x58], 0
mov eax, esi
mov dword [esp + 0x34], ecx
sub eax, edx
mov ecx, 0x20
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc]
sub ecx, dword [eax + 0xb0]
mov edx, dword [eax + 0x4c]
imul eax, dword [esi], 0x9e3779b1
shr eax, cl
mov edi, dword [edx + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [edx + 0x54]
mov ecx, dword [edx + 0xac]
mov esi, dword [edx + 0xc]
dec ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, 1
shl eax, cl
dec eax
mov dword [esp + 0x44], eax
mov eax, edx
sub eax, dword [esp + 0x44]
cmp dword [esp + 0x44], edx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, eax
push dword [eax + 0xa8]
call fcn.00516c10
mov edx, dword [esp + 0x3c]
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
mov ecx, 1
cmovne ecx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x44]
and ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
add eax, 4
mov dword [esp + 0x14], eax
lea eax, [edx + 9]
mov dword [esp + 0x18], eax
xor eax, eax
mov ecx, dword [ecx + 0xb4]
mov dword [esp + 0x10], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x88]
dec eax
sub edx, esi
mov dword [esp + 0x48], eax
lea eax, [ecx + 3]
mov dword [esp + 0x20], eax
mov eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov dword [esp + 0x60], edx
cmp eax, 3
jne 0x51a57f
mov esi, dword [esp + 0x150]
dec esi
jmp 0x51a586
mov esi, dword [esp + eax*4 + 0x150]
mov eax, dword [esp + 0x38]
sub eax, esi
mov dword [esp + 0x64], eax
lea eax, [esi - 1]
cmp eax, edx
jae 0x51a642
mov eax, dword [esp + 0x24]
neg esi
xor ecx, ecx
mov edx, dword [eax]
mov eax, dword [esi + eax]
shl eax, 8
shl edx, 8
cmp edx, eax
mov eax, dword [esp + 0x1c]
sete cl
cmp dword [esp + 0x64], eax
sbb eax, eax
inc eax
test eax, ecx
je 0x51a624
mov eax, dword [esp + 0x24]
push dword [esp + 0x30]
lea edx, [eax + 3]
add edx, esi
lea ecx, [eax + 3]
call fcn.00516ad0
mov edx, dword [esp + 0x4c]
add esp, 4
lea esi, [eax + 3]
cmp esi, edx
jbe 0x51a628
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x74]
mov dword [esp + 0x48], esi
mov dword [eax + edx*8], ecx
xor ecx, ecx
mov dword [eax + edx*8 + 4], esi
inc edx
mov eax, dword [esp + 0x24]
add eax, esi
mov dword [esp + 0x10], edx
cmp eax, dword [esp + 0x30]
sete cl
cmp dword [esp + 0x34], esi
sbb eax, eax
neg eax
or ecx, eax
jne 0x51b183
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, ecx
jae 0x51a648
mov edx, dword [esp + 0x60]
jmp 0x51a570
mov edx, dword [esp + 0x48]
jmp 0x51a62c
cmp edx, 3
jae 0x51a6ec
push dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xb4]
call fcn.00517450
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x38]
sub eax, esi
cmp esi, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
sbb edx, edx
inc edx
cmp eax, 0x40000
sbb ecx, ecx
neg ecx
test ecx, edx
je 0x51a6ec
mov edx, dword [esp + 0x5c]
push dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
lea edx, [esi + edx]
call fcn.00516ad0
mov esi, eax
add esp, 4
cmp esi, 3
jb 0x51a6ec
mov eax, dword [esp + 0x50]
xor edx, edx
mov ecx, dword [esp + 0x1c]
add ecx, 2
mov dword [esp + 0x48], esi
mov dword [esp + 0x10], 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
add ecx, esi
mov dword [eax + 4], esi
cmp ecx, dword [esp + 0x30]
sete dl
cmp dword [esp + 0x34], esi
sbb eax, eax
neg eax
or edx, eax
je 0x51a6ec
mov eax, dword [esp + 0x38]
mov edx, 1
inc eax
jmp 0x51b17c
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x38]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x51a842
dec eax
mov dword [esp + 0x2c], eax
cmp edi, dword [esp + 0x40]
jb 0x51a842
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
and eax, edi
mov edx, dword [esp + 0x5c]
push dword [esp + 0x30]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x7c], ecx
mov esi, ecx
mov ecx, dword [esp + 0x28]
cmovb esi, dword [esp + 0x7c]
add edx, edi
mov dword [esp + 0x38], eax
lea edx, [edx + esi]
lea ecx, [esi + ecx]
call fcn.00516ad0
add esi, eax
add esp, 4
cmp esi, dword [esp + 0x48]
jbe 0x51a7ae
mov eax, dword [esp + 0x18]
lea ecx, [esi + edi]
mov edx, dword [esp + 0x50]
sub eax, edi
cmp esi, eax
mov dword [esp + 0x48], esi
mov eax, dword [esp + 0x38]
cmovbe ecx, dword [esp + 0x18]
sub eax, edi
mov dword [esp + 0x18], ecx
add eax, 2
mov ecx, dword [esp + 0x10]
mov dword [edx + ecx*8], eax
mov eax, edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*8 + 4], esi
inc ecx
mov eax, dword [esp + 0x24]
add eax, esi
mov dword [esp + 0x10], ecx
xor ecx, ecx
cmp eax, dword [esp + 0x30]
mov eax, 0x1000
sete cl
cmp eax, esi
sbb eax, eax
neg eax
or ecx, eax
jne 0x51a814
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
add eax, edi
mov al, byte [eax + esi]
cmp al, byte [esi + ecx]
jae 0x51a7dd
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x78], esi
mov dword [eax], edi
cmp edi, dword [esp + 0x3c]
jbe 0x51a829
mov eax, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x4c], eax
jmp 0x51a7f5
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], esi
mov dword [ecx], edi
cmp edi, dword [esp + 0x3c]
jbe 0x51a83a
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x51a702
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
jmp 0x51b169
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
jmp 0x51b169
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x10]
jmp 0x51b169
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
jmp 0x51b169
mov eax, dword [esi + 0xbc]
mov ecx, 0xfff
mov esi, dword [esi + 0x4c]
cmp eax, ecx
cmovb ecx, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x24]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xb0]
call fcn.00516bb0
mov edi, dword [esi + eax*4]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x58], 0
lea eax, [esi + eax*4]
mov dword [esp + 0x78], 0
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x54]
mov ecx, dword [edx + 0xac]
mov esi, dword [edx + 0xc]
dec ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, 1
shl eax, cl
dec eax
mov dword [esp + 0x44], eax
mov eax, edx
sub eax, dword [esp + 0x44]
cmp dword [esp + 0x44], edx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, eax
push dword [eax + 0xa8]
call fcn.00516c10
mov edx, dword [esp + 0x18]
add esp, 4
test eax, eax
mov dword [esp + 0x64], eax
mov ecx, 1
cmovne ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x44]
and ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], eax
add eax, 4
mov dword [esp + 0x4c], eax
lea eax, [edx + 9]
mov dword [esp + 0x18], eax
xor edx, edx
mov ecx, dword [ecx + 0xb4]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x88]
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], eax
lea eax, [ecx + 3]
mov dword [esp + 0x20], eax
mov eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
cmp eax, 3
jne 0x51a974
mov esi, dword [esp + 0x150]
dec esi
jmp 0x51a97b
mov esi, dword [esp + eax*4 + 0x150]
mov eax, dword [esp + 0x14]
sub eax, esi
mov dword [esp + 0x60], eax
lea eax, [esi - 1]
cmp eax, dword [esp + 0x1c]
jae 0x51aa1d
mov eax, dword [esp + 0x24]
neg esi
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov eax, dword [eax]
cmp eax, dword [esi + edx]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x10]
sete cl
cmp dword [esp + 0x60], eax
sbb eax, eax
inc eax
test eax, ecx
je 0x51aa19
mov eax, dword [esp + 0x24]
push dword [esp + 0x30]
lea edx, [eax + 4]
add edx, esi
lea ecx, [eax + 4]
call fcn.00516ad0
mov edx, dword [esp + 0x14]
add esp, 4
lea esi, [eax + 4]
cmp esi, dword [esp + 0x2c]
jbe 0x51aa19
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x74]
mov dword [esp + 0x2c], esi
mov dword [eax + edx*8], ecx
xor ecx, ecx
mov dword [eax + edx*8 + 4], esi
inc edx
mov eax, dword [esp + 0x24]
add eax, esi
mov dword [esp + 0x10], edx
cmp eax, dword [esp + 0x30]
sete cl
cmp dword [esp + 0x68], esi
sbb eax, eax
neg eax
or ecx, eax
jne 0x51b183
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, ecx
jb 0x51a965
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x51b161
dec eax
mov dword [esp + 0x48], eax
cmp edi, dword [esp + 0x54]
jb 0x51b161
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
and eax, edi
mov edx, dword [esp + 0x5c]
push dword [esp + 0x30]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x7c]
cmp dword [esp + 0x5c], ecx
mov esi, ecx
mov ecx, dword [esp + 0x28]
cmovb esi, dword [esp + 0x5c]
add edx, edi
mov dword [esp + 0x44], eax
lea edx, [edx + esi]
lea ecx, [esi + ecx]
call fcn.00516ad0
mov edx, dword [esp + 0x14]
add esi, eax
add esp, 4
cmp esi, dword [esp + 0x2c]
jbe 0x51aaea
mov eax, dword [esp + 0x18]
lea ecx, [esi + edi]
sub eax, edi
mov dword [esp + 0x2c], esi
cmp esi, eax
mov eax, dword [esp + 0x14]
cmovbe ecx, dword [esp + 0x18]
sub eax, edi
add eax, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x50]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x24]
add eax, esi
mov dword [ecx + edx*8 + 4], esi
inc edx
xor ecx, ecx
cmp eax, dword [esp + 0x30]
mov eax, 0x1000
mov dword [esp + 0x10], edx
sete cl
cmp eax, esi
sbb eax, eax
neg eax
or ecx, eax
jne 0x51ab4c
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
add eax, edi
mov al, byte [eax + esi]
cmp al, byte [esi + ecx]
jae 0x51ab1d
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], esi
mov dword [eax], edi
cmp edi, dword [esp + 0x34]
jbe 0x51b153
mov eax, dword [esp + 0x40]
add eax, 4
mov dword [esp + 0x38], eax
jmp 0x51ab39
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x78], esi
mov dword [ecx], edi
cmp edi, dword [esp + 0x34]
jbe 0x51b159
mov eax, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x51aa44
jmp 0x51b161
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
jmp 0x51b161
mov eax, dword [esi + 0xbc]
mov ecx, 0xfff
mov esi, dword [esi + 0x4c]
cmp eax, ecx
cmovb ecx, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x24]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xb0]
call fcn.00516be0
mov edi, dword [esi + eax*4]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x58], 0
lea eax, [esi + eax*4]
mov dword [esp + 0x78], 0
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x54]
mov ecx, dword [edx + 0xac]
mov esi, dword [edx + 0xc]
dec ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, 1
shl eax, cl
dec eax
mov dword [esp + 0x44], eax
mov eax, edx
sub eax, dword [esp + 0x44]
cmp dword [esp + 0x44], edx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, eax
push dword [eax + 0xa8]
call fcn.00516c10
mov edx, dword [esp + 0x18]
add esp, 4
test eax, eax
mov dword [esp + 0x64], eax
mov ecx, 1
cmovne ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x44]
and ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], eax
add eax, 4
mov dword [esp + 0x4c], eax
lea eax, [edx + 9]
mov dword [esp + 0x18], eax
xor edx, edx
mov ecx, dword [ecx + 0xb4]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x88]
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], eax
lea eax, [ecx + 3]
mov dword [esp + 0x20], eax
mov eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
nop dword [eax + eax]
cmp eax, 3
jne 0x51ac7f
mov esi, dword [esp + 0x150]
dec esi
jmp 0x51ac86
mov esi, dword [esp + eax*4 + 0x150]
mov eax, dword [esp + 0x14]
sub eax, esi
mov dword [esp + 0x60], eax
lea eax, [esi - 1]
cmp eax, dword [esp + 0x1c]
jae 0x51ad28
mov eax, dword [esp + 0x24]
neg esi
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov eax, dword [eax]
cmp eax, dword [esi + edx]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x10]
sete cl
cmp dword [esp + 0x60], eax
sbb eax, eax
inc eax
test eax, ecx
je 0x51ad24
mov eax, dword [esp + 0x24]
push dword [esp + 0x30]
lea edx, [eax + 4]
add edx, esi
lea ecx, [eax + 4]
call fcn.00516ad0
mov edx, dword [esp + 0x14]
add esp, 4
lea esi, [eax + 4]
cmp esi, dword [esp + 0x2c]
jbe 0x51ad24
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x74]
mov dword [esp + 0x2c], esi
mov dword [eax + edx*8], ecx
xor ecx, ecx
mov dword [eax + edx*8 + 4], esi
inc edx
mov eax, dword [esp + 0x24]
add eax, esi
mov dword [esp + 0x10], edx
cmp eax, dword [esp + 0x30]
sete cl
cmp dword [esp + 0x68], esi
sbb eax, eax
neg eax
or ecx, eax
jne 0x51b183
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, ecx
jb 0x51ac70
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x51b161
nop
dec eax
mov dword [esp + 0x48], eax
cmp edi, dword [esp + 0x54]
jb 0x51b161
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
and eax, edi
mov edx, dword [esp + 0x5c]
push dword [esp + 0x30]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x7c]
cmp dword [esp + 0x5c], ecx
mov esi, ecx
mov ecx, dword [esp + 0x28]
cmovb esi, dword [esp + 0x5c]
add edx, edi
mov dword [esp + 0x44], eax
lea edx, [edx + esi]
lea ecx, [esi + ecx]
call fcn.00516ad0
mov edx, dword [esp + 0x14]
add esi, eax
add esp, 4
cmp esi, dword [esp + 0x2c]
jbe 0x51adfa
mov eax, dword [esp + 0x18]
lea ecx, [esi + edi]
sub eax, edi
mov dword [esp + 0x2c], esi
cmp esi, eax
mov eax, dword [esp + 0x14]
cmovbe ecx, dword [esp + 0x18]
sub eax, edi
add eax, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x50]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x24]
add eax, esi
mov dword [ecx + edx*8 + 4], esi
inc edx
xor ecx, ecx
cmp eax, dword [esp + 0x30]
mov eax, 0x1000
mov dword [esp + 0x10], edx
sete cl
cmp eax, esi
sbb eax, eax
neg eax
or ecx, eax
jne 0x51ab4c
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
add eax, edi
mov al, byte [eax + esi]
cmp al, byte [esi + ecx]
jae 0x51ae2d
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], esi
mov dword [eax], edi
cmp edi, dword [esp + 0x34]
jbe 0x51b153
mov eax, dword [esp + 0x40]
add eax, 4
mov dword [esp + 0x38], eax
jmp 0x51ae49
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x78], esi
mov dword [ecx], edi
cmp edi, dword [esp + 0x34]
jbe 0x51b159
mov eax, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x51ad50
jmp 0x51b161
mov eax, dword [esi + 0xbc]
mov ecx, 0xfff
mov esi, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x78], 0
cmovb ecx, eax
mov dword [esp + 0x34], 0
mov eax, esi
mov dword [esp + 0x68], ecx
sub eax, edx
mov ecx, 0x20
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
sub ecx, dword [eax + 0xb0]
mov edx, dword [eax + 0x4c]
imul eax, dword [esi], 0x9e3779b1
mov esi, dword [esp + 0xc]
shr eax, cl
mov ecx, dword [esi + 0xac]
lea eax, [edx + eax*4]
mov edi, dword [eax]
dec ecx
mov dword [esp + 0x54], eax
mov edx, 1
mov eax, dword [esi + 0x54]
mov esi, dword [esi + 0xc]
shl edx, cl
mov ecx, dword [esp + 0x14]
dec edx
mov dword [esp + 0x58], eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x3c], edx
cmp edx, ecx
sbb edx, edx
and edx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], edx
mov edx, ecx
mov ecx, eax
push dword [eax + 0xa8]
call fcn.00516c10
mov edx, dword [esp + 0x18]
add esp, 4
test eax, eax
mov dword [esp + 0x64], eax
mov ecx, 1
cmovne ecx, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x3c]
and ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], eax
add eax, 4
mov dword [esp + 0x4c], eax
lea eax, [edx + 9]
mov dword [esp + 0x18], eax
xor edx, edx
mov ecx, dword [ecx + 0xb4]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x88]
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], eax
lea eax, [ecx + 3]
mov dword [esp + 0x20], eax
mov eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
cmp eax, 3
jne 0x51af82
mov esi, dword [esp + 0x150]
dec esi
jmp 0x51af89
mov esi, dword [esp + eax*4 + 0x150]
mov eax, dword [esp + 0x14]
sub eax, esi
mov dword [esp + 0x60], eax
lea eax, [esi - 1]
cmp eax, dword [esp + 0x1c]
jae 0x51b02b
mov eax, dword [esp + 0x24]
neg esi
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov eax, dword [eax]
cmp eax, dword [esi + edx]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x10]
sete cl
cmp dword [esp + 0x60], eax
sbb eax, eax
inc eax
test eax, ecx
je 0x51b027
mov eax, dword [esp + 0x24]
push dword [esp + 0x30]
lea edx, [eax + 4]
add edx, esi
lea ecx, [eax + 4]
call fcn.00516ad0
mov edx, dword [esp + 0x14]
add esp, 4
lea esi, [eax + 4]
cmp esi, dword [esp + 0x2c]
jbe 0x51b027
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x74]
mov dword [esp + 0x2c], esi
mov dword [eax + edx*8], ecx
xor ecx, ecx
mov dword [eax + edx*8 + 4], esi
inc edx
mov eax, dword [esp + 0x24]
add eax, esi
mov dword [esp + 0x10], edx
cmp eax, dword [esp + 0x30]
sete cl
cmp dword [esp + 0x68], esi
sbb eax, eax
neg eax
or ecx, eax
jne 0x51b183
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, ecx
jb 0x51af73
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x51b161
dec eax
mov dword [esp + 0x44], eax
cmp edi, dword [esp + 0x48]
jb 0x51b161
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x58]
and eax, edi
mov edx, dword [esp + 0x5c]
push dword [esp + 0x30]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x7c], ecx
mov esi, ecx
mov ecx, dword [esp + 0x28]
cmovb esi, dword [esp + 0x7c]
add edx, edi
mov dword [esp + 0x58], eax
lea edx, [edx + esi]
lea ecx, [esi + ecx]
call fcn.00516ad0
mov edx, dword [esp + 0x14]
add esi, eax
add esp, 4
cmp esi, dword [esp + 0x2c]
jbe 0x51b0fc
mov eax, dword [esp + 0x18]
lea ecx, [esi + edi]
sub eax, edi
mov dword [esp + 0x2c], esi
cmp esi, eax
mov eax, dword [esp + 0x14]
cmovbe ecx, dword [esp + 0x18]
sub eax, edi
add eax, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x50]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x24]
add eax, esi
mov dword [ecx + edx*8 + 4], esi
inc edx
xor ecx, ecx
cmp eax, dword [esp + 0x30]
mov eax, 0x1000
mov dword [esp + 0x10], edx
sete cl
cmp eax, esi
sbb eax, eax
neg eax
or ecx, eax
jne 0x51ab4c
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
add eax, edi
mov al, byte [eax + esi]
cmp al, byte [esi + ecx]
jae 0x51b12b
mov eax, dword [esp + 0x38]
mov dword [esp + 0x78], esi
mov dword [eax], edi
cmp edi, dword [esp + 0x40]
jbe 0x51b153
mov eax, dword [esp + 0x54]
add eax, 4
mov dword [esp + 0x38], eax
jmp 0x51b143
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x34], esi
mov dword [ecx], edi
cmp edi, dword [esp + 0x40]
jbe 0x51b159
mov eax, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x51b052
jmp 0x51b161
lea eax, [esp + 0x1c]
jmp 0x51b165
lea eax, [esp + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff8
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x1c], eax
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
sub eax, ecx
sub ecx, dword [esp + 0x9c]
push eax
push ecx
lea eax, [esp + 0x9c]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0xf8]
push eax
call fcn.005179b0
add esp, 0xc
cmp dword [esp + 0x94], 0
jne 0x51b1d4
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
jmp 0x51c8d2
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x150]
mov esi, dword [esp + 0xc]
push 2
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x158]
mov dword [ecx + 0x14], eax
lea edx, [esi + 0x60]
mov eax, dword [esp + 0x90]
mov dword [ecx + 0x18], edi
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], eax
mov ecx, eax
call fcn.005172a0
mov ecx, dword [esp + 0x80]
add esp, 4
mov edi, dword [esp + 0x50]
mov dword [ecx], eax
mov eax, dword [esp + 0x94]
mov edx, dword [edi + eax*8 - 4]
cmp edx, dword [esp + 0xb4]
jbe 0x51b2c1
mov ecx, dword [esp + 0x8c]
mov eax, dword [edi + eax*8 - 8]
mov edi, ecx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xc4], eax
movaps xmm0, xmmword [esp + 0xc0]
movaps xmmword [esp + 0x130], xmm0
xor ecx, ecx
mov dword [esp + 0x5c], ecx
mov esi, dword [esp + 0x7c]
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [esi + 0x10]
lea ecx, [ecx + eax*4]
test edx, edx
je 0x51c669
mov edx, dword [esp + 0xc4]
xor eax, eax
test edi, edi
sete al
push eax
lea eax, [esp + 0x124]
push eax
call fcn.005169c0
add esp, 8
mov edx, dword [eax + 8]
movq xmm0, qword [eax]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x158], edx
jmp 0x51c67b
push 2
lea edx, [esi + 0x60]
xor ecx, ecx
call fcn.005172a0
mov ecx, dword [esp + 0x80]
add esp, 4
mov edx, dword [esp + 0x88]
mov dword [esp + 0x3c], edx
add eax, dword [ecx]
add ecx, 0x1c
mov dword [esp + 0x64], eax
lea eax, [edx - 1]
nop
mov dword [ecx], 0x40000000
lea ecx, [ecx + 0x1c]
sub eax, 1
jne 0x51b2f0
mov esi, dword [esp + 0x94]
xor ecx, ecx
mov dword [esp + 0x78], ecx
test esi, esi
je 0x51b423
mov eax, dword [edi + ecx*8]
mov ecx, dword [edi + ecx*8 + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x60], ecx
cmp edx, ecx
ja 0x51b412
mov esi, dword [esp + 0x7c]
lea ecx, [eax + 1]
lea eax, [edx*8]
sub eax, edx
add esi, 4
lea eax, [esi + eax*4]
mov dword [esp + 0x58], eax
bsr eax, ecx
mov ecx, dword [esp + 0xc]
lea esi, [edx - 3]
mov edi, 0
mov dword [esp + 0xa0], 0
cmovne edi, eax
cmp dword [ecx + 0x98], 1
jne 0x51b37b
mov ecx, esi
call fcn.00516c40
lea ecx, [edi + 0x10]
shl ecx, 8
add eax, ecx
jmp 0x51b3cc
mov ecx, dword [ecx + 0x6c]
mov ecx, dword [ecx + edi*4]
call fcn.00516c40
mov ecx, dword [esp + 0xc]
shl edi, 8
add edi, dword [ecx + 0x94]
mov ecx, esi
sub edi, eax
call fcn.00516990
mov ecx, dword [esp + 0xc]
lea esi, [eax*4]
mov ecx, dword [ecx + 0x68]
mov ecx, dword [ecx + esi]
call fcn.00516c40
mov ecx, dword [esi + 0x5b5ea8]
mov esi, dword [esp + 0xc]
shl ecx, 8
add ecx, dword [esi + 0x90]
sub ecx, eax
lea eax, [ecx + 0x33]
add eax, edi
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x3c]
add eax, dword [esp + 0x64]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x8c]
mov dword [ecx + 4], edx
inc edx
mov dword [ecx], esi
mov dword [ecx + 8], edi
mov dword [ecx - 4], eax
add ecx, 0x1c
mov dword [esp + 0x58], ecx
lea ecx, [esi + 1]
mov dword [esp + 0x3c], edx
cmp edx, dword [esp + 0x60]
jbe 0x51b344
mov esi, dword [esp + 0x94]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x78]
inc ecx
mov dword [esp + 0x78], ecx
cmp ecx, esi
jb 0x51b313
lea ecx, [edx - 1]
mov edx, 1
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x38], edx
cmp ecx, edx
jb 0x51c5a4
nop dword [eax + eax]
mov ecx, dword [esp + 0x7c]
lea eax, [edx*8]
mov edi, dword [esp + 0x24]
sub eax, edx
add edi, edx
cmp dword [ecx + eax*4 - 0x14], 0
mov dword [esp + 0x1c], edi
lea esi, [ecx + eax*4]
mov dword [esp + 0x3c], esi
jne 0x51b46b
mov eax, dword [esi - 0x10]
inc eax
jmp 0x51b470
mov eax, 1
mov edx, dword [esp + 0xc]
lea ecx, [eax - 1]
push 2
mov dword [esp + 0x2c], eax
lea edx, [edx + 0x60]
call fcn.005172a0
mov esi, dword [esi - 0x1c]
lea ecx, [edi - 1]
sub esi, eax
mov edx, 1
mov eax, dword [esp + 0x10]
add eax, 0x60
push 2
push eax
call fcn.00517220
mov edx, dword [esp + 0x18]
add esi, eax
mov ecx, dword [esp + 0x34]
push 2
lea edx, [edx + 0x60]
call fcn.005172a0
add esp, 0x10
lea ecx, [esi + eax]
mov esi, dword [esp + 0x3c]
cmp ecx, dword [esi]
jg 0x51b4da
mov eax, dword [esp + 0x28]
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0xc], eax
mov dword [esi], ecx
mov edx, dword [esi + 8]
test edx, edx
je 0x51b522
mov ecx, dword [esp + 0x38]
xor eax, eax
cmp dword [esi + 0xc], eax
sete al
sub ecx, edx
mov edx, dword [esi + 4]
push eax
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x80]
lea ecx, [ecx + eax*4]
lea eax, [esp + 0x114]
add ecx, 0x10
push eax
call fcn.005169c0
add esp, 8
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
jmp 0x51b52a
movq xmm0, qword [esi - 0xc]
mov eax, dword [esi - 4]
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], eax
cmp edi, dword [esp + 0xa8]
ja 0x51c58f
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x38], ecx
je 0x51c5a4
mov eax, dword [esi + 8]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esp + 0x6c], ecx
test eax, eax
jne 0x51b56b
mov eax, dword [esi + 0xc]
mov dword [esp + 0x8c], eax
jmp 0x51b576
mov dword [esp + 0x8c], 0
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov esi, dword [esi]
push 2
lea edx, [edx + 0x60]
call fcn.005172a0
add eax, esi
add esp, 4
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x3c]
add eax, 0x10
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xb8]
mov esi, dword [eax + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], eax
lea ecx, [esi + eax]
cmp edi, ecx
jae 0x51b5c5
xor esi, esi
jmp 0x51c33a
mov ecx, dword [esp + 0x48]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x3c], eax
cmp esi, eax
jae 0x51b610
mov edi, eax
push 0
push edx
push dword [esp + 0x38]
lea edx, [esi + ecx]
mov ecx, dword [esp + 0x18]
call fcn.005174d0
mov edx, dword [esp + 0x64]
add esi, eax
mov ecx, dword [esp + 0x54]
add esp, 0xc
cmp esi, edi
jb 0x51b5d7
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov esi, dword [ecx + 4]
mov dword [esp + 0x48], esi
jmp 0x51b616
mov esi, ecx
mov ecx, dword [esp + 0xc]
add edx, 0xfffffffd
mov dword [ecx + 0x1c], eax
cmp edx, 4
ja case.0x51b625.4
jmp dword [edx*4 + 0x51c944]
mov eax, dword [ecx + 0xbc]
mov ecx, 0xfff
cmp eax, ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
cmovb ecx, eax
mov eax, edi
sub eax, esi
mov dword [esp + 0x58], ecx
mov esi, dword [esp + 0xc]
mov ecx, 0x20
mov dword [esp + 0x2c], eax
imul eax, dword [edi], 0x9e3779b1
sub ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0x4c]
shr eax, cl
mov ecx, dword [esi + 0xac]
dec ecx
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x70], eax
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x54]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x68], eax
mov eax, 1
shl eax, cl
dec eax
mov dword [esp + 0x40], eax
mov eax, edx
sub eax, dword [esp + 0x40]
cmp dword [esp + 0x40], edx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, eax
push dword [eax + 0xa8]
call fcn.00516c10
mov edx, dword [esp + 0x30]
add esp, 4
test eax, eax
mov dword [esp + 0x80], eax
mov ecx, 1
cmovne ecx, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x78], ecx
mov ecx, edx
and ecx, dword [esp + 0x40]
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
add eax, 4
mov dword [esp + 0x28], eax
lea eax, [edx + 9]
mov dword [esp + 0x18], eax
xor eax, eax
mov ecx, dword [ecx + 0xb4]
mov dword [esp + 0x10], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x88]
dec eax
mov dword [esp + 0x74], eax
lea eax, [ecx + 3]
mov dword [esp + 0x44], eax
mov eax, ecx
mov ecx, edx
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x44]
sub ecx, esi
mov dword [esp + 0x3c], ecx
cmp eax, 3
jne 0x51b750
mov eax, dword [esp + 0x4c]
mov esi, dword [eax]
dec esi
jmp 0x51b75b
mov ecx, dword [esp + 0x4c]
mov esi, dword [ecx + eax*4]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
sub eax, esi
mov dword [esp + 0x84], eax
lea eax, [esi - 1]
cmp eax, ecx
jae 0x51b81b
mov edx, dword [edi]
neg esi
shl edx, 8
xor ecx, ecx
mov eax, dword [esi + edi]
shl eax, 8
cmp edx, eax
mov eax, dword [esp + 0x80]
sete cl
cmp dword [esp + 0x84], eax
sbb eax, eax
inc eax
test eax, ecx
je 0x51b815
push dword [esp + 0x30]
lea edx, [edi + 3]
add edx, esi
lea ecx, [edi + 3]
call fcn.00516ad0
mov ecx, dword [esp + 0x78]
add esp, 4
mov esi, dword [esp + 0x10]
lea edx, [eax + 3]
cmp edx, ecx
jbe 0x51b821
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x6c]
mov dword [esp + 0x74], edx
mov dword [eax + esi*8], ecx
xor ecx, ecx
mov dword [eax + esi*8 + 4], edx
inc esi
lea eax, [edi + edx]
mov dword [esp + 0x10], esi
cmp eax, dword [esp + 0x30]
sete cl
cmp dword [esp + 0x58], edx
sbb eax, eax
neg eax
or ecx, eax
jne 0x51c33a
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x54]
inc eax
mov dword [esp + 0x54], eax
cmp eax, edx
jae 0x51b827
mov ecx, dword [esp + 0x3c]
jmp 0x51b742
mov esi, dword [esp + 0x10]
jmp 0x51b7f7
mov esi, dword [esp + 0x10]
jmp 0x51b7fb
mov edx, dword [esp + 0x44]
jmp 0x51b7ff
cmp ecx, 3
jae 0x51b8d1
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0xb0]
push edi
call fcn.00517450
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x84], ecx
cmp ecx, dword [esp + 0x78]
mov dword [esp + 0x80], eax
sbb edx, edx
inc edx
cmp eax, 0x40000
sbb ecx, ecx
neg ecx
test ecx, edx
je 0x51b8d1
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x84]
push dword [esp + 0x30]
lea edx, [edx + ecx]
mov ecx, edi
call fcn.00516ad0
add esp, 4
cmp eax, 3
jb 0x51b8d1
mov edx, dword [esp + 0x50]
mov esi, 1
mov ecx, dword [esp + 0x80]
add ecx, 2
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], esi
mov dword [edx], ecx
lea ecx, [edi + eax]
mov dword [edx + 4], eax
xor edx, edx
cmp ecx, dword [esp + 0x30]
sete dl
cmp dword [esp + 0x58], eax
sbb eax, eax
neg eax
or edx, eax
je 0x51b8d1
mov eax, dword [esp + 0x2c]
inc eax
jmp 0x51c333
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x51ba10
mov ecx, dword [esp + 0x20]
nop dword [eax + eax]
dec eax
mov dword [esp + 0x34], eax
cmp ecx, dword [esp + 0x78]
jb 0x51ba0c
mov edx, dword [esp + 0x68]
mov eax, ecx
and eax, dword [esp + 0x40]
push dword [esp + 0x30]
lea eax, [edx + eax*8]
mov edx, dword [esp + 0x68]
cmp dword [esp + 0x64], edx
mov esi, edx
mov edx, dword [esp + 0x4c]
cmovb esi, dword [esp + 0x64]
add edx, ecx
mov dword [esp + 0x40], eax
lea edx, [edx + esi]
lea ecx, [edi + esi]
call fcn.00516ad0
mov edx, dword [esp + 0x24]
add esi, eax
add esp, 4
cmp esi, dword [esp + 0x74]
jbe 0x51b999
mov eax, dword [esp + 0x18]
lea ecx, [edx + esi]
sub eax, edx
mov dword [esp + 0x74], esi
cmp esi, eax
mov eax, dword [esp + 0x2c]
cmovbe ecx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x50]
add eax, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + ecx*8], eax
mov eax, edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*8 + 4], esi
inc ecx
mov dword [esp + 0x10], ecx
lea eax, [edi + esi]
xor ecx, ecx
cmp eax, dword [esp + 0x30]
mov eax, 0x1000
sete cl
cmp eax, esi
sbb eax, eax
neg eax
or ecx, eax
jne 0x51b9f0
mov eax, dword [esp + 0x48]
add eax, edx
mov al, byte [eax + esi]
cmp al, byte [edi + esi]
jae 0x51b9c4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], esi
mov dword [eax], edx
cmp edx, dword [esp + 0x1c]
jbe 0x51b9fa
mov eax, dword [esp + 0x3c]
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x51b9dc
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x64], esi
mov dword [ecx], edx
cmp edx, dword [esp + 0x1c]
jbe 0x51ba04
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x51b8f0
jmp 0x51ba0c
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
jmp 0x51ba0c
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x70]
jmp 0x51ba14
lea eax, [esp + 0x70]
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [esp + 0x18]
jmp 0x51c330
mov eax, dword [ecx + 0xbc]
mov ecx, 0xfff
cmp eax, ecx
cmovb ecx, eax
mov eax, edi
sub eax, esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x2c], eax
mov ecx, edi
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xb0]
mov esi, dword [eax + 0x4c]
call fcn.00516bb0
mov edx, dword [esp + 0xc]
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
lea eax, [esi + eax*4]
mov ecx, dword [edx + 0xac]
mov esi, dword [edx + 0xc]
dec ecx
mov dword [esp + 0x80], eax
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x54]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x64], eax
mov eax, 1
shl eax, cl
dec eax
mov dword [esp + 0x40], eax
mov eax, edx
sub eax, dword [esp + 0x40]
cmp dword [esp + 0x40], edx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, eax
push dword [eax + 0xa8]
call fcn.00516c10
mov edx, dword [esp + 0x30]
add esp, 4
test eax, eax
mov dword [esp + 0x70], eax
mov ecx, 1
cmovne ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x40]
and ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
add eax, 4
mov dword [esp + 0x44], eax
lea eax, [edx + 9]
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, dword [ecx + 0xb4]
mov dword [esp + 0x10], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x88]
dec eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], eax
mov eax, ecx
mov ecx, edx
sub ecx, esi
mov dword [esp + 0x1c], ecx
nop dword [eax]
cmp eax, 3
jne 0x51bb4e
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
dec edx
jmp 0x51bb59
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
lea eax, [edx - 1]
sub esi, edx
cmp eax, ecx
jae 0x51bbd9
mov eax, dword [edi]
neg edx
xor ecx, ecx
cmp eax, dword [edx + edi]
sete cl
cmp esi, dword [esp + 0x70]
sbb eax, eax
inc eax
test eax, ecx
je 0x51bbd9
push dword [esp + 0x30]
add edx, 4
lea ecx, [edi + 4]
add edx, edi
call fcn.00516ad0
add esp, 4
lea edx, [eax + 4]
cmp edx, dword [esp + 0x28]
jbe 0x51bbd9
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x6c]
mov dword [esp + 0x28], edx
mov dword [eax + esi*8], ecx
xor ecx, ecx
mov dword [eax + esi*8 + 4], edx
inc esi
lea eax, [edx + edi]
mov dword [esp + 0x10], esi
cmp eax, dword [esp + 0x30]
sete cl
cmp dword [esp + 0x84], edx
sbb eax, eax
neg eax
or ecx, eax
jne 0x51c33a
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
inc eax
add ecx, 3
mov dword [esp + 0x34], eax
cmp eax, ecx
mov ecx, dword [esp + 0x1c]
jb 0x51bb40
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x51c314
mov ecx, dword [esp + 0x18]
dec eax
mov dword [esp + 0x54], eax
cmp ecx, dword [esp + 0x58]
jb 0x51c314
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x64]
and eax, ecx
push dword [esp + 0x30]
lea eax, [edx + eax*8]
mov edx, dword [esp + 0x6c]
cmp dword [esp + 0x64], edx
mov esi, edx
mov edx, dword [esp + 0x4c]
cmovb esi, dword [esp + 0x64]
add edx, ecx
mov dword [esp + 0x20], eax
lea edx, [edx + esi]
lea ecx, [esi + edi]
call fcn.00516ad0
mov edx, dword [esp + 0x1c]
add esi, eax
add esp, 4
cmp esi, dword [esp + 0x28]
jbe 0x51bcbb
mov eax, dword [esp + 0x20]
lea ecx, [esi + edx]
sub eax, edx
mov dword [esp + 0x28], esi
cmp esi, eax
mov eax, dword [esp + 0x2c]
cmovbe ecx, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x50]
add eax, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + ecx*8], eax
mov eax, edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*8 + 4], esi
inc ecx
mov dword [esp + 0x10], ecx
lea eax, [esi + edi]
xor ecx, ecx
cmp eax, dword [esp + 0x30]
mov eax, 0x1000
sete cl
cmp eax, esi
sbb eax, eax
neg eax
or ecx, eax
jne 0x51bd1d
mov eax, dword [esp + 0x48]
add eax, edx
mov al, byte [eax + esi]
cmp al, byte [esi + edi]
jae 0x51bcea
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], esi
mov dword [eax], edx
cmp edx, dword [esp + 0x3c]
jbe 0x51c306
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x51bd06
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], esi
mov dword [ecx], edx
cmp edx, dword [esp + 0x3c]
jbe 0x51c30c
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x51bc12
jmp 0x51c314
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x51c314
mov eax, dword [ecx + 0xbc]
mov ecx, 0xfff
cmp eax, ecx
cmovb ecx, eax
mov eax, edi
sub eax, esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x2c], eax
mov ecx, edi
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xb0]
mov esi, dword [eax + 0x4c]
call fcn.00516be0
mov edx, dword [esp + 0xc]
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
lea eax, [esi + eax*4]
mov ecx, dword [edx + 0xac]
mov esi, dword [edx + 0xc]
dec ecx
mov dword [esp + 0x80], eax
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x54]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x64], eax
mov eax, 1
shl eax, cl
dec eax
mov dword [esp + 0x40], eax
mov eax, edx
sub eax, dword [esp + 0x40]
cmp dword [esp + 0x40], edx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, eax
push dword [eax + 0xa8]
call fcn.00516c10
mov edx, dword [esp + 0x30]
add esp, 4
test eax, eax
mov dword [esp + 0x70], eax
mov ecx, 1
cmovne ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x40]
and ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
add eax, 4
mov dword [esp + 0x44], eax
lea eax, [edx + 9]
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, dword [ecx + 0xb4]
mov dword [esp + 0x10], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x88]
dec eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], eax
mov eax, ecx
mov ecx, edx
sub ecx, esi
mov dword [esp + 0x1c], ecx
cmp eax, 3
jne 0x51be44
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
dec edx
jmp 0x51be4f
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
lea eax, [edx - 1]
sub esi, edx
cmp eax, ecx
jae 0x51becf
mov eax, dword [edi]
neg edx
xor ecx, ecx
cmp eax, dword [edx + edi]
sete cl
cmp esi, dword [esp + 0x70]
sbb eax, eax
inc eax
test eax, ecx
je 0x51becf
push dword [esp + 0x30]
add edx, 4
lea ecx, [edi + 4]
add edx, edi
call fcn.00516ad0
add esp, 4
lea edx, [eax + 4]
cmp edx, dword [esp + 0x28]
jbe 0x51becf
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x6c]
mov dword [esp + 0x28], edx
mov dword [eax + esi*8], ecx
xor ecx, ecx
mov dword [eax + esi*8 + 4], edx
inc esi
lea eax, [edx + edi]
mov dword [esp + 0x10], esi
cmp eax, dword [esp + 0x30]
sete cl
cmp dword [esp + 0x84], edx
sbb eax, eax
neg eax
or ecx, eax
jne 0x51c33a
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
inc eax
add ecx, 3
mov dword [esp + 0x34], eax
cmp eax, ecx
mov ecx, dword [esp + 0x1c]
jb 0x51be36
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x51c314
mov ecx, dword [esp + 0x18]
nop dword [eax + eax]
dec eax
mov dword [esp + 0x54], eax
cmp ecx, dword [esp + 0x58]
jb 0x51c314
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x64]
and eax, ecx
push dword [esp + 0x30]
lea eax, [edx + eax*8]
mov edx, dword [esp + 0x6c]
cmp dword [esp + 0x64], edx
mov esi, edx
mov edx, dword [esp + 0x4c]
cmovb esi, dword [esp + 0x64]
add edx, ecx
mov dword [esp + 0x20], eax
lea edx, [edx + esi]
lea ecx, [esi + edi]
call fcn.00516ad0
mov edx, dword [esp + 0x1c]
add esi, eax
add esp, 4
cmp esi, dword [esp + 0x28]
jbe 0x51bfbd
mov eax, dword [esp + 0x20]
lea ecx, [esi + edx]
sub eax, edx
mov dword [esp + 0x28], esi
cmp esi, eax
mov eax, dword [esp + 0x2c]
cmovbe ecx, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x50]
add eax, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + ecx*8], eax
mov eax, edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*8 + 4], esi
inc ecx
mov dword [esp + 0x10], ecx
lea eax, [esi + edi]
xor ecx, ecx
cmp eax, dword [esp + 0x30]
mov eax, 0x1000
sete cl
cmp eax, esi
sbb eax, eax
neg eax
or ecx, eax
jne 0x51bd1d
mov eax, dword [esp + 0x48]
add eax, edx
mov al, byte [eax + esi]
cmp al, byte [esi + edi]
jae 0x51bfec
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], esi
mov dword [eax], edx
cmp edx, dword [esp + 0x3c]
jbe 0x51c306
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x51c008
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], esi
mov dword [ecx], edx
cmp edx, dword [esp + 0x3c]
jbe 0x51c30c
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x51bf10
jmp 0x51c314
mov eax, dword [ecx + 0xbc]
mov ecx, 0xfff
cmp eax, ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
cmovb ecx, eax
mov eax, edi
sub eax, esi
mov dword [esp + 0x84], ecx
mov esi, dword [esp + 0xc]
mov ecx, 0x20
mov dword [esp + 0x2c], eax
imul eax, dword [edi], 0x9e3779b1
sub ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0x4c]
shr eax, cl
mov ecx, dword [esi + 0xac]
dec ecx
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x80], eax
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x54]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x64], eax
mov eax, 1
shl eax, cl
dec eax
mov dword [esp + 0x40], eax
mov eax, edx
sub eax, dword [esp + 0x40]
cmp dword [esp + 0x40], edx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, eax
push dword [eax + 0xa8]
call fcn.00516c10
mov edx, dword [esp + 0x30]
add esp, 4
test eax, eax
mov dword [esp + 0x70], eax
mov ecx, 1
cmovne ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x40]
and ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
add eax, 4
mov dword [esp + 0x44], eax
lea eax, [edx + 9]
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, dword [ecx + 0xb4]
mov dword [esp + 0x10], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x88]
dec eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], eax
mov eax, ecx
mov ecx, edx
sub ecx, esi
mov dword [esp + 0x1c], ecx
nop dword [eax]
cmp eax, 3
jne 0x51c13e
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
dec edx
jmp 0x51c149
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
lea eax, [edx - 1]
sub esi, edx
cmp eax, ecx
jae 0x51c1c9
mov eax, dword [edi]
neg edx
xor ecx, ecx
cmp eax, dword [edx + edi]
sete cl
cmp esi, dword [esp + 0x70]
sbb eax, eax
inc eax
test eax, ecx
je 0x51c1c9
push dword [esp + 0x30]
add edx, 4
lea ecx, [edi + 4]
add edx, edi
call fcn.00516ad0
add esp, 4
lea edx, [eax + 4]
cmp edx, dword [esp + 0x28]
jbe 0x51c1c9
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x6c]
mov dword [esp + 0x28], edx
mov dword [eax + esi*8], ecx
xor ecx, ecx
mov dword [eax + esi*8 + 4], edx
inc esi
lea eax, [edx + edi]
mov dword [esp + 0x10], esi
cmp eax, dword [esp + 0x30]
sete cl
cmp dword [esp + 0x84], edx
sbb eax, eax
neg eax
or ecx, eax
jne 0x51c33a
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
inc eax
add ecx, 3
mov dword [esp + 0x34], eax
cmp eax, ecx
mov ecx, dword [esp + 0x1c]
jb 0x51c130
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x51c314
mov ecx, dword [esp + 0x18]
dec eax
mov dword [esp + 0x54], eax
cmp ecx, dword [esp + 0x58]
jb 0x51c314
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x64]
and eax, ecx
push dword [esp + 0x30]
lea eax, [edx + eax*8]
mov edx, dword [esp + 0x6c]
cmp dword [esp + 0x64], edx
mov esi, edx
mov edx, dword [esp + 0x4c]
cmovb esi, dword [esp + 0x64]
add edx, ecx
mov dword [esp + 0x20], eax
lea edx, [edx + esi]
lea ecx, [esi + edi]
call fcn.00516ad0
mov edx, dword [esp + 0x1c]
add esi, eax
add esp, 4
cmp esi, dword [esp + 0x28]
jbe 0x51c2af
mov eax, dword [esp + 0x20]
lea ecx, [esi + edx]
sub eax, edx
mov dword [esp + 0x28], esi
cmp esi, eax
mov eax, dword [esp + 0x2c]
cmovbe ecx, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x50]
add eax, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + ecx*8], eax
mov eax, edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*8 + 4], esi
inc ecx
mov dword [esp + 0x10], ecx
lea eax, [esi + edi]
xor ecx, ecx
cmp eax, dword [esp + 0x30]
mov eax, 0x1000
sete cl
cmp eax, esi
sbb eax, eax
neg eax
or ecx, eax
jne 0x51bd1d
mov eax, dword [esp + 0x48]
add eax, edx
mov al, byte [eax + esi]
cmp al, byte [esi + edi]
jae 0x51c2da
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], esi
mov dword [eax], edx
cmp edx, dword [esp + 0x3c]
jbe 0x51c306
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x51c2f2
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], esi
mov dword [ecx], edx
cmp edx, dword [esp + 0x3c]
jbe 0x51c30c
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x51c202
jmp 0x51c314
lea eax, [esp + 0x70]
jmp 0x51c318
lea eax, [esp + 0x70]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x10]
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff8
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xf0]
sub eax, edi
mov dword [esp + 0xa4], esi
sub edi, dword [esp + 0x9c]
push eax
push edi
mov edi, dword [esp + 0x58]
lea eax, [esp + 0xac]
push eax
mov edx, edi
call fcn.005179b0
mov ecx, dword [esp + 0xb0]
add esp, 0xc
test ecx, ecx
je 0x51c58f
mov edx, dword [edi + ecx*8 - 4]
mov esi, dword [esp + 0x38]
cmp edx, dword [esp + 0xb4]
ja 0x51c60b
lea eax, [edx + esi]
cmp eax, 0x1000
jae 0x51c60b
xor edi, edi
mov dword [esp + 0x60], edi
test ecx, ecx
je 0x51c58f
mov eax, dword [esp + 0x50]
add eax, 0xfffffffc
mov dword [esp + 0x68], eax
nop dword [eax + eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov dword [esp + 0x84], edx
mov dword [esp + 0x1c], esi
test edi, edi
je 0x51c3da
mov eax, dword [eax]
inc eax
jmp 0x51c3e1
mov eax, dword [esp + 0x88]
mov dword [esp + 0x64], eax
cmp esi, eax
jb 0x51c577
mov ecx, dword [esp + 0x7c]
lea edi, [edx + 1]
mov edx, dword [esp + 0x38]
add edx, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edx
lea eax, [edx*8]
sub eax, edx
lea eax, [ecx + eax*4]
mov ecx, 0xfffffffd
sub ecx, dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov dword [esp + 0x80], ecx
nop dword [eax]
nop word [eax + eax]
bsr eax, edi
mov edi, 0
mov dword [esp + 0x70], 0
cmovne edi, eax
lea eax, [edx + ecx]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x70], eax
cmp dword [edx + 0x98], 1
jne 0x51c468
mov ecx, eax
call fcn.00516c40
lea ecx, [edi + 0x10]
shl ecx, 8
add eax, ecx
jmp 0x51c4bf
mov ecx, dword [edx + 0x6c]
mov ecx, dword [ecx + edi*4]
call fcn.00516c40
mov ecx, dword [esp + 0xc]
shl edi, 8
add edi, dword [ecx + 0x94]
mov ecx, dword [esp + 0x70]
sub edi, eax
call fcn.00516990
mov ecx, dword [esp + 0xc]
lea esi, [eax*4]
mov ecx, dword [ecx + 0x68]
mov ecx, dword [ecx + esi]
call fcn.00516c40
mov ecx, dword [esi + 0x5b5ea8]
mov esi, dword [esp + 0xc]
shl ecx, 8
add ecx, dword [esi + 0x90]
mov esi, dword [esp + 0x1c]
sub ecx, eax
lea eax, [ecx + 0x33]
add eax, edi
mov edi, dword [esp + 0xa0]
mov edx, dword [esp + 0x34]
add edi, eax
mov eax, dword [esp + 0x5c]
cmp edx, eax
ja 0x51c4de
mov ecx, dword [esp + 0x40]
cmp edi, dword [ecx]
jge 0x51c546
jmp 0x51c50e
lea ecx, [eax + 1]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x7c]
lea eax, [ecx + eax*4]
mov ecx, edx
sub ecx, dword [esp + 0x5c]
mov dword [esp + 0x5c], edx
nop dword [eax + eax]
mov dword [eax], 0x40000000
lea eax, [eax + 0x1c]
sub ecx, 1
jne 0x51c500
mov ecx, dword [esp + 0x7c]
lea eax, [edx*8]
sub eax, edx
mov edx, dword [esp + 0x7c]
mov dword [ecx + eax*4 + 8], esi
mov ecx, dword [esp + 0x84]
mov dword [edx + eax*4 + 4], ecx
mov ecx, edx
mov edx, dword [esp + 0x8c]
mov dword [ecx + eax*4 + 0xc], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + eax*4], edi
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
sub ecx, 0x1c
dec esi
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x80]
dec edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], edx
cmp esi, dword [esp + 0x64]
jae 0x51c430
mov ecx, dword [esp + 0xa4]
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
inc edi
add eax, 8
mov dword [esp + 0x60], edi
mov dword [esp + 0x68], eax
cmp edi, ecx
jb 0x51c3c0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x5c]
inc edx
mov dword [esp + 0x38], edx
cmp edx, ecx
jbe 0x51b440
mov edx, dword [esp + 0x7c]
lea eax, [ecx*8]
sub eax, ecx
movups xmm1, xmmword [edx + eax*4]
movq xmm0, qword [edx + eax*4 + 0x10]
mov eax, dword [edx + eax*4 + 0x18]
movq qword [esp + 0xe0], xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd edx, xmm0
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd edi, xmm0
mov dword [esp + 0xb8], eax
movaps xmmword [esp + 0x130], xmm1
movaps xmmword [esp + 0xc0], xmm1
lea eax, [edx + edi]
cmp ecx, eax
jbe 0x51b26a
sub ecx, edx
sub ecx, edi
jmp 0x51b26c
mov eax, dword [edi + ecx*8 - 8]
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0xc4], eax
lea eax, [esi*8]
sub eax, esi
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], edi
cmp dword [ecx + eax*4 + 8], 0
jne 0x51c645
mov eax, dword [ecx + eax*4 + 0xc]
jmp 0x51c647
xor eax, eax
movaps xmm0, xmmword [esp + 0xc0]
sub esi, eax
xor ecx, ecx
movaps xmmword [esp + 0x130], xmm0
cmp esi, 0x1000
cmovbe ecx, esi
jmp 0x51b26c
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x158], eax
mov edx, dword [esp + 0x5c]
movq qword [esp + 0x150], xmm0
movaps xmm0, xmmword [esp + 0x130]
lea ecx, [edx + 1]
lea eax, [ecx*8]
mov dword [esp + 0x28], ecx
sub eax, ecx
mov edi, ecx
lea esi, [esi + eax*4]
mov eax, dword [esp + 0xb8]
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0xe0]
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], eax
test edx, edx
je 0x51c743
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [esp + 0x7c]
lea eax, [edx*8]
sub eax, edx
lea esi, [esi - 0x1c]
movups xmm1, xmmword [ecx + eax*4]
lea edx, [ecx + eax*4]
dec edi
movq xmm0, qword [edx + 0x10]
movq qword [esp + 0x140], xmm0
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd ecx, xmm0
movups xmm0, xmmword [edx]
psrldq xmm1, 8
movups xmmword [esi], xmm0
movq xmm0, qword [edx + 0x10]
movd eax, xmm1
movq qword [esi + 0x10], xmm0
add ecx, eax
mov eax, dword [edx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x5c]
sub eax, ecx
cmp ecx, dword [esp + 0x5c]
sbb edx, edx
and edx, eax
mov dword [esp + 0x5c], edx
ja 0x51c6d0
mov ecx, dword [esp + 0x28]
cmp edi, ecx
ja 0x51c8bd
mov edx, dword [esp + 0x7c]
lea eax, [edi*8]
sub eax, edi
add edx, 8
sub ecx, edi
inc ecx
mov dword [esp + 0x28], ecx
lea eax, [edx + eax*4]
mov dword [esp + 0x1c], eax
mov esi, dword [eax + 4]
mov edi, dword [eax]
lea edx, [edi + esi]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x90]
add edx, esi
mov dword [esp + 0x24], edx
test edi, edi
je 0x51c8a9
mov eax, dword [eax - 4]
mov edx, esi
mov ecx, dword [esp + 0xc]
push edi
push eax
push dword [esp + 0x98]
lea ecx, [ecx + 0x60]
mov dword [esp + 0xac], eax
call fcn.00517380
mov eax, dword [esp + 0x3c]
lea edx, [edi - 3]
mov ecx, dword [esp + 0xa4]
add eax, 0xffffffe0
mov edi, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x34], edx
mov ecx, dword [ecx + 0xc]
cmp edi, eax
ja 0x51c81a
mov edi, dword [esp + 0x90]
movups xmm0, xmmword [edi]
movups xmmword [ecx], xmm0
cmp esi, 0x10
jbe 0x51c82f
mov ecx, dword [esp + 0x98]
lea edx, [edi + 0x10]
movups xmm0, xmmword [edx]
lea eax, [esi - 0x10]
mov ecx, dword [ecx + 0xc]
add ecx, 0x10
lea edi, [ecx + eax]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x51c82b
add ecx, 0x10
add edx, 0x10
nop
movups xmm0, xmmword [edx]
lea edx, [edx + 0x20]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx - 0x10]
movups xmmword [ecx + 0x10], xmm0
add ecx, 0x20
cmp ecx, edi
jb 0x51c800
jmp 0x51c82b
mov edx, dword [esp + 0x90]
push eax
push edi
call fcn.00516a40
add esp, 8
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x98]
add dword [edi + 0xc], esi
mov ecx, dword [edi + 4]
cmp esi, 0xffff
jbe 0x51c855
mov eax, ecx
mov dword [edi + 0x24], 1
sub eax, dword [edi]
sar eax, 3
mov dword [edi + 0x28], eax
mov word [ecx + 4], si
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0xa0]
inc ecx
mov dword [eax], ecx
cmp edx, 0xffff
jbe 0x51c880
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 3
mov dword [edi + 0x24], 2
mov dword [edi + 0x28], eax
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov word [eax + 6], dx
mov eax, dword [esp + 0x90]
add dword [edi + 4], 8
add eax, dword [esp + 0x70]
mov dword [esp + 0x90], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
add eax, 0x1c
sub ecx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
jne 0x51c761
mov ecx, dword [esp + 0xc]
mov edx, 2
lea ecx, [ecx + 0x60]
call fcn.00516c70
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0xa8]
jb 0x51a3c0
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0xac]
mov eax, dword [ecx + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov dword [ecx + 0x24], 0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
lea ecx, [ecx + 0x60]
sub dword [ecx - 0x5c], edx
add eax, edx
mov dword [ecx - 0x54], eax
mov dword [ecx - 0x50], eax
mov dword [ecx - 0x44], eax
call fcn.0051a1e0
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret