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

Disassembly:
push 8
mov eax, 0x558d96
call fcn.00538523
push ebx
sub esp, 0x1b0
push esi
push edi
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x28], ecx
mov ecx, edi
call fcn.004d6e46
mov ecx, edi
mov byte [ebp - 0x17], al
call fcn.004d70f7
xor edx, edx
test al, al
je 0x515a59
mov byte [ebp - 0x11], 1
cmp byte [ebx + 0x54], dl
je 0x515a5c
mov byte [ebp - 0x11], dl
mov esi, dword [ebx + 0x14]
movd xmm2, dword [ebx + 0x18]
mov eax, dword [ebx + 0x44]
cmp dword [ebx + 0x3c], edx
mov ecx, dword [esi + 0x38]
cvtdq2pd xmm2, xmm2
movsd xmm0, qword [ecx + eax*8]
sete byte [ebp - 0x30]
test byte [ebx + 0x40], 1
movaps xmm1, xmm2
mov ecx, dword [ebx + 0xc]
subsd xmm1, xmm0
subsd xmm0, xmm2
mov eax, dword [ecx + 0x2ac]
movsd qword [ebp - 0x100], xmm1
movsd qword [ebp - 0xb8], xmm0
movd xmm1, dword [eax + 0x214]
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [edi + 0x68]
movsd qword [ebp - 0xb0], xmm1
je 0x515ac7
test byte [edi + 0x48], 1
mov byte [ebp - 0x70], 1
jne 0x515aca
mov byte [ebp - 0x70], dl
movsd xmm0, qword [ebx + 0x24]
addsd xmm0, qword [edi + 0x50]
mov eax, dword [ebp - 0x28]
movsd qword [ebp - 0x78], xmm0
cmp dword [eax + 0x1c], edx
jne 0x515ae6
cmp byte [ebp - 0x17], dl
jne 0x515af5
mov ecx, edi
call fcn.004d6e4e
test al, al
jne 0x515af5
push 2
jmp 0x515af7
push 3
mov edx, dword [ebx + 0xc]
movsd xmm0, qword [ebp - 0xb8]
pop ecx
push edi
lea eax, [edx + 0x244]
mov dword [ebp - 0xc0], eax
lea eax, [edx + 0x10]
push eax
push dword [edx + 0x2ac]
lea eax, [edx + 0x244]
push ecx
push ecx
push ecx
movsd qword [esp], xmm0
lea ecx, [ebp - 0x19c]
push dword [ebx + 0x4c]
push dword [ebx + 0x48]
push dword [ebx + 0x44]
push eax
push esi
call fcn.0050ed5a
and dword [ebp - 4], 0
jmp 0x516735
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0050fd9a
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
add eax, ecx
push eax
push ecx
mov ecx, dword [ebx + 0x14]
lea esi, [eax - 1]
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x2c], esi
push eax
call fcn.00510931
movsd xmm1, qword [ebp - 0x100]
movsd xmm2, qword [ebp - 0x100]
movsd xmm0, qword [ebx + 0x2c]
addsd xmm1, qword [eax]
addsd xmm2, qword [eax + 8]
comisd xmm0, xmm1
movsd qword [ebp - 0x60], xmm1
movsd qword [ebp - 0x58], xmm2
jbe 0x51672f
comisd xmm2, xmmword [ebx + 0x1c]
jbe 0x51672f
mov eax, dword [ebx + 0x14]
movsd xmm0, qword [ebx + 0x24]
movsd qword [ebp - 0xb8], xmm0
movsd qword [ebp - 0xe0], xmm0
mov eax, dword [eax + 0x34]
movsd xmm0, qword [ebx + 0x34]
movsd qword [ebp - 0xe8], xmm1
movsd qword [ebp - 0xd8], xmm2
movzx eax, byte [eax + esi]
imul ecx, eax, 0x78
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x14]
movsd qword [ebp - 0x48], xmm0
movsd qword [ebp - 0xd0], xmm0
mov dword [ebp - 0x80], ecx
mov esi, dword [ecx + eax + 0x58]
mov eax, dword [ecx + eax + 0x70]
mov ecx, dword [ebx + 0xc]
add ecx, 0x294
mov dword [ebp - 0x4c], eax
cmp dword [ecx], 0xffffffff
je 0x515c56
cmp dword [ecx + 4], 0xffffffff
je 0x515c56
mov eax, dword [ebp - 0x2c]
add eax, dword [ebx + 0x4c]
push eax
call fcn.0050f682
mov edi, dword [ebx + 0x10]
test al, al
je 0x515c56
push 0x46
lea eax, [ebp - 0x108]
mov byte [ebp - 0x50], 1
push eax
mov ecx, edi
call fcn.004d65d1
cmp byte [ebp - 0x104], 0
je 0x515c5a
mov esi, dword [ebp - 0x108]
jmp 0x515c5a
mov byte [ebp - 0x50], 0
cmp byte [edi + 0x41], 0
je 0x515d6f
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x2ac]
mov ecx, dword [eax + 0x238]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x20], eax
cmp eax, ecx
je 0x515d6f
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x6c]
add eax, dword [ebx + 0x4c]
push eax
call edx
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x84], eax
test eax, eax
je 0x515d5a
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
imul eax, eax, 0x28
add eax, dword [edi + 0x34]
mov dword [ebp - 0x24], eax
lea ecx, [eax + 8]
mov dword [ebp - 0xbc], ecx
push ecx
mov ecx, eax
call fcn.004d5fa8
test al, al
jne 0x515d3b
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x4c]
add ecx, dword [ebp - 0x6c]
mov dword [ebp - 0xc4], ecx
mov eax, dword [edx]
push ecx
mov ecx, edx
mov eax, dword [eax + 0x18]
call eax
push dword [ebp - 0xc4]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
call edx
mov dword [ebp - 0xf0], eax
lea ecx, [ebp - 0xf0]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0xec], edi
push dword [eax + 0x2a0]
call fcn.0050f682
test al, al
je 0x515d3b
mov eax, dword [ebp - 0xbc]
cmp dword [eax], 0x11
jne 0x515d5a
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0xc]
jmp 0x515d5a
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0x11
jne 0x515d5a
test byte [eax + 0x1c], 1
je 0x515d57
mov esi, dword [ebp - 0x84]
or esi, 0xff000000
jmp 0x515d5a
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x7c]
jne 0x515c8b
mov edi, dword [ebx + 0x10]
cmp byte [edi + 0x78], 0
je 0x515d8e
mov eax, dword [ebp - 0x2c]
add eax, dword [ebx + 0x4c]
mov ecx, dword [ebp - 0xc0]
push eax
call fcn.004e99db
mov ecx, eax
mov dword [ebp - 0x24], eax
jmp 0x515d93
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [edi + 0xf0]
shr eax, 5
test al, 1
je 0x515dbd
cmp ecx, 1
jne 0x515dbd
mov eax, dword [ebp - 0x2c]
add eax, dword [ebx + 0x4c]
push edi
push dword [ebx + 0xc]
push eax
call fcn.00512c05
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x24], ecx
push ecx
push edi
push dword [ebx + 0xc]
lea eax, [ebp - 0xf8]
push eax
call fcn.0051aef0
push dword [ebp - 0x2c]
cmp byte [ebp - 0xf4], 0
lea eax, [ebp - 0x34]
push dword [ebp - 0x3c]
cmovne esi, dword [ebp - 0xf8]
push dword [ebp - 0x50]
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x24]
push dword [ebx + 0x54]
push dword [ebx + 0x50]
push dword [ebx + 0x14]
push edi
push dword [ebx + 0xc]
push eax
call fcn.0051b0ed
mov ecx, dword [ebp - 0x64]
add esp, 0x38
test ecx, ecx
je 0x51623d
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
cmp byte [edx + eax], 9
jne 0x516122
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x1c], 0
jne 0x515e80
cmp byte [ebp - 0x11], 0
je 0x515e5b
push dword [ebp - 0x30]
mov ecx, edi
call fcn.004d70d2
test al, al
je 0x515e5b
push 0x3d
lea eax, [ebp - 0x10c]
mov ecx, edi
push eax
call fcn.004d662b
mov eax, dword [eax]
or eax, 0xff000000
mov dword [ebp - 0x34], eax
jmp 0x515e5e
mov eax, dword [ebp - 0x34]
mov edx, dword [ebx + 8]
lea esi, [ebp - 0xe8]
push eax
sub esp, 0x20
mov edx, dword [edx]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
call dword [edx + 0x48]
mov edi, dword [ebx + 0x10]
mov edx, dword [ebp - 0x2c]
cmp byte [ebp - 0x30], 0
je 0x515fa2
cmp dword [edi + 0xe8], 1
jne 0x515fa2
mov esi, dword [ebx + 0x14]
lea eax, [ebp - 0x120]
push edx
push eax
mov ecx, esi
call fcn.00510956
movsd xmm0, qword [ebp - 0x120]
movsd xmm4, qword [0x575cc0]
movsd xmm3, qword [ebp - 0xb0]
addsd xmm0, xmm4
movsd xmm2, qword [ebp - 0x118]
divsd xmm0, xmm3
cvttsd2si eax, xmm0
movaps xmm0, xmm2
subsd xmm0, xmm4
mov dword [ebp - 0x20], eax
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm3
comisd xmm0, xmm1
jb 0x515fa2
test eax, eax
jle 0x515f7e
mulsd xmm1, xmm3
push ecx
push ecx
movsd qword [esp], xmm1
call fcn.0054a670
movd xmm0, dword [esi + 0x24]
cvtdq2pd xmm0, xmm0
pop ecx
pop ecx
fstp qword [ebp - 0x40]
ucomisd xmm0, qword [ebp - 0x40]
lahf
test ah, 0x44
jp 0x515f2a
mov al, 1
jmp 0x515f2c
xor al, al
push dword [ebp - 0x70]
movd xmm0, dword [ebx + 0x18]
lea esi, [ebp - 0xe8]
push eax
sub esp, 0x20
cvtdq2pd xmm0, xmm0
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
addsd xmm0, qword [ebp - 0x40]
push ecx
push ecx
mov ecx, dword [ebp - 0x28]
movsd qword [esp], xmm0
push dword [ebx + 8]
call fcn.00516768
movsd xmm2, qword [ebp - 0x118]
movsd xmm3, qword [ebp - 0xb0]
movsd xmm4, qword [0x575cc0]
mov eax, dword [ebp - 0x20]
mov esi, dword [ebx + 0x14]
movaps xmm0, xmm2
inc eax
subsd xmm0, xmm4
mov dword [ebp - 0x20], eax
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm3
comisd xmm0, xmm1
jae 0x515ef5
mov edi, dword [ebx + 0x10]
cmp dword [edi + 0xdc], 0
je 0x51667a
push dword [ebp - 0x30]
mov ecx, edi
call fcn.004d70d2
test al, al
je 0x51667a
movsd xmm0, qword [ebp - 0x60]
addsd xmm0, qword [0x560648]
mov esi, dword [ebp - 0x28]
cvttsd2si ecx, qword [ebp - 0xb8]
mov eax, dword [edi + 0x48]
cdq
sub eax, edx
sar eax, 1
push 0x3c
movsd qword [ebp - 0x60], xmm0
movd xmm0, dword [esi + 0x58]
add eax, ecx
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x20], eax
mov ecx, edi
lea eax, [ebp - 0x158]
push eax
addsd xmm0, qword [ebp - 0xb8]
movsd qword [ebp - 0x40], xmm0
movsd xmm0, qword [ebp - 0x58]
subsd xmm0, qword [0x560648]
movsd qword [ebp - 0x58], xmm0
movsd xmm0, qword [ebp - 0x48]
subsd xmm0, qword [edi + 0x58]
movsd qword [ebp - 0x48], xmm0
call fcn.004d65d1
cmp byte [eax + 4], 0
je 0x51603c
mov eax, dword [eax]
jmp 0x51603f
mov eax, dword [ebp - 0x1c]
mov edx, dword [esi + 0x5c]
sub esp, 0x10
movsd xmm0, qword [0x560648]
mov edi, esp
push dword [ebx + 0x10]
push dword [ebp - 0x20]
sub esp, 0x20
push 8
pop ecx
test edx, edx
jne 0x5160c5
movsd qword [ebp - 0x148], xmm0
lea esi, [ebp - 0x150]
movsd xmm0, qword [ebp - 0x60]
mov dword [ebp - 0x150], eax
movsd dword es:[edi], dword [esi]
movsd qword [ebp - 0xa8], xmm0
movsd xmm0, qword [ebp - 0x40]
movsd qword [ebp - 0xa0], xmm0
movsd xmm0, qword [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd qword [ebp - 0x98], xmm0
movsd xmm0, qword [ebp - 0x48]
movsd qword [ebp - 0x90], xmm0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0xa8]
push dword [ebx + 8]
rep movsd dword es:[edi], dword [esi]
call fcn.00517b64
add esp, 0x3c
jmp 0x516235
movsd qword [ebp - 0x138], xmm0
lea esi, [ebp - 0x140]
movsd xmm0, qword [ebp - 0x60]
mov dword [ebp - 0x140], eax
movsd dword es:[edi], dword [esi]
movsd qword [ebp - 0xa8], xmm0
movsd xmm0, qword [ebp - 0x40]
movsd qword [ebp - 0xa0], xmm0
movsd xmm0, qword [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd qword [ebp - 0x98], xmm0
movsd xmm0, qword [ebp - 0x48]
movsd qword [ebp - 0x90], xmm0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0xa8]
push dword [ebx + 8]
rep movsd dword es:[edi], dword [esi]
call edx
jmp 0x5160bd
xor edx, edx
cmp dword [edi + 0x84], 0x20
mov byte [ebp - 0x30], dl
jl 0x51619b
mov eax, dword [edi + 0x14]
push esi
push dword [ebp - 0x34]
mov eax, dword [eax + 0x1150]
mov dword [ebp - 0x3c], eax
mov al, byte [edi + 0x84]
mov byte [ebp - 0x18], al
mov eax, dword [ebx + 8]
push ecx
push ecx
mov byte [ebp - 0x17], dl
mov edx, esp
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x18]
mov ecx, eax
mov dword [edx], eax
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x516165
movsd xmm0, qword [ebp - 0x78]
sub ecx, esi
push ecx
push ecx
movsd qword [esp], xmm0
lea esi, [ebp - 0xe8]
push dword [ebp - 0x3c]
mov dword [edx + 4], ecx
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
call dword [ebp - 0x7c]
jmp 0x516235
mov eax, dword [ecx + 0x18]
shr eax, 4
test al, 1
je 0x5161ab
mov esi, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], esi
test byte [ecx + 0x18], 1
je 0x5161f1
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x1c], edx
mov eax, ecx
sete dl
cmp dword [eax + 0x14], 0x10
jb 0x5161c4
mov ecx, dword [ecx]
push edx
push esi
push dword [ebp - 0x34]
lea esi, [ebp - 0xe8]
push dword [eax + 0x10]
push ecx
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 0x10]
push edi
push dword [ebx + 8]
call fcn.00517d06
add esp, 0x3c
jmp 0x51667a
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov edx, dword [eax + 0x88]
mov eax, ecx
cmp dword [eax + 0x14], 0x10
jb 0x516206
mov ecx, dword [ecx]
movsd xmm0, qword [ebp - 0x78]
push esi
push dword [eax + 0x10]
mov eax, dword [edi + 0x14]
lea esi, [ebp - 0xe8]
push ecx
push ecx
push ecx
movsd qword [esp], xmm0
push dword [eax + 0x1150]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
call edx
mov edi, dword [ebx + 0x10]
jmp 0x51667a
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x80]
cmp byte [ecx + eax + 0x68], 0
je 0x5162bd
mov eax, dword [ebx + 0x14]
mov edi, dword [ebp - 0x28]
mov edx, dword [ebx + 8]
movsd xmm0, qword [ebp - 0x78]
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x6c]
add ecx, dword [ebp - 0x6c]
inc eax
cmp dword [edi + 0x1c], 0
mov edx, dword [edx]
je 0x516295
push esi
push eax
push ecx
push ecx
push ecx
movsd qword [esp], xmm0
lea esi, [ebp - 0xe8]
push dword [ebp - 0x4c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
call dword [edx + 0x74]
jmp 0x516339
push dword [ebp - 0x34]
push esi
push eax
push ecx
push ecx
push ecx
movsd qword [esp], xmm0
lea esi, [ebp - 0xe8]
push dword [ebp - 0x4c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
call dword [edx + 0x6c]
jmp 0x516339
lea edx, [ecx + 0x6b]
add edx, eax
cmp byte [edx], 0
je 0x51633c
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5162cc
mov eax, dword [ebx + 8]
sub ecx, edi
mov edi, dword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x78]
mov eax, dword [eax]
cmp dword [edi + 0x1c], 0
je 0x516310
push esi
push ecx
push edx
push ecx
push ecx
movsd qword [esp], xmm0
lea esi, [ebp - 0xe8]
push dword [ebp - 0x4c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
call dword [eax + 0x88]
jmp 0x516339
push dword [ebp - 0x34]
push esi
push ecx
push edx
push ecx
push ecx
movsd qword [esp], xmm0
lea esi, [ebp - 0xe8]
push dword [ebp - 0x4c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
call dword [eax + 0x80]
mov edi, dword [ebx + 0x10]
cmp dword [edi + 0xdc], 0
jne 0x51635c
cmp byte [ebp - 0x30], 0
je 0x51667a
cmp dword [edi + 0xe8], 0
je 0x51667a
mov eax, dword [ebp - 0x2c]
xor esi, esi
sub eax, dword [ebp - 0x6c]
mov dword [ebp - 0x24], esi
js 0x51667a
mov edx, dword [ebx + 0x14]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [edx + 0x30]
add ecx, esi
cmp byte [ecx + eax], 0x20
jne 0x516661
cmp dword [edi + 0xdc], 0
je 0x51653b
push dword [ebp - 0x30]
mov ecx, edi
call fcn.004d70d2
test al, al
je 0x516538
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebx + 0x14]
add eax, esi
push eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.00510956
movsd xmm1, qword [ebp - 0x100]
movaps xmm0, xmm1
addsd xmm1, qword [eax + 8]
addsd xmm0, qword [eax]
mov eax, dword [ebp - 0x28]
movsd qword [ebp - 0x60], xmm1
cmp dword [eax + 0x1c], 0
addsd xmm1, xmm0
movsd qword [ebp - 0x58], xmm0
mulsd xmm1, qword [0x560670]
movsd qword [ebp - 0x48], xmm1
jne 0x51646a
cmp byte [ebp - 0x11], 0
je 0x51646a
push 0x3d
lea eax, [ebp - 0x110]
mov ecx, edi
push eax
call fcn.004d662b
movsd xmm0, qword [ebp - 0x58]
lea esi, [ebp - 0xa8]
mov ecx, dword [ebx + 8]
movsd qword [ebp - 0xa8], xmm0
mov eax, dword [eax]
movsd xmm0, qword [ebx + 0x24]
or eax, 0xff000000
mov edx, dword [ecx]
push eax
sub esp, 0x20
movsd qword [ebp - 0xa0], xmm0
movsd xmm0, qword [ebp - 0x60]
movsd qword [ebp - 0x98], xmm0
movsd xmm0, qword [ebx + 0x34]
push 8
pop ecx
mov edi, esp
movsd qword [ebp - 0x90], xmm0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
call dword [edx + 0x48]
movsd xmm1, qword [ebp - 0x48]
mov edi, dword [ebx + 0x10]
jmp 0x51646d
mov esi, dword [ebx + 8]
mov ecx, dword [edi + 0xe4]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push 0x3c
movd xmm0, eax
mov eax, dword [edi + 0x48]
cdq
cvtdq2pd xmm0, xmm0
sub eax, edx
sar eax, 1
movd xmm2, eax
lea eax, [ebp - 0x160]
subsd xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm2, xmm2
push eax
mov ecx, edi
cvtdq2pd xmm0, xmm0
addsd xmm2, qword [ebp - 0xb8]
movaps xmm3, xmm0
movsd qword [ebp - 0x48], xmm1
addsd xmm3, xmm1
movaps xmm1, xmm2
movsd qword [ebp - 0x58], xmm2
addsd xmm1, xmm0
movsd qword [ebp - 0x60], xmm3
movsd qword [ebp - 0x40], xmm1
call fcn.004d65d1
cmp byte [eax + 4], 0
je 0x5164e2
mov eax, dword [eax]
jmp 0x5164e5
mov eax, dword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x48]
mov edx, dword [esi]
lea esi, [ebp - 0xa8]
push eax
movsd qword [ebp - 0xa8], xmm0
sub esp, 0x20
movsd xmm0, qword [ebp - 0x58]
movsd qword [ebp - 0xa0], xmm0
movsd xmm0, qword [ebp - 0x60]
push 8
movsd qword [ebp - 0x98], xmm0
movsd xmm0, qword [ebp - 0x40]
pop ecx
mov edi, esp
movsd qword [ebp - 0x90], xmm0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
call dword [edx + 0x48]
mov edi, dword [ebx + 0x10]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebx + 0x14]
cmp byte [ebp - 0x30], 0
je 0x516665
cmp dword [edi + 0xe8], 1
jne 0x516665
mov eax, dword [ebp - 0x6c]
mov ecx, edx
add eax, esi
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00510956
movsd xmm0, qword [ebp - 0x130]
movsd xmm4, qword [0x575cc0]
movsd xmm3, qword [ebp - 0xb0]
addsd xmm0, xmm4
movsd xmm2, qword [ebp - 0x128]
divsd xmm0, xmm3
cvttsd2si eax, xmm0
movaps xmm0, xmm2
subsd xmm0, xmm4
mov dword [ebp - 0x20], eax
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm3
comisd xmm0, xmm1
jb 0x516665
test eax, eax
jle 0x51663b
mulsd xmm1, xmm3
push ecx
push ecx
movsd qword [esp], xmm1
call fcn.0054a670
mov eax, dword [ebx + 0x14]
fstp qword [ebp - 0x48]
pop ecx
pop ecx
movd xmm0, dword [eax + 0x24]
cvtdq2pd xmm0, xmm0
ucomisd xmm0, qword [ebp - 0x48]
lahf
test ah, 0x44
jp 0x5165ea
mov al, 1
jmp 0x5165ec
xor al, al
push dword [ebp - 0x70]
movd xmm0, dword [ebx + 0x18]
lea esi, [ebp - 0xe8]
push eax
sub esp, 0x20
cvtdq2pd xmm0, xmm0
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
addsd xmm0, qword [ebp - 0x48]
push ecx
push ecx
mov ecx, dword [ebp - 0x28]
movsd qword [esp], xmm0
push dword [ebx + 8]
call fcn.00516768
movsd xmm2, qword [ebp - 0x128]
movsd xmm3, qword [ebp - 0xb0]
movsd xmm4, qword [0x575cc0]
mov eax, dword [ebp - 0x20]
movaps xmm0, xmm2
inc eax
subsd xmm0, xmm4
mov dword [ebp - 0x20], eax
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm3
comisd xmm0, xmm1
jae 0x5165b2
mov esi, dword [ebp - 0x24]
jmp 0x516665
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x2c]
inc esi
sub eax, dword [ebp - 0x6c]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x24], esi
cmp esi, eax
jle 0x51636d
mov al, byte [ebp - 0x50]
lea edx, [edi + 0xa8]
test al, al
je 0x51668c
cmp byte [edx], 0
jne 0x5166a0
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x80]
cmp byte [ecx + eax + 0x61], 0
je 0x516735
mov al, byte [ebp - 0x50]
movsd xmm0, qword [ebp - 0x78]
lea esi, [ebp - 0xe8]
lea edi, [ebp - 0xa8]
addsd xmm0, qword [0x560648]
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
movsd qword [ebp - 0xa0], xmm0
movsd xmm0, qword [ebp - 0x78]
addsd xmm0, qword [0x560678]
movsd qword [ebp - 0x90], xmm0
test al, al
je 0x516705
cmp byte [edx], 0
je 0x516705
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x168]
push 0x46
push eax
call fcn.004d65d1
cmp byte [eax + 4], 0
je 0x5166ff
mov eax, dword [eax]
jmp 0x516702
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 8]
lea esi, [ebp - 0xa8]
push ecx
mov ecx, esp
sub esp, 0x20
mov eax, dword [eax]
push 8
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
call edx
mov edi, dword [ebx + 0x10]
jmp 0x516735
comisd xmm1, xmm0
ja 0x516748
lea ecx, [ebp - 0x19c]
call fcn.0050fd86
test al, al
jne 0x515b47
lea ecx, [ebp - 0x19c]
call fcn.0050f214
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x50