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

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
push ebx
push ebp
push esi
mov ecx, dword [eax + 0x5c]
mov esi, dword [esp + 0x78]
mov ebx, esi
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0xc0]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x64]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0xbc]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x7c]
push edi
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x2c], ebx
lea edi, [esi + ecx]
lea edx, [edi - 8]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov edx, esi
sub edx, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [eax + 0xb8]
mov dword [esp + 0x10], edx
mov edx, 1
shl edx, cl
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x10]
sub dword [esp + 0x10], edx
sub eax, ecx
cmp eax, edx
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
cmovbe eax, ecx
cmp dword [edx + 0x18], 0
cmovne eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
cmova ecx, eax
mov eax, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0x40], eax
mov eax, dword [ebp]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 4]
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x34], eax
cmp ecx, dword [esp + 0x10]
jne 0x51505e
mov eax, dword [edx + 0xc8]
add eax, 0xfffffffc
cmp eax, 3
ja case.0x514fd3.4
jmp dword [eax*4 + 0x515b2c]
push dword [esp + 0x80]
push esi
push dword [esp + 0x80]
push ebp
push edx
call fcn.00516540
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push dword [esp + 0x80]
push esi
push dword [esp + 0x80]
push ebp
push edx
call fcn.00516f80
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push dword [esp + 0x80]
push esi
push dword [esp + 0x80]
push ebp
push edx
call fcn.005179c0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push dword [esp + 0x80]
push esi
push dword [esp + 0x80]
push ebp
push edx
call fcn.00515b90
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
lea ecx, [edi - 8]
cmp esi, ecx
jae 0x515b12
mov eax, 0x40
mov edi, 0x40
sub eax, dword [esp + 0x5c]
mov ecx, 0x20
sub edi, dword [esp + 0x60]
sub ecx, dword [esp + 0x60]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x84]
add eax, 0xfffffffc
mov dword [esp + 0x80], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
cmp eax, 4
ja case.0x5150a6.0
jmp dword [eax*4 + 0x515b3c]
push 0xcf1bbcdc
push 0xbb000000
push dword [esi + 4]
push dword [esi]
call fcn.0052c240
mov ecx, edi
call fcn.0052c220
jmp 0x5150f6
push 0xcf1bbcdc
push 0xbf9b0000
jmp 0x5150b7
push 0xcf1bbcdc
push 0xbfa56300
jmp 0x5150b7
push 0xcf1bbcdc
push 0xb7a56463
jmp 0x5150b7
imul eax, dword [esi], 0x9e3779b1
shr eax, cl
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
push 0xcf1bbcdc
mov dword [esp + 0x40], eax
mov ecx, dword [edx + eax*4]
mov eax, ebx
cmp ecx, dword [esp + 0x74]
push 0xb7a56463
push dword [esi + 4]
cmovb eax, dword [esp + 0x34]
push dword [esi]
add eax, ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
call fcn.0052c240
mov ecx, dword [esp + 0x44]
call fcn.0052c220
mov ecx, dword [esp + 0x48]
mov edi, ebx
mov edx, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
cmp edx, dword [esp + 0x70]
mov eax, esi
mov dword [esp + 0x60], edx
cmovb edi, dword [esp + 0x28]
sub eax, ebx
mov dword [esp + 0x38], eax
add edi, edx
sub eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x50], eax
mov eax, ebx
mov ebx, dword [esp + 0x70]
cmp dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x38]
cmovb eax, dword [esp + 0x28]
add eax, dword [esp + 0x50]
mov dword [ecx], ebx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + eax*4], ebx
sub ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x70]
inc ebx
cmp ebx, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
sbb ecx, ecx
sub eax, dword [esp + 0x50]
dec eax
inc ecx
cmp eax, 3
sbb eax, eax
inc eax
test eax, ecx
je 0x5152d9
mov ecx, dword [esp + 0x64]
lea eax, [esi + 1]
mov dword [esp + 0x3c], eax
mov ebp, eax
mov eax, dword [ecx]
cmp eax, dword [ebp]
mov ebp, dword [esp + 0x74]
jne 0x5152d9
mov edx, dword [esp + 0x7c]
lea edi, [ecx + 4]
mov eax, dword [esp + 0x70]
mov ebx, edx
cmp dword [esp + 0x50], eax
mov ecx, edx
cmovb ebx, dword [esp + 0x40]
add esi, 5
mov eax, esi
mov dword [esp + 0x64], esi
sub eax, edi
add eax, ebx
cmp eax, edx
cmovb ecx, eax
push ecx
push edi
push esi
call fcn.00518400
mov esi, eax
add esp, 0xc
lea eax, [esi + edi]
cmp eax, ebx
jne 0x515229
push dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
push dword [esp + 0x20]
add eax, esi
push eax
call fcn.00518400
add esp, 0xc
add esi, eax
mov edx, dword [esp + 0x7c]
lea edi, [esi + 4]
mov esi, dword [esp + 0x3c]
add edx, 0xffffffe0
mov ecx, dword [esp + 0x2c]
mov ebx, esi
mov eax, dword [ebp + 0xc]
sub ebx, ecx
cmp esi, edx
ja 0x51529a
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
cmp ebx, 0x10
jbe 0x5152a6
movups xmm0, xmmword [ecx + 0x10]
lea edx, [ecx + 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
lea eax, [ebx - 0x10]
lea ebp, [ecx + eax]
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x74]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x5152a6
mov eax, dword [esp + 0x64]
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, eax
jb 0x515280
jmp 0x5152a6
push edx
push esi
push ecx
push eax
call fcn.005187b0
add esp, 0x10
add dword [ebp + 0xc], ebx
cmp ebx, 0xffff
jbe 0x5152c4
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 1
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 4]
mov word [eax + 4], bx
mov eax, dword [ebp + 4]
mov dword [eax], 1
jmp 0x51571a
mov ecx, dword [esp + 0x10]
cmp edx, ecx
jbe 0x515452
mov eax, dword [edi]
cmp eax, dword [esi]
jne 0x515452
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
jne 0x515452
mov ecx, dword [esp + 0x60]
cmp ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x7c]
mov ebx, edx
cmovb ebx, dword [esp + 0x40]
mov ecx, edx
mov eax, dword [esp + 0x1c]
cmovb eax, dword [esp + 0x54]
add edi, 8
mov dword [esp + 0x5c], eax
lea eax, [esi + 8]
sub eax, edi
add eax, ebx
cmp eax, edx
cmovb ecx, eax
lea eax, [esi + 8]
push ecx
push edi
push eax
call fcn.00518400
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x64], ecx
lea eax, [ecx + edi]
cmp eax, ebx
jne 0x515363
push dword [esp + 0x7c]
lea eax, [ecx + 8]
push dword [esp + 0x20]
add eax, esi
push eax
call fcn.00518400
mov ecx, dword [esp + 0x70]
add esp, 0xc
add ecx, eax
mov eax, dword [esp + 0x38]
lea edi, [ecx + 8]
sub eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x68]
cmp dword [esp + 0x5c], ebx
mov edx, dword [esp + 0x2c]
sbb ecx, ecx
mov dword [esp + 0x60], eax
neg ecx
cmp edx, esi
sbb eax, eax
neg eax
test eax, ecx
je 0x5153ae
mov ebp, dword [esp + 0x5c]
mov al, byte [esi - 1]
dec ebx
cmp al, byte [ebx]
jne 0x5153aa
dec esi
inc edi
cmp ebp, ebx
sbb ecx, ecx
neg ecx
cmp edx, esi
sbb eax, eax
neg eax
test eax, ecx
jne 0x515390
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x18]
mov ebx, esi
mov ecx, dword [esp + 0x7c]
sub ebx, edx
mov dword [esp + 0x34], eax
add ecx, 0xffffffe0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
cmp esi, ecx
ja 0x51541f
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
cmp ebx, 0x10
jbe 0x51542b
mov ecx, dword [ebp + 0xc]
lea eax, [ebx - 0x10]
movups xmm0, xmmword [edx + 0x10]
add ecx, 0x10
lea ebp, [ecx + eax]
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x74]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x51542b
mov eax, dword [esp + 0x68]
add ecx, 0x10
add edx, 0x20
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, eax
jb 0x515405
jmp 0x51542b
push ecx
push esi
push edx
push eax
call fcn.005187b0
add esp, 0x10
add dword [ebp + 0xc], ebx
cmp ebx, 0xffff
jbe 0x515449
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 1
mov dword [ebp + 0x28], eax
mov ecx, dword [esp + 0x60]
jmp 0x51570b
cmp dword [esp + 0x58], ecx
jbe 0x515ae5
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x515ae5
push 0xcf1bbcdc
lea ebx, [esi + 1]
push 0xb7a56463
push dword [ebx + 4]
mov dword [esp + 0x70], ebx
push dword [ebx]
call fcn.0052c240
mov ecx, dword [esp + 0x44]
call fcn.0052c220
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
cmp edx, dword [esp + 0x70]
mov edi, dword [esp + 0x24]
cmovb edi, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
add edi, edx
inc eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], edi
mov dword [ecx], eax
cmp edx, dword [esp + 0x10]
jbe 0x5155a2
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x5155a2
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 4]
jne 0x5155a2
mov edx, dword [esp + 0x7c]
mov ebx, edx
mov ecx, dword [esp + 0x60]
cmp ecx, dword [esp + 0x70]
mov ecx, edx
mov eax, dword [esp + 0x1c]
cmovb eax, dword [esp + 0x54]
cmovb ebx, dword [esp + 0x40]
add edi, 8
add esi, 9
mov dword [esp + 0x5c], eax
mov eax, esi
mov dword [esp + 0x68], esi
sub eax, edi
add eax, ebx
cmp eax, edx
cmovb ecx, eax
push ecx
push edi
push esi
call fcn.00518400
mov esi, eax
add esp, 0xc
lea eax, [esi + edi]
cmp eax, ebx
jne 0x51553a
push dword [esp + 0x7c]
mov eax, dword [esp + 0x6c]
push dword [esp + 0x20]
add eax, esi
push eax
call fcn.00518400
add esp, 0xc
add esi, eax
mov eax, dword [esp + 0x38]
lea edi, [esi + 8]
sub eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x50]
inc eax
cmp dword [esp + 0x5c], ebx
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x2c]
sbb ecx, ecx
neg ecx
mov dword [esp + 0x3c], eax
cmp edx, esi
sbb eax, eax
neg eax
test eax, ecx
je 0x51565e
nop dword [eax]
lea eax, [esi - 1]
mov dword [esp + 0x68], eax
lea ecx, [ebx - 1]
mov al, byte [eax]
mov ebx, ecx
cmp al, byte [ecx]
jne 0x51565e
mov esi, dword [esp + 0x68]
inc edi
cmp dword [esp + 0x5c], ebx
sbb ecx, ecx
neg ecx
cmp edx, esi
sbb eax, eax
neg eax
test eax, ecx
jne 0x515570
jmp 0x51565e
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x7c]
mov ebx, edx
cmovb ebx, dword [esp + 0x40]
mov ecx, edx
mov eax, dword [esp + 0x1c]
cmovb eax, dword [esp + 0x54]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x60], eax
add edi, 4
lea eax, [esi + 4]
sub eax, edi
add eax, ebx
cmp eax, edx
cmovb ecx, eax
lea eax, [esi + 4]
push ecx
push edi
push eax
call fcn.00518400
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x68], ecx
lea eax, [ecx + edi]
cmp eax, ebx
jne 0x51560e
push dword [esp + 0x7c]
lea eax, [ecx + 4]
push dword [esp + 0x20]
add eax, esi
push eax
call fcn.00518400
mov ecx, dword [esp + 0x74]
add esp, 0xc
add ecx, eax
mov eax, dword [esp + 0x38]
lea edi, [ecx + 4]
sub eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
cmp dword [esp + 0x60], ebx
mov edx, dword [esp + 0x2c]
sbb ecx, ecx
mov dword [esp + 0x3c], eax
neg ecx
cmp edx, esi
sbb eax, eax
neg eax
test eax, ecx
je 0x51565e
mov ebp, dword [esp + 0x60]
nop dword [eax + eax]
mov al, byte [esi - 1]
dec ebx
cmp al, byte [ebx]
jne 0x51565a
dec esi
inc edi
cmp ebp, ebx
sbb ecx, ecx
neg ecx
cmp edx, esi
sbb eax, eax
neg eax
test eax, ecx
jne 0x515640
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x18]
mov ebx, esi
mov ecx, dword [esp + 0x3c]
sub ebx, edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x7c]
add eax, 0xffffffe0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0xc]
cmp esi, dword [esp + 0x60]
ja 0x5156da
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
cmp ebx, 0x10
jbe 0x5156ed
mov ecx, dword [ebp + 0xc]
lea eax, [ebx - 0x10]
movups xmm0, xmmword [edx + 0x10]
add ecx, 0x10
lea ebp, [ecx + eax]
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x74]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x5156e9
mov eax, dword [esp + 0x68]
add ecx, 0x10
add edx, 0x20
nop dword [eax + eax]
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, eax
jb 0x5156c0
jmp 0x5156e9
push dword [esp + 0x60]
push esi
push edx
push eax
call fcn.005187b0
add esp, 0x10
mov ecx, dword [esp + 0x3c]
add dword [ebp + 0xc], ebx
cmp ebx, 0xffff
jbe 0x51570b
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 1
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 4]
add ecx, 3
mov word [eax + 4], bx
mov eax, dword [ebp + 4]
mov dword [eax], ecx
lea ecx, [edi - 3]
cmp ecx, 0xffff
jbe 0x515738
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 2
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 4]
add esi, edi
mov ebx, esi
mov dword [esp + 0x2c], ebx
mov word [eax + 6], cx
add dword [ebp + 4], 8
mov eax, dword [esp + 0x4c]
cmp esi, eax
ja 0x515af5
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
add edi, 2
push 0xcf1bbcdc
push 0xb7a56463
push dword [edi + eax + 4]
push dword [edi + eax]
call fcn.0052c240
mov ecx, dword [esp + 0x44]
call fcn.0052c220
mov ecx, dword [esp + 0x48]
push 0xcf1bbcdc
push 0xb7a56463
mov dword [ecx + eax*4], edi
push dword [esi + 2]
push dword [esi - 2]
call fcn.0052c240
mov ecx, dword [esp + 0x44]
call fcn.0052c220
mov edx, dword [esp + 0x24]
mov ecx, eax
mov ebp, dword [esp + 0x48]
mov eax, esi
sub eax, edx
mov dword [esp + 0x68], eax
add eax, 0xfffffffe
mov dword [ebp + ecx*4], eax
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x74]
cmp eax, 4
ja case.0x5157d0.0
jmp dword [eax*4 + 0x515b50]
push 0xcf1bbcdc
push 0xbb000000
push dword [edi + edx + 4]
push dword [edi + edx]
call fcn.0052c240
mov ecx, dword [esp + 0x80]
call fcn.0052c220
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax*4], edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
jmp switch.0x005158c6
push 0xcf1bbcdc
push 0xbf9b0000
push dword [edi + edx + 4]
push dword [edi + edx]
call fcn.0052c240
mov ecx, dword [esp + 0x80]
call fcn.0052c220
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax*4], edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
jmp switch.0x005158c6
push 0xcf1bbcdc
push 0xbfa56300
push dword [edi + edx + 4]
push dword [edi + edx]
call fcn.0052c240
mov ecx, dword [esp + 0x80]
call fcn.0052c220
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax*4], edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
jmp switch.0x005158c6
push 0xcf1bbcdc
push 0xb7a56463
push dword [edi + edx + 4]
push dword [edi + edx]
call fcn.0052c240
mov ecx, dword [esp + 0x80]
call fcn.0052c220
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax*4], edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
jmp switch.0x005158c6
imul eax, dword [edi + edx], 0x9e3779b1
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
shr eax, cl
mov dword [edx + eax*4], edi
mov eax, dword [esp + 0x20]
cmp eax, 4
ja case.0x5158c6.0
jmp dword [eax*4 + 0x515b64]
push 0xcf1bbcdc
push 0xbb000000
push dword [esi + 3]
push dword [esi - 1]
call fcn.0052c240
mov ecx, dword [esp + 0x80]
call fcn.0052c220
mov edx, eax
jmp 0x51591f
push 0xcf1bbcdc
push 0xbf9b0000
jmp 0x5158d7
push 0xcf1bbcdc
push 0xbfa56300
jmp 0x5158d7
push 0xcf1bbcdc
push 0xb7a56463
jmp 0x5158d7
imul edx, dword [esi - 1], 0x9e3779b1
shr edx, cl
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x68]
dec eax
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x7c]
add eax, 0xffffffe0
mov dword [esp + 0x64], eax
mov edi, dword [esp + 0x28]
mov ecx, esi
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x70]
mov edx, ecx
sub edx, dword [esp + 0x34]
cmp edx, dword [esp + 0x70]
mov dword [esp + 0x60], ecx
cmovae edi, dword [esp + 0x24]
sub ecx, dword [esp + 0x10]
add edi, edx
cmp ecx, dword [esp + 0x34]
sbb ecx, ecx
sub eax, edx
dec eax
inc ecx
cmp eax, 3
sbb eax, eax
inc eax
test eax, ecx
je 0x515aef
mov eax, dword [edi]
cmp eax, dword [esi]
jne 0x515aef
cmp edx, dword [esp + 0x70]
lea edx, [esi + 4]
mov ecx, dword [esp + 0x7c]
mov eax, edx
mov ebx, ecx
cmovb ebx, dword [esp + 0x40]
add edi, 4
sub eax, edi
add eax, ebx
cmp eax, ecx
cmovb ecx, eax
push ecx
push edi
push edx
call fcn.00518400
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x68], ecx
lea eax, [ecx + edi]
cmp eax, ebx
jne 0x5159d3
push dword [esp + 0x7c]
lea eax, [ecx + 4]
push dword [esp + 0x20]
add eax, esi
push eax
call fcn.00518400
mov ecx, dword [esp + 0x74]
add esp, 0xc
add ecx, eax
mov eax, dword [esp + 0x34]
lea ebx, [ecx + 4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
cmp esi, ecx
ja 0x5159f9
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
jmp 0x515a05
push ecx
push esi
push esi
push eax
call fcn.005187b0
add esp, 0x10
mov eax, dword [ebp + 4]
xor ecx, ecx
mov word [eax + 4], cx
lea ecx, [ebx - 3]
mov eax, dword [ebp + 4]
mov dword [eax], 1
cmp ecx, 0xffff
jbe 0x515a35
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 2
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 4]
mov word [eax + 6], cx
add dword [ebp + 4], 8
mov eax, dword [esp + 0x20]
cmp eax, 4
ja case.0x515a49.0
jmp dword [eax*4 + 0x515b78]
push 0xcf1bbcdc
push 0xbb000000
push dword [esi + 4]
push dword [esi]
call fcn.0052c240
mov ecx, dword [esp + 0x80]
call fcn.0052c220
jmp 0x515aa2
push 0xcf1bbcdc
push 0xbf9b0000
jmp 0x515a5a
push 0xcf1bbcdc
push 0xbfa56300
jmp 0x515a5a
push 0xcf1bbcdc
push 0xb7a56463
jmp 0x515a5a
imul eax, dword [esi], 0x9e3779b1
mov ecx, dword [esp + 0x30]
shr eax, cl
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x60]
push 0xcf1bbcdc
push 0xb7a56463
mov dword [ecx + eax*4], edi
push dword [esi + 4]
push dword [esi]
call fcn.0052c240
mov ecx, dword [esp + 0x44]
call fcn.0052c220
mov ecx, dword [esp + 0x48]
add esi, ebx
mov ebx, esi
mov dword [esp + 0x2c], ebx
mov dword [ecx + eax*4], edi
cmp esi, dword [esp + 0x4c]
jbe 0x515936
jmp 0x515b0a
mov eax, esi
sub eax, ebx
sar eax, 8
inc eax
add esi, eax
mov eax, dword [esp + 0x4c]
cmp esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x80]
jb 0x5150a1
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x78]
sub edi, ebx
mov ecx, dword [esp + 0x18]
mov dword [edx + 4], eax
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0x5c
ret