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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x18a8
call fcn.1006df70
mov eax, dword [0x100ca00c]
xor eax, esp
mov dword [esp + 0x18a4], eax
mov eax, dword [0x100ca06c]
mov dword [esp + 0x24], ecx
push esi
push edi
cmp eax, 3
ja case.default.0x1000245e
jmp dword [eax*4 + 0x10002e7c]
mov ecx, dword [0x100ebbe0]
push dword [0x100ebbb8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
jmp 0x100024c3
mov ecx, dword [0x100ebbe0]
push dword [0x100ebbb8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
mov cl, al
cmp cl, byte [0x100ebf99]
je 0x100024b2
test cl, cl
je 0x100024b2
cmp byte [0x100ebf9a], 0
mov byte [0x100ebf99], cl
sete al
mov byte [0x100ebf9a], al
jmp 0x100024c3
mov al, byte [0x100ebf9a]
mov byte [0x100ebf99], cl
jmp 0x100024c3
mov al, byte [esp + 0xb]
test al, al
je case.0x1000245e.3
cmp byte [0x100ebbb4], 0
je case.0x1000245e.3
cmp byte [0x100ebb9f], 0
je 0x10002517
mov ecx, dword [0x100ebba0]
test ecx, ecx
je 0x1000251d
mov eax, dword [ecx]
mov eax, dword [eax + 0x204]
call eax
test al, al
jne 0x10002517
mov eax, dword [0x100ebbfc]
mov dword [0x100ebba0], eax
pop edi
pop esi
mov ecx, dword [esp + 0x18a4]
xor ecx, esp
call fcn.1006cd6e
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x100ebba0]
mov edx, dword [0x100ebbfc]
cmp ecx, edx
je 0x10002e67
mov eax, dword [edx]
lea ecx, [esp + 0x78]
push ecx
mov ecx, edx
mov dword [esp + 0x20], 0
call dword [eax + 0x22c]
cmp byte [0x100ebb9f], 0
je 0x10002567
mov ecx, dword [0x100ebba0]
test ecx, ecx
je 0x10002567
mov eax, dword [ecx]
mov eax, dword [eax + 0x204]
call eax
test al, al
jne 0x10002b32
mov ecx, dword [0x100cbb34]
xor esi, esi
movss xmm0, dword [0x100c4e28]
mov dword [0x100ebba0], 0
movss dword [esp + 0x10], xmm0
mov eax, dword [ecx]
mov dword [esp + 0x34], esi
mov eax, dword [eax + 0x18]
call eax
test eax, eax
jle 0x10002b32
mov edi, dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov ecx, dword [0x100cbb34]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x10002b14
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x204]
call edx
test al, al
je 0x10002b14
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x208]
call eax
test al, al
je 0x10002b14
mov ecx, dword [0x100ebbfc]
cmp esi, ecx
je 0x10002b14
cmp byte [0x100ebba9], 0
jne 0x1000260d
mov eax, dword [esi + 0x9c]
cmp eax, dword [ecx + 0x9c]
je 0x10002b14
push 0x100ebf28
mov byte [esp + 0xf], 0
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
jne 0x10002bcd
mov eax, dword [0x100ebc38]
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
jne 0x100026d0
nop dword [eax]
movq xmm0, qword [eax + 0x10]
mov ecx, dword [eax + 0x18]
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x40], ecx
cmp dword [esp + 0x38], esi
jne 0x1000265f
cmp byte [esp + 0x3c], 0
jne 0x100026b2
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x10002685
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x10002681
cmp eax, dword [ecx + 8]
jne 0x10002681
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x10002671
mov eax, ecx
jmp 0x1000269c
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x1000269c
nop
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x10002690
cmp byte [eax + 0xd], 0
je 0x10002640
push 0x100ebf28
call edi
mov al, byte [esp + 0xf]
add esp, 4
jmp 0x100026dc
push 0x100ebf28
call edi
add esp, 4
mov al, 1
cmp byte [0x100ebbaa], 0
jne 0x100026dc
cmp byte [0x100ebb8a], 0
jmp 0x100026e7
push 0x100ebf28
call edi
add esp, 4
xor al, al
cmp byte [0x100ebb8a], 0
je 0x100026ed
test al, al
je 0x10002b14
lea edi, [esp + 0xa8]
mov esi, 0x80
nop dword [eax]
mov ecx, edi
call fcn.100019d0
add edi, 0x30
sub esi, 1
jne 0x10002700
mov esi, dword [esp + 0x14]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
mov ecx, dword [0x100ebbd0]
push ecx
movss xmm0, dword [ecx + 0xc]
lea ecx, [esp + 0xac]
movss dword [esp], xmm0
push pe_nt_image_headers32
push 0x80
push ecx
mov ecx, eax
call edx
test al, al
je 0x10002b0e
mov eax, dword [0x100ebbbc]
sub eax, 0
je 0x10002782
sub eax, 1
je 0x10002778
sub eax, 1
je 0x1000276e
mov dword [esp + 0xc], 0x10075763
jmp 0x1000278a
mov dword [esp + 0xc], str.ValveBiped.Bip01_Pelvis
jmp 0x1000278a
mov dword [esp + 0xc], str.ValveBiped.Bip01_Spine2
jmp 0x1000278a
mov dword [esp + 0xc], str.ValveBiped.Bip01_Head1
mov eax, dword [0x100cbb2c]
mov ecx, esi
mov eax, dword [eax]
mov edi, dword [eax + 0x70]
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
call eax
mov ecx, eax
mov esi, dword [eax]
mov eax, dword [esi + 0x24]
call eax
mov ecx, dword [0x100cbb2c]
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.10002360
mov eax, dword [esp + 0x20]
sub esp, 8
mov esi, dword [esp + 0x20]
lea eax, [eax + eax*2]
add eax, eax
movss xmm0, dword [esp + eax*8 + 0xc0]
movss xmm1, dword [esp + eax*8 + 0xd0]
movss xmm2, dword [esp + eax*8 + 0xe0]
mov eax, esp
movss dword [esp + 0x3c], xmm0
sub esp, 0xc
unpcklps xmm0, xmm1
mov ecx, esp
movss dword [esp + 0x64], xmm2
mov edi, dword [esp + 0x64]
movq qword [eax], xmm0
movaps xmmword [esp + 0x68], xmm0
movq xmm0, qword [esp + 0x90]
mov dword [eax + 8], edi
mov eax, dword [esp + 0x98]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, esi
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x30], xmm2
call fcn.100020c0
add esp, 0x18
test al, al
jne 0x1000284d
cmp byte [0x100ebba8], al
jne 0x10002b0e
cmp byte [0x100ebbaa], 0
jne 0x100028cd
mov edi, dword [0x100ebc38]
mov edx, edi
mov eax, dword [edi + 4]
mov cl, byte [eax + 0xd]
mov byte [esp + 0xb], cl
test cl, cl
jne 0x10002884
mov ecx, eax
nop
cmp dword [ecx + 0x10], esi
jae 0x1000287a
mov ecx, dword [ecx + 8]
jmp 0x1000287e
mov edx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10002870
cmp byte [edx + 0xd], 0
jne 0x1000288f
cmp esi, dword [edx + 0x10]
jae 0x10002891
mov edx, edi
cmp byte [esp + 0xb], 0
mov ecx, edi
jne 0x100028b4
nop word [eax + eax]
cmp dword [eax + 0x10], esi
jae 0x100028aa
mov eax, dword [eax + 8]
jmp 0x100028ae
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x100028a0
cmp byte [ecx + 0xd], 0
jne 0x100028bf
cmp esi, dword [ecx + 0x10]
jae 0x100028c1
mov ecx, edi
cmp edx, ecx
jne 0x10002b0e
mov edi, dword [esp + 0x4c]
movss xmm0, dword [0x100c4e28]
mov eax, dword [0x100ebbb0]
movaps xmm1, xmm0
movss dword [esp + 0xc], xmm0
movss dword [esp + 0x14], xmm1
test eax, eax
jne 0x1000294f
mov ecx, dword [0x100ebbfc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
movss xmm1, dword [eax]
movss xmm2, dword [eax + 4]
subss xmm2, dword [esp + 0x20]
subss xmm1, dword [esp + 0x30]
movss xmm0, dword [eax + 8]
subss xmm0, dword [esp + 0x18]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm0, xmm2
call fcn.100015e0
comiss xmm0, dword [esp + 0x10]
movss dword [esp + 0xc], xmm0
ja 0x10002b0e
movss xmm1, dword [esp + 0x14]
jmp 0x10002a33
cmp eax, 1
jne 0x10002983
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x1b0]
call eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [esp + 0x10]
movss dword [esp + 0xc], xmm0
ja 0x10002b0e
movss xmm1, dword [esp + 0x14]
jmp 0x10002a33
cmp eax, 2
jne 0x10002a3b
mov ecx, dword [0x100cbb3c]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov ecx, dword [0x100cbb28]
lea edx, [esp + 0x6c]
movaps xmm0, xmmword [esp + 0x50]
push edx
lea edx, [esp + 0x94]
movq qword [esp + 0x94], xmm0
mov eax, dword [ecx]
push edx
mov dword [esp + 0xa0], edi
mov eax, dword [eax + 0x28]
call eax
test al, al
jne 0x10002b0e
mov eax, dword [0x100ebbf8]
cdq
sub eax, edx
mov dword [esp + 0x74], 0
sar eax, 1
movd xmm1, eax
mov eax, dword [0x100ebbc0]
cdq
sub eax, edx
sar eax, 1
cvtdq2ps xmm1, xmm1
movd xmm0, eax
subss xmm1, dword [esp + 0x6c]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm1
subss xmm0, dword [esp + 0x70]
mulss xmm0, xmm0
addss xmm0, xmm1
xorps xmm1, xmm1
addss xmm0, xmm1
call fcn.100015e0
comiss xmm0, dword [esp + 0x10]
movss dword [esp + 0xc], xmm0
movaps xmm1, xmm0
ja 0x10002b0e
movss xmm0, dword [0x100c4e28]
cmp byte [0x100ebb9c], 0
je 0x10002afc
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x10002af3
mov ecx, dword [0x100cbb3c]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov ecx, dword [0x100cbb28]
lea edx, [esp + 0x84]
movaps xmm0, xmmword [esp + 0x50]
push edx
lea edx, [esp + 0xa0]
movq qword [esp + 0xa0], xmm0
mov eax, dword [ecx]
push edx
mov dword [esp + 0xac], edi
mov eax, dword [eax + 0x28]
call eax
test al, al
jne 0x10002b0e
mov eax, dword [0x100ebbf8]
cdq
sub eax, edx
mov dword [esp + 0x8c], 0
sar eax, 1
movd xmm1, eax
mov eax, dword [0x100ebbc0]
cdq
sub eax, edx
sar eax, 1
cvtdq2ps xmm1, xmm1
movd xmm0, eax
subss xmm1, dword [esp + 0x84]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm1
subss xmm0, dword [esp + 0x88]
mulss xmm0, xmm0
addss xmm0, xmm1
xorps xmm1, xmm1
addss xmm0, xmm1
call fcn.100015e0
movaps xmm1, xmm0
comiss xmm1, dword [0x100ebbac]
ja 0x10002b0e
movss xmm0, dword [esp + 0xc]
movss dword [esp + 0x10], xmm0
mov dword [0x100ebba0], esi
mov edi, dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov ecx, dword [0x100cbb34]
mov esi, dword [esp + 0x34]
inc esi
mov dword [esp + 0x34], esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
cmp esi, eax
jl 0x100025a0
mov ecx, dword [0x100ebba0]
test ecx, ecx
je 0x10002e67
mov eax, dword [ecx]
mov eax, dword [eax + 0x204]
call eax
test al, al
je 0x10002e67
lea esi, [esp + 0xa8]
mov edi, 0x80
nop
mov ecx, esi
call fcn.100019d0
add esi, 0x30
sub edi, 1
jne 0x10002b60
mov ecx, dword [0x100ebba0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
mov ecx, dword [0x100ebbd0]
push ecx
movss xmm0, dword [ecx + 0xc]
lea ecx, [esp + 0xac]
movss dword [esp], xmm0
push pe_nt_image_headers32
push 0x80
push ecx
mov ecx, eax
call edx
test al, al
je 0x10002e67
mov eax, dword [0x100ebbbc]
sub eax, edi
je 0x10002be8
sub eax, 1
je 0x10002bde
sub eax, 1
je 0x10002bd4
mov dword [esp + 0x10], 0x10075763
jmp 0x10002bf0
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov dword [esp + 0x10], str.ValveBiped.Bip01_Pelvis
jmp 0x10002bf0
mov dword [esp + 0x10], str.ValveBiped.Bip01_Spine2
jmp 0x10002bf0
mov dword [esp + 0x10], str.ValveBiped.Bip01_Head1
mov eax, dword [0x100cbb2c]
mov ecx, dword [0x100ebba0]
mov eax, dword [eax]
mov edi, dword [eax + 0x70]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov ecx, eax
mov esi, dword [eax]
mov eax, dword [esi + 0x24]
call eax
mov ecx, dword [0x100cbb2c]
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.10002360
mov eax, dword [esp + 0x20]
add esp, 4
lea eax, [eax + eax*2]
add eax, eax
movss xmm0, dword [esp + eax*8 + 0xc4]
movss xmm3, dword [esp + eax*8 + 0xb4]
movss xmm2, dword [esp + eax*8 + 0xd4]
movss dword [esp + 0x3c], xmm0
subss xmm0, dword [esp + 0x7c]
movss dword [esp + 0x38], xmm3
subss xmm3, dword [esp + 0x78]
movss dword [esp + 0x40], xmm2
subss xmm2, dword [esp + 0x80]
movaps xmm1, xmm0
movss dword [esp + 0x20], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm3
movss dword [esp + 0x30], xmm3
mulss xmm0, xmm3
movss dword [esp + 0x18], xmm2
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10002cb8
sqrtsd xmm0, xmm0
jmp 0x10002cbd
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [esp + 0x18]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_asin_precise
cvtsd2ss xmm0, xmm0
xorps xmm0, xmmword [0x100c5290]
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x100c4d18]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x20]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x30]
fld qword [esp + 0x20]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
movss xmm2, dword [esp + 0x18]
comiss xmm2, dword [0x100c4e50]
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x100c4d18]
cvtpd2ps xmm1, xmm0
jb 0x10002d7c
movss xmm0, dword [0x100c4d94]
comiss xmm0, xmm2
jb 0x10002d7c
comiss xmm1, dword [0x100c4e58]
jb 0x10002d7c
movss xmm0, dword [0x100c4dcc]
comiss xmm0, xmm1
jb 0x10002d7c
movss dword [esp + 0x6c], xmm2
movss dword [esp + 0x70], xmm1
jmp 0x10002d8c
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
movq xmm0, qword [esp + 0x38]
sub esp, 0xc
mov eax, dword [esp + 0x4c]
mov ecx, esp
sub esp, 0xc
mov dword [esp + 0x8c], 0
movq qword [ecx], xmm0
movq xmm0, qword [esp + 0x90]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [esp + 0x98]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, dword [0x100ebba0]
call fcn.100020c0
mov edx, dword [esp + 0x44]
add esp, 0x18
cmp byte [0x100ebb9e], 0
je 0x10002e09
test al, al
je 0x10002e09
cmp byte [0x100ebf9c], 0
mov ecx, dword [edx + 0x20]
sete al
mov byte [0x100ebf9c], al
test al, al
je 0x10002e03
or ecx, 1
jmp 0x10002e06
and ecx, 0xfffffffe
mov dword [edx + 0x20], ecx
test byte [edx + 0x20], 1
je 0x10002e30
movss xmm0, dword [esp + 0x6c]
movss dword [edx + 8], xmm0
movss xmm0, dword [esp + 0x70]
movss dword [edx + 0xc], xmm0
movss xmm0, dword [esp + 0x74]
movss dword [edx + 0x10], xmm0
cmp byte [0x100ebb9d], 0
jne 0x10002e67
mov ecx, dword [0x100cbb3c]
lea edx, [esp + 0x6c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x50]
pop edi
pop esi
mov ecx, dword [esp + 0x18a4]
xor ecx, esp
call fcn.1006cd6e
mov esp, ebp
pop ebp
ret
mov dword [0x100ebba0], 0
mov ecx, dword [esp + 0x18ac]
pop edi
pop esi
xor ecx, esp
call fcn.1006cd6e
mov esp, ebp
pop ebp
ret