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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x5ceb30]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x10], eax
call fcn.00509592
mov esi, dword [esi + 8]
mov edi, eax
xor eax, eax
mov dword [esp + 0x3c], esi
test esi, esi
jle 0x508f09
xor edx, edx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 0x14]
add edx, ecx
inc eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x70], eax
cdq
idiv esi
xor eax, eax
imul esi, edx, 0x2c
add esi, ecx
mov ecx, dword [edi]
cmp dword [esi], eax
setne al
add eax, 9
add eax, ecx
cmp eax, 0x10000
jle 0x50872f
imul eax, ecx, 0x18
mov ecx, dword [esp + 0x10]
add ebx, eax
mov eax, dword [edi + 4]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x48]
call fcn.00509592
mov edi, eax
imul edx, dword [edi], 0x18
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + ecx*8 + 4]
mov dword [edx + ebx], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + ecx*8 + 8]
mov dword [edx + ebx + 4], eax
imul ecx, dword [edi], 0x18
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
movss xmm0, dword [ecx + ebx]
addss xmm0, dword [edx + eax*8 + 0x14]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [ecx + ebx + 4]
addss xmm0, dword [edx + eax*8 + 0x18]
mov eax, dword [esp + 0x24]
mov dword [ecx + ebx + 0x18], eax
mov edx, dword [esp + 0x10]
movss dword [esp + 0x28], xmm0
mov eax, dword [esp + 0x28]
mov dword [ecx + ebx + 0x1c], eax
mov ecx, dword [edi]
movss xmm0, dword [esi + 0x24]
imul eax, ecx, 0x18
addss xmm0, dword [eax + ebx]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [eax + ebx + 4]
lea eax, [ecx + 2]
addss xmm0, dword [esi + 0x28]
imul ecx, eax, 0x18
mov eax, dword [esp + 0x74]
movss dword [esp + 0x78], xmm0
mov dword [ecx + ebx], eax
mov eax, dword [esp + 0x78]
mov dword [ecx + ebx + 4], eax
mov ecx, dword [edi]
imul eax, ecx, 0x18
movss xmm0, dword [eax + ebx]
addss xmm0, dword [esi + 0x14]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [eax + ebx + 4]
lea eax, [ecx + 3]
addss xmm0, dword [esi + 0x18]
imul ecx, eax, 0x18
mov eax, dword [esp + 0x54]
movss dword [esp + 0x58], xmm0
mov dword [ecx + ebx], eax
mov eax, dword [esp + 0x58]
mov dword [ecx + ebx + 4], eax
imul eax, dword [edi], 0x18
and dword [eax + ebx + 8], 0
and dword [eax + ebx + 0xc], 0
imul eax, dword [edi], 0x18
and dword [eax + ebx + 0x20], 0
mov dword [eax + ebx + 0x24], 0xbf800000
imul eax, dword [edi], 0x18
and dword [eax + ebx + 0x38], 0
mov dword [eax + ebx + 0x3c], 0xbf800000
imul eax, dword [edi], 0x18
and dword [eax + ebx + 0x50], 0
mov dword [eax + ebx + 0x54], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x14], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x10], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x2c], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x28], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x44], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x40], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x5c], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x58], 0xbf800000
mov ecx, dword [edi + 4]
mov ax, word [edi]
mov word [edx + ecx*2], ax
mov cx, word [edi]
push 2
pop eax
add cx, ax
mov eax, dword [edi + 4]
push 3
mov word [edx + eax*2 + 2], cx
mov eax, dword [edi + 4]
mov cx, word [edi]
inc cx
mov word [edx + eax*2 + 4], cx
mov ecx, dword [edi + 4]
mov ax, word [edi]
mov word [edx + ecx*2 + 6], ax
mov cx, word [edi]
pop eax
add cx, ax
mov eax, dword [edi + 4]
push 2
mov word [edx + eax*2 + 8], cx
mov cx, word [edi]
pop eax
add cx, ax
mov eax, dword [edi + 4]
push 4
mov word [edx + eax*2 + 0xa], cx
pop eax
add dword [edi], eax
add dword [edi + 4], 6
cmp dword [esi], 0
jne 0x508b43
imul ecx, dword [edi], 0x18
mov edx, dword [esp + 0x14]
push 2
mov eax, dword [edx]
mov dword [ecx + ebx], eax
mov eax, dword [edx + 4]
mov dword [ecx + ebx + 4], eax
mov eax, dword [edi]
inc eax
imul edx, eax, 0x18
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [eax + ecx*8 + 4]
mov dword [edx + ebx], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + ecx*8 + 8]
mov dword [edx + ebx + 4], eax
mov eax, dword [edi]
pop ecx
add eax, ecx
imul ecx, eax, 0x18
mov eax, dword [esi + 4]
push 0
mov dword [ecx + ebx], eax
mov eax, dword [esi + 8]
mov dword [ecx + ebx + 4], eax
mov ecx, dword [edi]
movss xmm0, dword [esi + 0x14]
lea eax, [ecx + 1]
imul eax, eax, 0x18
addss xmm0, dword [eax + ebx]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esi + 0x18]
addss xmm0, dword [eax + ebx + 4]
lea eax, [ecx + 3]
imul ecx, eax, 0x18
mov eax, dword [esp + 0x30]
movss dword [esp + 0x34], xmm0
mov dword [ecx + ebx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + ebx + 4], eax
mov ecx, dword [edi]
lea eax, [ecx + 2]
imul eax, eax, 0x18
movss xmm0, dword [eax + ebx]
addss xmm0, dword [esi + 0x14]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [eax + ebx + 4]
lea eax, [ecx + 4]
addss xmm0, dword [esi + 0x18]
imul ecx, eax, 0x18
mov eax, dword [esp + 0x38]
movss dword [esp + 0x3c], xmm0
mov dword [ecx + ebx], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + ebx + 4], eax
mov ecx, dword [edi]
lea eax, [ecx + 2]
imul edx, eax, 0x18
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x18]
imul eax, eax, 0x18
add edx, ebx
push edx
add eax, ebx
push eax
call fcn.00484db2
imul esi, dword [edi], 0x18
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
cvtps2pd xmm0, xmm0
and dword [esi + ebx + 8], 0
call fcn.0052e390
cvtsd2ss xmm0, xmm0
movss dword [esi + ebx + 0xc], xmm0
imul eax, dword [edi], 0x18
and dword [eax + ebx + 0x20], 0
and dword [eax + ebx + 0x24], 0
imul eax, dword [edi], 0x18
and dword [eax + ebx + 0x38], 0
and dword [eax + ebx + 0x3c], 0
imul eax, dword [edi], 0x18
mov edx, dword [esp + 0x10]
push 2
pop esi
push 3
and dword [eax + ebx + 0x50], 0
mov dword [eax + ebx + 0x54], 0xbf800000
imul eax, dword [edi], 0x18
and dword [eax + ebx + 0x68], 0
mov dword [eax + ebx + 0x6c], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x14], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x10], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x2c], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x28], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x44], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x40], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x5c], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x58], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x74], 0xbf800000
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x70], 0xbf800000
mov ecx, dword [edi + 4]
mov ax, word [edi]
mov word [edx + ecx*2], ax
mov eax, dword [edi + 4]
mov cx, word [edi]
add cx, si
mov word [edx + eax*2 + 2], cx
mov eax, dword [edi + 4]
mov cx, word [edi]
inc cx
mov word [edx + eax*2 + 4], cx
mov cx, word [edi]
pop eax
add cx, ax
mov eax, dword [edi + 4]
push 4
mov word [edx + eax*2 + 6], cx
mov eax, dword [edi + 4]
mov cx, word [edi]
inc cx
mov word [edx + eax*2 + 8], cx
mov eax, dword [edi + 4]
mov cx, word [edi]
add cx, si
mov word [edx + eax*2 + 0xa], cx
mov cx, word [edi]
pop eax
add cx, ax
mov eax, dword [edi + 4]
push 3
mov word [edx + eax*2 + 0xc], cx
mov cx, word [edi]
pop eax
add cx, ax
mov eax, dword [edi + 4]
push 5
mov word [edx + eax*2 + 0xe], cx
mov eax, dword [edi + 4]
mov cx, word [edi]
add cx, si
mov word [edx + eax*2 + 0x10], cx
pop eax
add dword [edi], eax
add dword [edi + 4], 9
jmp 0x508eee
mov edx, dword [esp + 0xc]
movss xmm0, dword [esi + 0x14]
addss xmm0, dword [esi + 0x1c]
mov ecx, dword [edx]
movss dword [esp + 0x40], xmm0
mov eax, dword [edx + ecx*8 + 4]
movss xmm0, dword [esi + 0x20]
addss xmm0, dword [esi + 0x18]
mov dword [esp + 0x94], eax
mov eax, dword [edx + ecx*8 + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x98], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xa4], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x40]
movss dword [esp + 0x44], xmm0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
call fcn.00484ef0
imul ecx, dword [edi], 0x18
mov edx, dword [esp + 0x14]
push 2
mov eax, dword [edx]
mov dword [ecx + ebx], eax
mov eax, dword [edx + 4]
mov dword [ecx + ebx + 4], eax
mov eax, dword [edi]
inc eax
imul ecx, eax, 0x18
mov eax, dword [esp + 0x98]
mov dword [ecx + ebx], eax
mov eax, dword [esp + 0x9c]
mov dword [ecx + ebx + 4], eax
mov eax, dword [edi]
pop ecx
add eax, ecx
imul ecx, eax, 0x18
mov eax, dword [esp + 0xa4]
mov dword [ecx + ebx], eax
mov eax, dword [esp + 0xa8]
mov dword [ecx + ebx + 4], eax
movss xmm0, dword [esp + 0x94]
addss xmm0, dword [esi + 0x14]
mov eax, dword [edi]
add eax, 3
imul ecx, eax, 0x18
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [esi + 0x18]
addss xmm0, dword [esp + 0x98]
mov eax, dword [esp + 0x4c]
mov dword [ecx + ebx], eax
movss dword [esp + 0x50], xmm0
mov eax, dword [esp + 0x50]
mov dword [ecx + ebx + 4], eax
movss xmm0, dword [esp + 0xa4]
addss xmm0, dword [esi + 0x1c]
mov eax, dword [edi]
add eax, 4
imul ecx, eax, 0x18
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esi + 0x20]
addss xmm0, dword [esp + 0xa8]
mov eax, dword [esp + 0x5c]
mov dword [ecx + ebx], eax
movss dword [esp + 0x60], xmm0
mov eax, dword [esp + 0x60]
mov dword [ecx + ebx + 4], eax
movss xmm0, dword [esp + 0x9c]
addss xmm0, dword [esp + 0x1c]
mov eax, dword [edi]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [esp + 0xa0]
addss xmm0, dword [esp + 0x20]
movss dword [esp + 0x6c], xmm0
add eax, 5
imul ecx, eax, 0x18
mov eax, dword [esp + 0x68]
mov dword [ecx + ebx], eax
mov eax, dword [esp + 0x6c]
mov dword [ecx + ebx + 4], eax
lea ecx, [esp + 0x7c]
movss xmm2, dword [esi + 0x18]
mulss xmm2, dword [esp + 0x98]
movss xmm0, dword [esi + 0x14]
mulss xmm0, dword [esp + 0x94]
movss xmm1, dword [esi + 0x18]
mulss xmm1, dword [edx + 4]
imul eax, dword [edi], 0x18
addss xmm2, xmm0
movss xmm0, dword [esi + 0x14]
mulss xmm0, dword [edx]
addss xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
movss dword [eax + ebx + 0x10], xmm0
imul eax, dword [edi], 0x18
and dword [eax + ebx + 0x28], 0
movss xmm1, dword [esi + 0x18]
mulss xmm1, dword [esp + 0xa8]
movss xmm0, dword [esi + 0x14]
mulss xmm0, dword [esp + 0xa4]
imul eax, dword [edi], 0x18
addss xmm1, xmm0
subss xmm2, xmm1
movss dword [eax + ebx + 0x40], xmm2
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x58], 0xfc23d70a
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x70], 0xfc23d70a
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x88], 0xfc23d70a
movss xmm2, dword [esi + 0x20]
movss xmm0, dword [esp + 0xa4]
mulss xmm0, dword [esi + 0x1c]
mulss xmm2, dword [esp + 0xa8]
movss xmm1, dword [esi + 0x20]
mulss xmm1, dword [edx + 4]
imul eax, dword [edi], 0x18
addss xmm2, xmm0
movss xmm0, dword [edx]
mulss xmm0, dword [esi + 0x1c]
addss xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
movss dword [eax + ebx + 0x14], xmm0
movss xmm1, dword [esi + 0x20]
movss xmm0, dword [esp + 0x94]
mulss xmm1, dword [esp + 0x98]
mulss xmm0, dword [esi + 0x1c]
imul eax, dword [edi], 0x18
addss xmm1, xmm0
subss xmm2, xmm1
movss dword [eax + ebx + 0x2c], xmm2
imul eax, dword [edi], 0x18
and dword [eax + ebx + 0x44], 0
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x5c], 0xfc23d70a
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x74], 0xfc23d70a
imul eax, dword [edi], 0x18
mov dword [eax + ebx + 0x8c], 0xfc23d70a
lea eax, [esp + 0x94]
push eax
call fcn.0050a4b5
imul eax, dword [edi], 0x18
lea ecx, [esp + 0x7c]
add eax, ebx
push eax
call fcn.00507eef
mov cx, word [edi]
mov edx, dword [esp + 0x10]
push 3
pop eax
add cx, ax
mov eax, dword [edi + 4]
mov word [edx + eax*2], cx
mov cx, word [edi]
mov eax, dword [edi + 4]
inc cx
push 2
pop esi
push 4
mov word [edx + eax*2 + 2], cx
mov cx, word [edi]
mov eax, dword [edi + 4]
add cx, si
mov word [edx + eax*2 + 4], cx
mov cx, word [edi]
pop eax
add cx, ax
mov eax, dword [edi + 4]
push 3
mov word [edx + eax*2 + 6], cx
mov cx, word [edi]
pop eax
add cx, ax
mov eax, dword [edi + 4]
push 5
mov word [edx + eax*2 + 8], cx
mov cx, word [edi]
mov eax, dword [edi + 4]
add cx, si
mov word [edx + eax*2 + 0xa], cx
mov cx, word [edi]
pop eax
add cx, ax
mov eax, dword [edi + 4]
push 3
mov word [edx + eax*2 + 0xc], cx
mov cx, word [edi]
pop eax
add cx, ax
mov eax, dword [edi + 4]
push 4
mov word [edx + eax*2 + 0xe], cx
mov cx, word [edi]
pop eax
add cx, ax
mov eax, dword [edi + 4]
mov word [edx + eax*2 + 0x10], cx
mov ecx, dword [edi + 4]
mov ax, word [edi]
mov word [edx + ecx*2 + 0x12], ax
mov eax, dword [edi + 4]
mov cx, word [edi]
add cx, si
mov word [edx + eax*2 + 0x14], cx
mov cx, word [edi]
mov eax, dword [edi + 4]
inc cx
mov word [edx + eax*2 + 0x16], cx
add dword [edi], 6
add dword [edi + 4], 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x70]
add edx, 0x2c
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
cmp eax, esi
jl 0x5086e2
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret