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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x101d5844]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 4]
cmp eax, 0x1d
jb 0x10051ace
mov dword [esi + 4], 0
xor eax, eax
mov edi, dword [ebp + 0x14]
mov bl, byte [ebp + 8]
imul ecx, eax, 0x2c
add ecx, 0x1019dbe0
cmp ecx, dword [esi + 8]
jne 0x10051aea
test bl, bl
je 0x10051eca
movd xmm0, edi
lea edx, [esp + 0x18]
cvtdq2pd xmm0, xmm0
mov eax, edi
mov dword [esi + 8], ecx
shr eax, 0x1f
sub esp, 0x14
addsd xmm0, qword [eax*8 + 0x101c3df0]
cvtpd2ps xmm0, xmm0
movaps xmm2, xmm0
movss dword [esp + 0x20], xmm0
call fcn.100516f0
mov eax, dword [esp + 0x4c]
add esp, 0x14
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10051b38
movss xmm1, dword [0x101c380c]
jmp 0x10051b8e
cmp eax, 0xfffe7960
jg 0x10051b44
xorps xmm1, xmm1
jmp 0x10051b8e
movd xmm2, eax
cvtdq2pd xmm2, xmm2
movsd xmm0, qword [0x101c3978]
mulsd xmm2, qword [0x101c39a8]
divsd xmm2, qword [0x101c3ac8]
movaps xmm1, xmm2
addsd xmm1, qword [0x101c3908]
cvttsd2si eax, xmm1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm2, xmm1
movaps xmm1, xmm2
call fcn.10155700
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm3, dword [esp + 0xc]
movss xmm2, dword [0x101c3c5c]
call fcn.10051500
mov word [esi + 0x54], ax
mov word [esi + 0x56], ax
mov eax, dword [esp + 0x28]
add eax, eax
mov word [esi + 0x5c], ax
mov word [esi + 0x5e], ax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
movzx eax, word [esp + 0x3c]
mov word [esi + 0x6c], ax
movzx eax, word [esp + 0x42]
mov word [esi + 0x6e], ax
movzx eax, word [esp + 0x40]
mov word [esi + 0x70], ax
movzx eax, word [esp + 0x3e]
mov word [esi + 0x72], ax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x78], eax
mov dword [esi + 0x74], eax
movzx eax, word [esp + 0x48]
mov word [esi + 0x7c], ax
movzx eax, word [esp + 0x4e]
mov word [esi + 0x7e], ax
movzx eax, word [esp + 0x4c]
mov word [esi + 0x80], ax
movzx eax, word [esp + 0x4a]
mov word [esi + 0x82], ax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x88], eax
mov dword [esi + 0x84], eax
movzx eax, word [esp + 0x54]
mov word [esi + 0x8c], ax
movzx eax, word [esp + 0x5a]
mov word [esi + 0x8e], ax
movzx eax, word [esp + 0x58]
mov word [esi + 0x90], ax
movzx eax, word [esp + 0x56]
mov word [esi + 0x92], ax
mov eax, dword [esp + 0x68]
mov dword [esi + 0x98], eax
mov dword [esi + 0x94], eax
movzx eax, word [esp + 0x60]
mov word [esi + 0x9c], ax
movzx eax, word [esp + 0x66]
mov word [esi + 0x9e], ax
movzx eax, word [esp + 0x64]
mov word [esi + 0xa0], ax
movzx eax, word [esp + 0x62]
mov word [esi + 0xa2], ax
mov eax, dword [esp + 0x74]
mov dword [esi + 0xa8], eax
mov dword [esi + 0xa4], eax
movzx eax, word [esp + 0x6c]
mov word [esi + 0xac], ax
movzx eax, word [esp + 0x72]
mov word [esi + 0xae], ax
movzx eax, word [esp + 0x70]
mov word [esi + 0xb0], ax
movzx eax, word [esp + 0x6e]
mov word [esi + 0xb2], ax
mov eax, dword [esp + 0x80]
mov dword [esi + 0xb8], eax
mov dword [esi + 0xb4], eax
movzx eax, word [esp + 0x78]
mov word [esi + 0xbc], ax
movzx eax, word [esp + 0x7e]
mov word [esi + 0xbe], ax
movzx eax, word [esp + 0x7c]
mov word [esi + 0xc0], ax
movzx eax, word [esp + 0x7a]
mov word [esi + 0xc2], ax
mov eax, dword [esp + 0x8c]
mov dword [esi + 0xc8], eax
mov dword [esi + 0xc4], eax
movzx eax, word [esp + 0x84]
mov word [esi + 0xcc], ax
movzx eax, word [esp + 0x8a]
mov word [esi + 0xce], ax
movzx eax, word [esp + 0x88]
mov word [esi + 0xd0], ax
movzx eax, word [esp + 0x86]
mov edx, dword [esp + 0x1c]
mov word [esi + 0xd2], ax
mov eax, dword [esp + 0x98]
mov dword [esi + 0xd8], eax
mov dword [esi + 0xd4], eax
movzx eax, word [esp + 0x90]
mov word [esi + 0xdc], ax
movzx eax, word [esp + 0x96]
mov word [esi + 0xde], ax
movzx eax, word [esp + 0x94]
mov word [esi + 0xe0], ax
movzx eax, word [esp + 0x92]
mov word [esi + 0xe2], ax
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc2e4], eax
xor eax, eax
cmp edx, 0xffffdcd8
jle 0x10051dd7
call fcn.10051630
mov edx, dword [esp + 0x18]
mov dword [esi + 0x50], eax
xor eax, eax
cmp edx, 0xffffdcd8
jle 0x10051ded
call fcn.10051630
mov dword [esi + 0xc31c], eax
mov ecx, 0x7f00
mov eax, dword [esp + 0x2c]
cmp eax, ecx
mov dword [esi + 0xc30c], 0x10007000
cmova eax, ecx
mov dword [esi + 0xc310], 0x70001000
movzx eax, ax
mov word [esi + 0xc2ec], ax
mov word [esi + 0xc2ee], ax
mov word [esi + 0xc2f0], ax
mov word [esi + 0xc2f2], ax
mov eax, dword [esp + 0x24]
test eax, eax
jns 0x10051e40
xor eax, eax
jmp 0x10051e4a
mov ecx, 0x7ff0
cmp eax, ecx
cmovg eax, ecx
movss xmm1, dword [esp + 0x34]
xor ecx, ecx
movss xmm3, dword [esp + 0xc]
movss xmm2, dword [0x101c3c5c]
movzx eax, ax
mulss xmm1, xmm1
mov word [esi + 0xc2f4], ax
mov dword [esi + 0xc2f6], ecx
mov word [esi + 0xc2fa], ax
call fcn.10051500
cmp eax, 0x100
jge 0x10051e8e
mov eax, 0x100
jmp 0x10051e9b
cmp eax, 0x7f00
mov ecx, 0x7f00
cmovg eax, ecx
movzx eax, ax
xor ecx, ecx
mov word [esi + 0xc2fc], ax
mov dword [esi + 0xc2fe], ecx
mov word [esi + 0xc302], ax
test bl, bl
je 0x10051eca
push dword [esp + 0x10]
mov dword [esi + 0x10], ecx
mov ecx, esi
push dword [esp + 0x18]
call fcn.100519e0
lea eax, [edi + edi*4]
cmp dword [esi + 0x14], eax
jae 0x10051ed5
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10116b04
mov esp, ebp
pop ebp
ret 0x10