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

Disassembly:
sub esp, 0x68
movsd xmm0, qword [esp + 0x6c]
push ebx
push ebp
push esi
movsd qword [esp + 0x78], xmm0
mov ebx, dword [esp + 0x78]
push edi
mov edi, dword [esp + 0x80]
mov eax, edi
shr eax, 0x14
and edi, 0xfffff
and eax, 0x7ff
je 0x10509055
add ebx, 0
lea edx, [eax - 0x433]
mov dword [esp + 0x7c], edx
adc edi, 0x100000
jmp 0x1050905d
mov dword [esp + 0x7c], 0xfffffbce
mov ebp, ebx
mov dword [esp + 0x2c], edi
mov eax, edi
mov dword [esp + 0x28], ebx
shld eax, ebp, 1
add ebp, ebp
mov dword [esp + 0x18], eax
mov esi, ebp
mov ecx, eax
add esi, 1
mov dword [esp + 0x10], esi
adc ecx, 0
xor eax, eax
or eax, ecx
mov dword [esp + 0x14], ecx
je 0x10509096
push ecx
call fcn.10495470
add esp, 4
jmp 0x105090a1
push esi
call fcn.10495470
add esp, 4
add al, 0x20
mov edx, dword [esp + 0x14]
movzx esi, al
mov eax, dword [esp + 0x10]
mov ecx, esi
call fcn.10511ff0
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x7c]
dec edx
mov dword [esp + 0x38], eax
mov ecx, edx
sub ecx, esi
mov dword [esp + 0x40], ecx
test ebx, ebx
jne 0x105090ed
cmp edi, 0x100000
jne 0x105090ed
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x3fffff
lea edx, [ebp - 2]
jmp 0x10509103
mov eax, dword [esp + 0x18]
add ebp, 0xffffffff
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x7c]
adc eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x74]
sub edx, ecx
movq xmm1, qword [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, 0xffffffc3
sub eax, ecx
mov dword [esp + 0x50], ecx
movd xmm0, edx
psllq xmm1, xmm0
movups xmm0, xmmword [esp + 0x38]
movq qword [esp + 0x48], xmm1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movups xmmword [esp + 0x38], xmm0
mulsd xmm1, qword [0x10a51a00]
movups xmm0, xmmword [esp + 0x48]
addsd xmm1, qword [0x10a51a10]
movups xmmword [esp + 0x58], xmm0
cvttsd2si edx, xmm1
movd xmm0, edx
cvtdq2pd xmm0, xmm0
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1050916f
inc edx
mov esi, dword [esp + 0x8c]
mov eax, 0x15c
sar edx, 3
lea ecx, [edx*8 + 8]
sub eax, ecx
mov dword [esi], eax
mov eax, dword [ecx + 0x10a512b8]
mov ecx, dword [ecx + 0x10a512bc]
mov dword [esp + 0x18], eax
movsx eax, word [edx*2 + 0x10a51572]
mov dword [esp + 0x20], eax
xor eax, eax
or eax, edi
mov dword [esp + 0x1c], ecx
je 0x105091ba
push edi
call fcn.10495470
add esp, 4
jmp 0x105091c5
push ebx
call fcn.10495470
add esp, 4
add al, 0x20
movq xmm1, qword [esp + 0x28]
lea ecx, [esp + 0x48]
movzx eax, al
sub ebp, eax
mov dword [esp + 0x50], ebp
movd xmm0, eax
lea eax, [esp + 0x18]
push eax
psllq xmm1, xmm0
lea eax, [esp + 0x6c]
push eax
movq qword [esp + 0x50], xmm1
call fcn.105089a0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
call fcn.105089a0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x60]
call fcn.105089a0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add ecx, 0xffffffff
push esi
push dword [esp + 0x8c]
adc eax, 0xffffffff
mov dword [esp + 0x30], ecx
sub ecx, dword [esp + 0x50]
push dword [esp + 0x8c]
mov dword [esp + 0x38], eax
sbb eax, dword [esp + 0x58]
add ecx, 0xffffffff
adc eax, 0xffffffff
push eax
push ecx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.10508be0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret