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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x6160
call fcn.100ea210
mov esi, esp
mov dword [esi + 0x6148], ebp
mov dword [esi + 0x614c], esp
mov dword [esi + 0x6158], 0xffffffff
lea eax, [esi + 0x6150]
mov dword [esi + 0x6154], 0x10042c90
mov ecx, dword fs:[0]
mov dword [esi + 0x6150], ecx
mov dword fs:[0], eax
mov edx, dword [0x102a22ac]
mov eax, dword [edx]
mov eax, dword [eax]
test eax, eax
je 0x10041b28
mov ecx, dword [0x102a2384]
mov edx, dword [edx + 0x178]
mov edi, dword [ecx]
push dword [edx + eax]
call dword [edi + 0x10]
test eax, eax
je 0x10041b28
mov eax, dword [0x102a22ac]
mov ecx, dword [eax]
mov eax, dword [eax + 0x178]
mov edx, dword [ecx]
mov ecx, dword [0x102a2384]
mov edi, dword [ecx]
push dword [eax + edx]
call dword [edi + 0x10]
mov edx, dword [0x102a22ac]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 0x108]
mov edi, dword [ecx]
movzx eax, word [edx + eax]
push eax
call dword [edi + 8]
test eax, eax
je 0x10041b28
mov eax, dword [0x102a22ac]
mov ecx, dword [eax]
mov eax, dword [eax + 0x178]
mov edx, dword [ecx]
mov ecx, dword [0x102a2384]
mov edi, dword [ecx]
push dword [eax + edx]
call dword [edi + 0x10]
mov edx, dword [0x102a22ac]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 0x108]
mov edi, dword [ecx]
movzx eax, word [edx + eax]
push eax
call dword [edi + 8]
cmp dword [eax + 0xc8], 0
je 0x10041b28
mov eax, dword [0x102a22ac]
mov ecx, dword [eax]
mov eax, dword [eax + 0x178]
mov edx, dword [ecx]
mov ecx, dword [0x102a2384]
mov edi, dword [ecx]
push dword [eax + edx]
call dword [edi + 0x10]
mov ecx, dword [0x102a22ac]
mov edx, dword [ecx + 0x108]
cmp word [edx + eax], 0x1f
je 0x10041b28
movzx ebx, byte [ebp + 0x10]
mov eax, dword [ecx]
mov ecx, dword [ecx + 0x34]
mov eax, dword [eax]
movss xmm0, dword [ecx + eax]
movss xmm1, dword [ecx + eax + 4]
mulss xmm0, xmm0
xorps xmm2, xmm2
addss xmm2, xmm0
mulss xmm1, xmm1
addss xmm1, xmm2
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x10041aec
sqrtsd xmm0, xmm0
jmp 0x10041b04
sub esp, 8
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
add esp, 8
fstp qword [esi + 0x58]
movsd xmm0, qword [esi + 0x58]
cvtsd2ss xmm0, xmm0
test bl, bl
jne 0x10041b1b
movss xmm1, dword [0x101492a8]
ucomiss xmm1, xmm0
ja 0x10041b28
jmp 0x10041b48
movss xmm1, dword [0x101492a4]
ucomiss xmm1, xmm0
jbe 0x10041b48
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x6150]
mov dword fs:[0], eax
mov eax, dword [esi + 0x14]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea edi, [esi + 0x18]
mov ecx, 0x8421085
mov eax, edi
mul ecx
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
mov ecx, eax
shl ecx, 5
sub eax, ecx
lea ecx, [esi + eax]
add ecx, 0x18
lea eax, [esi + 0x30b8]
mov dword [esi + 0x44], ecx
rol eax, cl
sub eax, edi
bswap eax
mov dword [esi + 0x40], eax
mov edi, 1
jmp 0x10041b94
mov edi, dword [esi + 0x48]
inc edi
mov eax, dword [0x102a22bc]
bswap eax
mov edx, dword [0x102a22c0]
add edx, eax
mov ecx, dword [0x102a22c4]
ror edx, cl
cmp edi, dword [edx + 0x18]
setle al
jg 0x10041b28
mov dword [esi + 0x14], eax
mov dword [esi + 0x48], edi
lea ecx, [edi - 1]
cmp ecx, 0x40
jae 0x100423eb
mov edx, dword [0x102a22ac]
mov eax, dword [edx]
mov eax, dword [eax]
test eax, eax
je 0x10041b90
mov ebx, dword [edx + 0x184]
cmp byte [ebx + eax], 0
jne 0x10041b90
mov edx, dword [edx + 0x1c]
mov dword [esi + 8], edx
cmp dword [edx + eax], 0
jle 0x10041b90
mov edx, dword [0x102a2340]
imul edi, ecx, 0x4060
mov dword [esi + 0x10], edx
mov ecx, dword [edx + edi + 0x20]
test ecx, ecx
je 0x10041b90
cmp byte [ebx + ecx], 0
jne 0x10041b90
cmp ecx, eax
je 0x10041b90
mov eax, dword [esi + 8]
cmp dword [eax + ecx], 0
jle 0x10041b90
mov eax, dword [ecx + 8]
add ecx, 8
mov eax, dword [eax + 0x24]
mov dword [esi + 0x6158], 0xffffffff
call eax
test al, al
jne 0x10041b90
mov eax, dword [esi + 0x10]
add eax, edi
add eax, 0x20
mov eax, dword [eax]
mov dword [esi + 8], eax
mov eax, dword [0x102a22ac]
mov ecx, dword [eax]
mov ebx, dword [ecx]
mov ecx, dword [eax + 0x284]
mov eax, dword [ecx]
call dword [eax + 0x34]
test ebx, ebx
je 0x10041d01
test eax, eax
jne 0x10041d01
mov ecx, ebx
add ecx, 8
je 0x10041d01
cmp dword [esi + 8], 0xfffffff8
je 0x10041d01
mov eax, dword [ebx + 8]
call dword [eax + 0x28]
mov dword [esi + 0xc], eax
mov ecx, dword [0x102a2380]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edx, dword [0x102a22ac]
cmp dword [esi + 0xc], eax
jne 0x10041ce9
mov eax, dword [edx + 0x184]
cmp byte [eax + ebx], 0
je 0x10041ce0
mov ecx, dword [0x102a2384]
mov eax, dword [edx + 0x18c]
mov edx, dword [ecx]
push dword [eax + ebx]
call dword [edx + 0x10]
mov edx, dword [0x102a22ac]
cmp eax, 0xdddddddd
je 0x10041ce9
mov ecx, dword [edx + 0x188]
mov ecx, dword [ecx + ebx]
and ecx, 0xfffffffe
cmp ecx, 4
cmove ebx, eax
jmp 0x10041ce9
mov eax, dword [edx + 0x1c]
cmp dword [eax + ebx], 0
jle 0x10041cab
mov dword [esi + 0xc], ebx
mov eax, dword [edx + 0x20]
mov ecx, dword [esi + 8]
mov ecx, dword [eax + ecx]
mov edx, dword [esi + 0xc]
cmp ecx, dword [eax + edx]
je 0x10041b90
mov eax, dword [esi + 0x10]
cmp dword [eax + edi + 0x3c60], 0
je 0x10041b90
mov dword [esi + 0xc], esp
mov eax, dword [esi + 0x10]
lea ecx, [eax + edi]
add ecx, 0x3c50
push eax
sub esp, 0xc
mov dword [esi + 8], esp
mov eax, dword [ecx + 0xc]
mov edx, eax
shr edx, 1
mov ebx, dword [ecx + 8]
dec ebx
and ebx, edx
mov ecx, dword [ecx + 4]
and eax, 1
mov ecx, dword [ecx + ebx*4]
mov edx, dword [esi + 8]
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov edx, dword [ecx + eax*8 + 4]
test edx, edx
je 0x10041d5b
lock inc dword [edx + 4]
mov ebx, dword [esi + 0x10]
add ebx, edi
mov edx, dword [ecx + eax*8]
mov edi, dword [esi + 8]
mov dword [edi + 4], edx
mov eax, dword [ecx + eax*8 + 4]
mov dword [edi + 8], eax
mov eax, edi
add eax, 4
mov dword [esi + 0x10], eax
mov byte [edi + 0xc], 1
mov dword [edi], ebx
mov byte [esi + 0x30d0], 0
mov dword [esi + 0x30bc], 0
mov dword [esi + 0x30b8], 0
mov dword [esi + 0x30c0], 0
push 0x3071
push 0
lea eax, [esi + 0x30d4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi + 0x30c4], ebx
lea ecx, [esi + 0x30c8]
push dword [esi + 0x10]
call fcn.100347c0
cmp byte [edi + 0xc], 0
je 0x10041df3
mov edi, dword [edi + 8]
test edi, edi
je 0x10041df3
lock dec dword [edi + 4]
jne 0x10041df3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock dec dword [edi + 8]
jne 0x10041df3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esp, dword [esi + 0xc]
mov eax, dword [esi + 0x30dc]
cmp eax, dword [esi + 0x30e0]
je 0x10041e0a
mov dword [esi + 0x30e0], eax
mov edx, dword [0x102a22ac]
mov eax, dword [edx]
mov ecx, dword [edx + 0x34]
mov dword [esi + 0x10], ecx
mov edi, dword [eax]
mov ebx, dword [0x102a22bc]
mov eax, dword [0x102a22c0]
mov ecx, dword [0x102a22c4]
mov dword [esi + 8], ecx
mov ecx, dword [esi + 0x10]
movss xmm3, dword [ecx + edi]
movss xmm1, dword [ecx + edi + 4]
movss xmm2, dword [ecx + edi + 8]
bswap ebx
add eax, ebx
mov ecx, dword [esi + 8]
ror eax, cl
movss xmm5, dword [eax + 0x20]
mulss xmm1, xmm5
mulss xmm2, xmm5
mulss xmm1, dword [ebp + 0xc]
movss xmm4, dword [edx + 0x4010]
movss xmm6, dword [edx + 0x4018]
addss xmm1, dword [edx + 0x4014]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
xorps xmm0, xmm0
movaps xmmword [esi + 0x90], xmm0
movaps xmmword [esi + 0x80], xmm0
movaps xmmword [esi + 0x70], xmm0
movaps xmmword [esi + 0x60], xmm0
lea eax, [esi + 0xa0]
lea ecx, [esi + 0x30a0]
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x40], xmm0
movups xmmword [eax + 0x50], xmm0
movups xmmword [eax + 0x60], xmm0
movups xmmword [eax + 0x70], xmm0
movups xmmword [eax + 0x80], xmm0
movups xmmword [eax + 0x90], xmm0
movups xmmword [eax + 0xa0], xmm0
movups xmmword [eax + 0xb0], xmm0
movups xmmword [eax + 0xc0], xmm0
movups xmmword [eax + 0xd0], xmm0
movups xmmword [eax + 0xe0], xmm0
movups xmmword [eax + 0x110], xmm0
movups xmmword [eax + 0x100], xmm0
movups xmmword [eax + 0xf0], xmm0
movups xmmword [eax + 0x140], xmm0
movups xmmword [eax + 0x130], xmm0
movups xmmword [eax + 0x120], xmm0
movups xmmword [eax + 0x150], xmm0
movups xmmword [eax + 0x160], xmm0
movups xmmword [eax + 0x170], xmm0
movups xmmword [eax + 0x180], xmm0
movups xmmword [eax + 0x190], xmm0
movups xmmword [eax + 0x1a0], xmm0
movups xmmword [eax + 0x1b0], xmm0
movups xmmword [eax + 0x1c0], xmm0
movups xmmword [eax + 0x1d0], xmm0
movups xmmword [eax + 0x1e0], xmm0
movups xmmword [eax + 0x1f0], xmm0
movups xmmword [eax + 0x200], xmm0
movups xmmword [eax + 0x210], xmm0
movups xmmword [eax + 0x220], xmm0
movups xmmword [eax + 0x230], xmm0
movups xmmword [eax + 0x260], xmm0
movups xmmword [eax + 0x250], xmm0
movups xmmword [eax + 0x240], xmm0
movups xmmword [eax + 0x290], xmm0
movups xmmword [eax + 0x280], xmm0
movups xmmword [eax + 0x270], xmm0
movups xmmword [eax + 0x2c0], xmm0
movups xmmword [eax + 0x2b0], xmm0
movups xmmword [eax + 0x2a0], xmm0
movups xmmword [eax + 0x2f0], xmm0
movups xmmword [eax + 0x2e0], xmm0
movups xmmword [eax + 0x2d0], xmm0
add eax, 0x300
cmp eax, ecx
jne 0x10041eaf
movups xmmword [ecx], xmm0
mov byte [ecx + 0x10], 0
mov eax, dword [esi + 0x30c4]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x1004201c
mov eax, dword [0x102a22ac]
mov ecx, dword [eax + 0x184]
cmp byte [ecx + edx], 0
je 0x10042143
mov edi, esp
mulss xmm3, xmm5
movss xmm0, dword [ebp + 0xc]
mulss xmm3, xmm0
addss xmm4, xmm3
mulss xmm2, xmm0
addss xmm2, xmm6
mov ecx, dword [0x102a235c]
push eax
sub esp, 0x18
mov eax, esp
movss dword [eax + 0xc], xmm4
movss dword [eax + 0x10], xmm1
movss dword [eax + 0x14], xmm2
cmp byte [esi + 0x30d0], 0
je 0x100423fa
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov edx, dword [esi + 0x30cc]
test edx, edx
mov dword [esi + 8], edi
je 0x10042090
lock inc dword [edx + 4]
mov edx, dword [esi + 0x30cc]
mov dword [esi + 0x6158], 0
jmp 0x10042092
xor edx, edx
mov edi, dword [esi + 0x30c8]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
lea edx, [esi + 0x30b8]
mov dword [eax], edx
lea edx, [esi + 0x30]
mov dword [eax + 0x18], edx
mov dword [esi + 0x6158], 0
call fcn.10029dc0
mov esp, dword [esi + 8]
mov eax, dword [esi + 0x30c4]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x100420e0
mov eax, dword [0x102a22ac]
mov ecx, dword [eax + 0x184]
cmp byte [ecx + edx], 0
je 0x100422cb
mov ecx, dword [0x102a235c]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x44]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x40]
mov dword [esi + 0x18], eax
push 0
lea eax, [esi + 0x30]
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
call fcn.1002ad80
mov ebx, eax
lea ecx, [esi + 0x30]
call fcn.10017df0
lea ecx, [esi + 0x30b8]
call fcn.1001dbe0
test bl, bl
je 0x10041b90
jmp 0x10041b2f
mov eax, dword [eax + 0x1c]
cmp dword [eax + edx], 0
jle 0x1004201c
movss dword [esi + 0x24], xmm6
movss dword [esi + 0x28], xmm5
movss dword [esi + 0x2c], xmm4
movss dword [esi + 0xc], xmm3
movss dword [esi + 0x10], xmm2
movss dword [esi + 8], xmm1
lea ecx, [edx + 8]
mov dword [esi + 0x3c], edx
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x24]
mov dword [esi + 0x6158], 0
call eax
test al, al
movss xmm1, dword [esi + 8]
movss xmm2, dword [esi + 0x10]
movss xmm3, dword [esi + 0xc]
movss xmm4, dword [esi + 0x2c]
movss xmm5, dword [esi + 0x28]
movss xmm6, dword [esi + 0x24]
mov ebx, dword [esi + 0x3c]
jne 0x1004201c
mov edi, dword [0x102a22ac]
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + ebx + 8]
mov dword [esi + 0x30a4], eax
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + ebx + 0xc]
mov dword [esi + 0x30a8], eax
mov byte [esi + 0x30b0], 0
mov ecx, dword [ebx + 0x290c]
mov dword [esi + 0x30a0], ecx
mov eax, dword [ebx + 0x2900]
test eax, eax
je 0x1004222e
shl ecx, 4
lea ecx, [ecx + ecx*2]
push ecx
push eax
lea eax, [esi + 0xa0]
push eax
call sub.VCRUNTIME140.dll_memcpy
movss xmm6, dword [esi + 0x24]
movss xmm5, dword [esi + 0x28]
movss xmm4, dword [esi + 0x2c]
movss xmm3, dword [esi + 0xc]
movss xmm2, dword [esi + 0x10]
movss xmm1, dword [esi + 8]
add esp, 0xc
mov byte [esi + 0x30b0], 1
mov eax, dword [edi + 0x18]
mov eax, dword [ebx + eax + 4]
mov dword [esi + 0x30ac], eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + ebx + 8]
lea edx, [esi + 0x6c]
mov dword [edx + 0x24], ecx
movsd xmm0, qword [eax + ebx]
movsd qword [edx + 0x1c], xmm0
mov eax, dword [ebx + 0x3b0]
mov dword [edx + 0x18], eax
movsd xmm0, qword [ebx + 0x3a8]
movsd qword [edx + 0x10], xmm0
mov eax, dword [edi + 0x60]
movsd xmm0, qword [eax + ebx]
movsd qword [esi + 0x60], xmm0
mov eax, dword [eax + ebx + 8]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x64]
movsd xmm0, qword [eax + ebx]
movsd qword [edx], xmm0
mov eax, dword [eax + ebx + 8]
mov dword [edx + 8], eax
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + ebx + 8]
lea edx, [esi + 0x94]
mov dword [edx + 8], ecx
movsd xmm0, qword [eax + ebx]
movsd qword [edx], xmm0
mov eax, dword [edi + 0x208]
mov eax, dword [eax + ebx]
test eax, eax
je 0x1004201c
movss xmm0, dword [eax + 0x80]
movss dword [esi + 0x78], xmm0
jmp 0x1004201c
mov eax, dword [eax + 0x1c]
cmp dword [eax + edx], 0
jle 0x100420e0
lea ecx, [edx + 8]
mov eax, dword [edx + 8]
mov dword [esi + 8], edx
call dword [eax + 0x24]
mov edi, dword [esi + 8]
test al, al
jne 0x100420e0
mov ecx, dword [esi + 0x30a4]
mov eax, dword [0x102a22ac]
mov edx, dword [eax + 0xdc]
mov dword [edx + edi + 8], ecx
mov ecx, dword [esi + 0x30a8]
mov edx, dword [eax + 0xdc]
mov dword [edx + edi + 0xc], ecx
cmp byte [esi + 0x30b0], 0
je 0x10042344
mov eax, dword [esi + 0x30a0]
shl eax, 4
lea eax, [eax + eax*2]
push eax
lea eax, [esi + 0xa0]
push eax
push dword [edi + 0x2900]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [0x102a22ac]
mov ecx, dword [esi + 0x30ac]
mov eax, dword [eax + 0x18]
mov dword [edi + eax + 4], ecx
mov eax, dword [0x102a22ac]
mov eax, dword [eax + 0x2c]
lea edx, [esi + 0x6c]
mov ecx, dword [edx + 0x24]
mov dword [eax + edi + 8], ecx
movsd xmm0, qword [edx + 0x1c]
movsd qword [eax + edi], xmm0
mov eax, dword [edx + 0x18]
mov dword [edi + 0x3b0], eax
movsd xmm0, qword [edx + 0x10]
movsd qword [edi + 0x3a8], xmm0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov ecx, dword [esi + 8]
test eax, eax
je 0x100423aa
mov edx, dword [0x102a22ac]
mov ecx, eax
lea eax, [esi + 0x6c]
push eax
lea eax, [esi + 0x60]
push eax
call dword [edx + 0x300]
mov ecx, dword [esi + 8]
movss xmm0, dword [esi + 0x78]
mov dword [esi + 0x4c], 0
movss dword [esi + 0x50], xmm0
mov dword [esi + 0x54], 0
mov eax, dword [0x102a22ac]
lea edx, [esi + 0x4c]
push edx
call dword [eax + 0x2ec]
mov ecx, dword [esi + 8]
mov eax, dword [0x102a22ac]
lea edx, [esi + 0x94]
push edx
call dword [eax + 0x2f0]
jmp 0x100420e0
mov dword [esi + 0x6158], 0xffffffff
call fcn.1002e2d0
mov dword [esi + 0x6158], 0
call fcn.1002e760
nop dword [eax]
push ebp
sub esp, 0x1c
lea esi, [ebp - 0x615c]
mov ebp, dword [esi + 0x6148]
lea ecx, [esi + 0x30]
call fcn.10017df0
lea ecx, [esi + 0x30b8]
call fcn.1001dbe0
add esp, 0x1c
pop ebp
ret