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

Disassembly:
push 8
mov eax, 0x558d56
call fcn.00538523
push ebx
sub esp, 0x120
push esi
mov esi, dword [ebx + 0x10]
mov ecx, esi
push edi
call fcn.004d6e46
mov edi, dword [ebx + 0x14]
mov edx, dword [ebx + 0x40]
cmp dword [ebx + 0x3c], 0
movd xmm0, dword [ebx + 0x18]
mov ecx, dword [edi + 0x38]
sete byte [ebp - 0x1c]
push esi
cvtdq2pd xmm0, xmm0
movsd xmm1, qword [ecx + edx*8]
xor ecx, ecx
test al, al
movaps xmm2, xmm0
mov eax, dword [ebx + 0xc]
subsd xmm2, xmm1
setne cl
subsd xmm1, xmm0
lea edi, [eax + 0x244]
add eax, 0x10
push eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x28], edi
movsd qword [ebp - 0x48], xmm2
push dword [eax + 0x2ac]
push ecx
push ecx
push ecx
movsd qword [esp], xmm1
lea ecx, [ebp - 0xac]
push dword [ebx + 0x48]
push dword [ebx + 0x44]
push edx
push edi
mov edi, dword [ebx + 0x14]
push edi
call fcn.0050ed5a
and dword [ebp - 4], 0
mov ecx, esi
call fcn.004d70f7
test al, al
je 0x5132ef
cmp byte [ebx + 0x50], 0
mov byte [ebp - 0x11], 1
je 0x5132f3
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0xac]
call fcn.0050fd86
test al, al
je 0x5134bd
mov esi, dword [ebx + 0x48]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xac]
call fcn.0050fd9a
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
add eax, ecx
push eax
push ecx
mov ecx, edi
lea edx, [eax - 1]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0xe0]
add edx, esi
push eax
mov dword [ebp - 0x18], edx
call fcn.00510931
movsd xmm2, qword [ebp - 0x48]
xorps xmm3, xmm3
movsd xmm1, qword [ebp - 0x48]
addsd xmm2, qword [eax + 8]
addsd xmm1, qword [eax]
movaps xmm0, xmm2
movsd qword [ebp - 0x60], xmm2
subsd xmm0, xmm1
movsd qword [ebp - 0x68], xmm1
comisd xmm3, xmm0
movsd xmm0, qword [ebx + 0x2c]
jae 0x513615
comisd xmm0, xmm1
jbe 0x513615
comisd xmm2, xmmword [ebx + 0x1c]
jbe 0x513615
sub esp, 0x10
lea esi, [ebp - 0x68]
mov edi, esp
lea eax, [ebp - 0xd0]
sub esp, 0x20
movsd dword es:[edi], dword [esi]
push 8
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebx + 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0050461c
mov esi, dword [ebx + 0x10]
add esp, 0x34
cmp byte [esi + 0x78], 0
je 0x5133c6
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
call fcn.004e99db
mov edi, eax
jmp 0x5133c8
xor edi, edi
mov eax, dword [esi + 0xf0]
shr eax, 5
test al, 1
je 0x5133eb
cmp edi, 1
jne 0x5133eb
push esi
push dword [ebx + 0xc]
push dword [ebp - 0x18]
call fcn.00512c05
add esp, 0xc
mov edi, eax
mov ecx, dword [ebx + 0xc]
add ecx, 0x294
cmp dword [ecx], 0xffffffff
je 0x51340f
cmp dword [ecx + 4], 0xffffffff
je 0x51340f
push dword [ebp - 0x18]
call fcn.0050f682
mov byte [ebp - 0x2c], 1
test al, al
jne 0x513413
mov byte [ebp - 0x2c], 0
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x20]
push ecx
mov eax, dword [edx + 0x34]
movzx eax, byte [eax + ecx]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push edi
push dword [ebx + 0x50]
push dword [ebx + 0x4c]
push edx
push esi
push dword [ebx + 0xc]
push eax
call fcn.0051b0ed
add esp, 0x28
cmp dword [ebp - 0x30], 0
je 0x5134db
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
cmp byte [edx + eax], 9
jne 0x513483
cmp byte [ebp - 0x11], 0
je 0x513487
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004d70d2
test al, al
je 0x513487
push 0x3d
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.004d662b
mov eax, dword [eax]
or eax, 0xff000000
mov dword [ebp - 0x24], eax
jmp 0x513487
mov byte [ebp - 0x1c], 0
push dword [ebp - 0x24]
mov edx, dword [ebx + 8]
lea esi, [ebp - 0xd0]
sub esp, 0x20
mov eax, dword [edx]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call dword [eax + 0x48]
mov edi, dword [ebx + 0x14]
mov esi, dword [ebx + 0x48]
lea ecx, [ebp - 0xac]
call fcn.0050fd86
test al, al
jne 0x513309
lea ecx, [ebp - 0xac]
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
push dword [ebp - 0x24]
mov edx, dword [ebx + 8]
lea esi, [ebp - 0xd0]
sub esp, 0x20
mov eax, dword [edx]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call dword [eax + 0x48]
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + 0xdc], 0
je 0x5134a4
mov eax, dword [ebp - 0x20]
xor esi, esi
mov edx, dword [ebp - 0x38]
sub eax, edx
mov dword [ebp - 0x18], esi
js 0x5134a4
mov edi, dword [ebx + 0x14]
mov eax, dword [edi + 0x30]
add eax, esi
cmp byte [eax + edx], 0x20
jne 0x5135fb
cmp byte [ebp - 0x11], 0
je 0x5135ff
push dword [ebp - 0x1c]
call fcn.004d70d2
test al, al
je 0x5135f3
mov eax, dword [ebp - 0x38]
mov ecx, edi
add eax, esi
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00510956
movsd xmm0, qword [ebp - 0x48]
lea esi, [ebp - 0x78]
sub esp, 0x10
mov edi, esp
sub esp, 0x20
addsd xmm0, qword [eax]
push 8
pop ecx
movsd qword [ebp - 0x78], xmm0
movsd xmm0, qword [ebp - 0x48]
addsd xmm0, qword [eax + 8]
lea eax, [ebp - 0x110]
movsd qword [ebp - 0x70], xmm0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebx + 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0050461c
mov eax, dword [ebx + 8]
add esp, 0x34
mov ecx, dword [ebx + 0x10]
mov eax, dword [eax]
push 0x3d
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
call fcn.004d662b
push 8
pop ecx
lea esi, [ebp - 0x110]
lea edi, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
lea esi, [ebp - 0x130]
or ecx, 0xff000000
push ecx
mov eax, esp
sub esp, 0x20
mov dword [eax], ecx
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
call dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebx + 0x14]
jmp 0x5135ff
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x10]
jmp 0x5135ff
mov byte [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
inc esi
sub eax, edx
mov dword [ebp - 0x18], esi
cmp esi, eax
jle 0x513516
jmp 0x5134a7
comisd xmm1, xmm0
ja 0x5134bd
jmp 0x5134aa