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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x105d9d74]
push esi
push edi
mov edi, dword [ebp + 8]
movzx eax, byte [edi + 0x70]
push eax
call dword [0x105d9eb8]
mov esi, eax
test esi, esi
je 0x100db5cf
mov eax, dword [0x105d9d44]
mov eax, dword [eax + 0x10]
mov dword [esi + 0xc8], eax
mov edx, dword [edi + 0x2c]
test edx, edx
js 0x100db5cf
mov ecx, dword [0x105d9d20]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
test edx, edx
je 0x100db58d
mov ecx, dword [edi]
xor eax, eax
test ecx, ecx
push edx
cmovns eax, ecx
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x150], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x154], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x158], eax
mov dword [esi + 0xf8], 0
mov dword [esi + 0xf4], 0
mov ecx, dword [0x105d9d20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov dword [esi + 0x15c], eax
mov eax, dword [0x105d9d44]
movss xmm0, dword [eax + 0x10]
mulss xmm0, dword [edi + 0x58]
movss dword [esi + 0xc4], xmm0
mov eax, dword [0x105d9d44]
movss xmm0, dword [eax + 0x10]
addss xmm0, dword [edi + 0x40]
movss dword [esi + 0xc8], xmm0
mov eax, dword [edi + 0x44]
mov dword [esi + 0xcc], eax
mov eax, dword [edi + 0x48]
mov dword [esi + 0xd0], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0xd4], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0xd8], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0xec], eax
mov eax, dword [edi + 0x58]
mov dword [esi + 0xf0], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x34], 0
mov dword [esi + 0xdc], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x50], eax
movss xmm0, dword [edi + 0x20]
movss xmm1, dword [edi + 0x24]
movss xmm2, dword [edi + 0x28]
subss xmm0, dword [edi + 0x14]
subss xmm1, dword [edi + 0x18]
subss xmm2, dword [edi + 0x1c]
movss dword [esi + 0xb4], xmm0
movss dword [esi + 0xb8], xmm1
movss dword [esi + 0xbc], xmm2
mov eax, dword [edi + 0x74]
cmp eax, 0xffffffff
jne 0x100db587
mulss xmm1, xmm1
mulss xmm0, xmm0
mulss xmm2, xmm2
addss xmm1, xmm0
movss xmm0, dword [esi + 0xd8]
comiss xmm0, dword [0x101bc1c4]
addss xmm1, xmm2
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
jb 0x100db55a
ucomisd xmm1, xmm0
ja 0x100db543
sqrtsd xmm0, xmm0
jmp 0x100db548
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x1021d898]
jmp 0x100db57b
ucomisd xmm1, xmm0
ja 0x100db566
sqrtsd xmm0, xmm0
jmp 0x100db56b
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [str.333333]
addsd xmm0, qword [0x1021d8a0]
cvttsd2si eax, xmm0
mov dword [esi + 0xfc], eax
movd xmm0, dword [edi + 0x5c]
cvtdq2ps xmm0, xmm0
movss dword [esi + 0xf8], xmm0
mov eax, dword [edi + 0x60]
mov dword [esi + 0xf4], eax
mov eax, esi
mov ecx, dword [edi + 0x78]
or dword [esi + 0x34], ecx
mov ecx, dword [edi + 0x64]
mov dword [esi + 0xe0], ecx
mov ecx, dword [edi + 0x68]
mov dword [esi + 0xe4], ecx
mov ecx, dword [edi + 0x6c]
mov dword [esi + 0xe8], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret