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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1f8
mov eax, dword [0x1027c620]
push esi
push edi
xor edi, edi
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x101093ed
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
test eax, eax
je 0x101093ed
mov ecx, eax
call fcn.101889a0
mov ecx, dword fs:[0x2c]
mov esi, eax
mov edx, dword [0x1027db70]
mov dword [esp + 0x14], esi
mov eax, dword [esi + 0x7dc]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x1027eeb4]
mov dword [esp + 0x4c], eax
cmp ecx, dword [edx + 4]
jg 0x101093f5
mov ecx, dword [esp + 0x28]
sub esp, 8
mov eax, dword [0x1027eebc]
movss xmm1, dword [esi + 0x7e4]
movss xmm0, dword [esi + 0x7e8]
movss dword [esp + 0xc4], xmm0
mov eax, dword [eax + ecx]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x7e0]
mov esi, dword [ebp + 8]
movss dword [esp + 0x30], xmm1
xorps xmm1, xmm1
movss dword [esp + 0x1c], xmm1
movd xmm0, eax
movss xmm2, dword [esi + 0x14]
movss xmm3, dword [esi + 0x20]
movss xmm4, dword [esi + 0x28]
subss xmm3, xmm2
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x38], 0
mov dword [esp + 0x50], 0
movss dword [esp + 0x18], xmm1
movss xmm1, dword [esi + 0x18]
movss dword [esp + 0x44], xmm2
movss xmm2, dword [esi + 0x24]
subss xmm2, xmm1
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esi + 0x1c]
subss xmm4, xmm0
movss dword [esp + 0x4c], xmm0
movss dword [esp + 0x48], xmm1
movaps xmm1, xmm3
mulss xmm1, xmm3
movaps xmm0, xmm2
movss dword [esp + 0x24], xmm3
mulss xmm0, xmm2
movss dword [esp + 0x28], xmm2
movss dword [esp + 0x2c], xmm4
addss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm4
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
call fcn.100cf5d0
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
add esp, 8
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x10108b0e
movss xmm1, dword [esp + 0x20]
divss xmm1, xmm0
movss xmm2, dword [esp + 0x1c]
movss dword [esp + 0x20], xmm1
movss xmm1, dword [esp + 0x24]
divss xmm2, xmm0
divss xmm1, xmm0
jmp 0x10108b1f
movss dword [esp + 0x20], xmm1
xorps xmm2, xmm2
movss xmm1, dword [0x1022cbb4]
mov eax, dword [0x10289dac]
xorps xmm0, xmm0
movss dword [esp + 0x24], xmm1
movss dword [esp + 0x1c], xmm2
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x1c8], 0
mov dword [esp + 0x170], 0
movups xmmword [esp + 0xf8], xmm0
movups xmmword [esp + 0x108], xmm0
movups xmmword [esp + 0x1a8], xmm0
movups xmmword [esp + 0x1b8], xmm0
movups xmmword [esp + 0x150], xmm0
movups xmmword [esp + 0x160], xmm0
test eax, eax
jne 0x10108bbc
push str.56_8B_74_24_08_68_____________56_E8_____________83_C4_08_84_C0
push str.client.dll
call fcn.1018d940
mov dword [0x10289dac], eax
test eax, eax
je 0x10108bcc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x34]
push ecx
push dword [esp + 0x10]
call eax
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [0x1022ca98]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xf0], 0x1022c064
mov dword [esp + 0xf4], eax
jbe 0x101093d3
movss xmm1, dword [esp + 0x1c]
movss xmm0, dword [0x1022cccc]
movaps xmm2, xmm1
movss xmm6, dword [esp + 0x24]
movss xmm4, dword [esp + 0x40]
movss xmm5, dword [esp + 0x3c]
movss xmm7, dword [esp + 0x28]
mulss xmm2, xmm0
movss dword [esp + 0xb0], xmm2
movss xmm2, dword [esp + 0x20]
movaps xmm3, xmm2
mulss xmm3, xmm0
movss dword [esp + 0xb4], xmm3
movaps xmm3, xmm6
mulss xmm3, xmm0
movss dword [esp + 0xb8], xmm3
movss xmm3, dword [esp + 0x44]
nop word [eax + eax]
movaps xmm0, xmm1
mov dword [esp + 0xe8], eax
movaps xmm1, xmm2
mulss xmm0, xmm7
mov dword [esp + 0xe4], 0x1022c04c
mulss xmm1, xmm7
movaps xmm2, xmm6
mov dword [esp + 0xec], edi
mulss xmm2, xmm7
movaps xmm6, xmm5
mov byte [esp + 0xad], 1
addss xmm6, xmm0
movaps xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm3
addss xmm1, xmm2
movaps xmm2, xmm6
movss dword [esp + 0xc], xmm6
subss xmm2, xmm5
movss dword [esp + 8], xmm0
subss xmm0, xmm4
movss dword [esp + 0x34], xmm1
subss xmm1, xmm3
movss dword [esp + 0x88], xmm2
movss dword [esp + 0x8c], xmm0
mulss xmm2, xmm2
mulss xmm0, xmm0
movss dword [esp + 0x90], xmm1
mulss xmm1, xmm1
addss xmm2, xmm0
addss xmm2, xmm1
ucomiss xmm2, dword [0x1022ca98]
lahf
test ah, 0x44
jp 0x10108d10
mov byte [esp + 0xad], 0
mov eax, dword [0x1027c61c]
lea edx, [esp + 0xf8]
push edx
mov dword [esp + 0xac], 0
lea edx, [esp + 0xe8]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
mov byte [esp + 0xb0], 1
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
movss dword [esp + 0x80], xmm5
movss dword [esp + 0x84], xmm4
movss dword [esp + 0x88], xmm3
mov ecx, dword [eax + 0x2c]
push edx
push 0x4600400b
lea edx, [esp + 0x88]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
movss xmm0, dword [esp + 0xc]
movss xmm1, dword [esp + 8]
movss xmm2, dword [esp + 0x34]
addss xmm0, dword [esp + 0xb0]
addss xmm1, dword [esp + 0xb4]
addss xmm2, dword [esp + 0xb8]
mov eax, dword [0x10289da8]
movss dword [esp + 0xc0], xmm0
movss dword [esp + 0xc4], xmm1
movss dword [esp + 0xc8], xmm2
test eax, eax
jne 0x10108e08
push str.81_EC_____________8B_84_24_____________8B_48_2C
push str.client.dll
call fcn.1018d940
mov dword [0x10289da8], eax
test eax, eax
je 0x10108e2f
lea ecx, [esp + 0xf8]
push ecx
lea ecx, [esp + 0xe8]
push ecx
push 0x4600400b
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x4c]
push ecx
call eax
add esp, 0x14
movss xmm0, dword [esp + 0x124]
ucomiss xmm0, dword [0x1022cbb4]
mov edi, dword [esp + 0x144]
lahf
test ah, 0x44
jnp 0x1010906b
mov eax, dword [0x1027c61c]
movsx edx, word [esp + 0x138]
push edx
mov ecx, dword [eax + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
movzx eax, word [eax + 0x48]
mov dword [esp + 0x38], eax
add eax, 0xffffffbd
cmp eax, 0x14
ja case.0x10108e83.69
movzx eax, byte [eax + 0x101095c0]
jmp dword [eax*4 + 0x101095a0]
movss xmm0, dword [0x1022cb6c]
movss dword [esp + 8], xmm0
movss xmm0, dword [0x1022cb48]
jmp 0x10108f53
movss xmm0, dword [0x1022cb60]
movss dword ds:[esp + 8], xmm0
movss xmm0, dword [0x1022cb40]
jmp 0x10108f53
movss xmm0, dword [0x1022cbb4]
movss dword [esp + 8], xmm0
movss xmm0, dword [0x1022cba8]
jmp 0x10108f53
movss xmm0, dword [0x1022cb6c]
movss dword [esp + 8], xmm0
movss xmm0, dword [0x1022cb64]
jmp 0x10108f53
movss xmm0, dword [0x1022cb74]
movss dword [esp + 8], xmm0
movss xmm0, dword [0x1022cb48]
jmp 0x10108f53
movss xmm0, dword [0x1022cb60]
movss dword [esp + 8], xmm0
movss xmm0, dword [0x1022cb64]
jmp 0x10108f53
movss xmm0, dword [0x1022cbb4]
movss dword [esp + 8], xmm0
movss xmm0, dword [0x1022cb70]
jmp 0x10108f53
movss xmm0, dword [0x1022cbb4]
movss dword [esp + 8], xmm0
movss xmm0, dword [0x1022cb6c]
movss dword [esp + 0xc], xmm0
sub esp, 0x10
movss xmm0, dword [esp + 0x134]
mulss xmm0, dword [esp + 0x38]
addss xmm0, dword [esp + 0x24]
movss dword [esp + 0x24], xmm0
divss xmm0, dword [0x1022cdd4]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esp + 0xcc]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100b12b0
fstp dword [esp + 0x44]
movss xmm0, dword [esp + 0x44]
add esp, 0x10
mulss xmm0, dword [esp + 0x18]
movss dword [esp + 0x18], xmm0
test edi, edi
je 0x1010901d
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x1d8]
call eax
test al, al
je 0x1010901d
mov ecx, edi
call fcn.10002dc0
mov ecx, dword [esp + 0x2c]
mov esi, eax
call fcn.10002dc0
mov ecx, dword ds:[eax]
cmp ecx, dword [esi]
je 0x1010901d
push dword [esp + 0x13c]
movss xmm3, dword [esp + 0x1c]
push edi
call fcn.1018da40
mov ecx, dword [ebp + 8]
addss xmm0, dword [esp + 0x10]
mov eax, dword [esp + 0x148]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x13c]
movss dword [esp + 0x10], xmm0
mov dword [ecx + 4], eax
mov dword [ecx + 0x10], edi
mov eax, dword [esp + 0x128]
shr eax, 3
and al, 1
je 0x10109047
movss xmm0, dword [0x1022cbb4]
movss dword [esp + 8], xmm0
movss xmm0, dword [0x1022cba8]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x14]
comiss xmm0, dword [esp + 0x48]
jbe 0x10109058
xor esi, esi
jmp 0x10109064
mov esi, dword ds:[esp + 0x4c]
test esi, esi
jne 0x1010908e
test al, al
jne 0x10109090
mov esi, dword [ebp + 8]
movss xmm1, dword ds:[esp + 0x10]
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x101093de
jmp 0x101093d6
js 0x10109068
movss xmm1, dword [esp + 0x20]
lea eax, [esp + 0x1a8]
movss xmm2, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x74]
push eax
sub esp, 0xc
mov eax, esp
sub esp, 0xc
movss dword [eax + 4], xmm1
movss xmm1, dword [esp + 0x44]
movss dword [eax], xmm2
movss dword [eax + 8], xmm1
mov eax, esp
movss xmm0, dword [esp + 0x124]
movss dword [eax], xmm0
movss xmm0, dword [esp + 0x128]
movss dword [eax + 4], xmm0
movss xmm0, dword [esp + 0x12c]
movss dword [eax + 8], xmm0
call fcn.101084a0
test al, al
je 0x10109068
movss xmm2, dword [esp + 0x104]
movss xmm3, dword [esp + 0x70]
movss xmm1, dword [esp + 0x108]
subss xmm2, xmm3
movss xmm4, dword [esp + 0x74]
movss xmm0, dword [esp + 0x10c]
subss xmm1, xmm4
movss xmm5, dword [esp + 0x78]
subss xmm0, xmm5
mov byte [esp + 0xad], 1
movss dword [esp + 0x88], xmm2
mulss xmm2, xmm2
movss dword [esp + 0x8c], xmm1
mulss xmm1, xmm1
movss dword [esp + 0x90], xmm0
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
ucomiss xmm2, dword [0x1022ca98]
lahf
test ah, 0x44
jp 0x10109182
mov byte [esp + 0xad], 0
mov eax, dword [0x1027c61c]
lea edx, [esp + 0x150]
push edx
mov dword [esp + 0xac], 0
lea edx, [esp + 0xf4]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
mov byte [esp + 0xb0], 1
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
movss dword [esp + 0x80], xmm3
movss dword [esp + 0x84], xmm4
movss dword [esp + 0x88], xmm5
mov ecx, dword [eax + 0x2c]
push edx
push 0x4600400b
lea edx, [esp + 0x88]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
mov eax, dword ds:[esp + 0x19c]
cmp eax, dword [esp + 0x144]
je 0x10109268
test eax, eax
je 0x10109268
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x150]
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x1022c04c
push eax
push 0x4600400b
lea eax, [esp + 0x110]
mov dword [esp + 0x60], ecx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.101083c0
mov eax, dword [0x1027c61c]
movsx edx, word ds:[esp + 0x190]
push edx
mov ecx, dword [eax + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
movzx ecx, word [eax + 0x48]
mov eax, ecx
cmp dword [esp + 0x38], eax
jne 0x101092ac
cmp eax, 0x57
je 0x10109298
cmp ecx, 0x4d
jne 0x101092ac
movss xmm0, dword [esp + 8]
mulss xmm0, dword [0x1022cbf0]
movss dword [esp + 8], xmm0
movss xmm1, dword [esp + 0x15c]
sub esp, 8
movss xmm2, dword [esp + 0x168]
subss xmm2, dword [esp + 0x110]
subss xmm1, dword [esp + 0x10c]
movss xmm0, dword [esp + 0x16c]
subss xmm0, dword [esp + 0x114]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
cvtps2pd xmm0, xmm2
movsd qword [esp], xmm0
call fcn.100cf5d0
movss xmm1, dword [esp + 0x10]
add esp, 8
movss xmm2, dword [esp + 0x30]
movaps xmm0, xmm1
mulss xmm0, xmm2
fstp dword [esp + 0x38]
movss xmm6, dword [esp + 0x38]
comiss xmm6, xmm0
ja 0x10109068
movaps xmm0, xmm6
movss xmm7, dword [esp + 0x28]
addss xmm6, dword [esp + 0x14]
divss xmm0, xmm1
dec esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], esi
mov esi, dword [ebp + 8]
movss xmm5, dword [esp + 0x15c]
subss xmm7, xmm6
movss xmm4, dword [esp + 0x160]
subss xmm2, xmm0
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [esp + 0xc]
mulss xmm7, dword [0x1022cb6c]
comiss xmm0, dword [0x1022ca98]
movss xmm3, dword [esp + 0x164]
movss xmm1, dword [esp + 0x1c]
movss dword [esp + 0x30], xmm2
movss xmm2, dword [esp + 0x20]
movss dword [esp + 0x14], xmm6
movss xmm6, dword [esp + 0x24]
movss dword [esp + 0x3c], xmm5
movss dword [esp + 0x40], xmm4
movss dword [esp + 0x44], xmm3
movss dword [esp + 0x28], xmm7
movss dword [esp + 0x18], xmm0
ja 0x10108c60
jmp 0x1010906b
xorps xmm0, xmm0
movss xmm1, dword [0x1022ce44]
cvttss2si eax, xmm1
comiss xmm1, xmm0
mov dword [esi + 0xc], eax
seta al
mov byte [esi], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x1027eeb4
call fcn.1008f445
add esp, 4
cmp dword [0x1027eeb4], 0xffffffff
jne 0x101089f0
mov edi, dword [0x1027c624]
lea eax, ds:[esp + 0x10]
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x64], 0
xorps xmm0, xmm0
mov dword [esp + 0x68], 0xf
push eax
movaps xmmword [esp + 0x58], xmm0
mov dword [esp + 0x18], 0x1f
call fcn.10003a80
movups xmm0, xmmword [str.m_iPrimaryAmmoType]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], 0x12
movups xmmword [eax], xmm0
mov cx, word [0x1021d7d8]
mov word [eax + 0x10], cx
xorps xmm0, xmm0
mov byte [eax + 0x12], 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xcc]
movaps xmmword [esp + 0xcc], xmm0
push eax
mov dword [esp + 0x20], 0x1f
call fcn.10003a80
movups xmm0, xmmword [str.DT_BaseCombatWeapon]
mov ecx, dword [esp + 0x20]
mov esi, eax
add esp, 0x10
mov dword [esp + 0xd4], ecx
mov ecx, edi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xd0], 0x13
movups xmmword [esi], xmm0
mov dx, word [0x1021d7c4]
mov word [esi + 0x10], dx
mov al, byte [0x1021d7c6]
mov byte [esi + 0x12], al
lea eax, [esp + 0x50]
push 0
push eax
lea eax, [esp + 0xc8]
mov byte [esi + 0x13], 0
push eax
call fcn.1017e540
mov ecx, dword ds:[esp + 0xd4]
mov dword [0x1027eebc], eax
cmp ecx, 0xf
jbe 0x10109535
mov edx, dword [esp + 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10109529
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010955f
jmp 0x10109529
push ecx
push edx
call fcn.1008f386
add esp, 8
jmp 0x10109535
mov ecx, dword [esp + 0x64]
cmp ecx, 0xf
jbe 0x10109571
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10109565
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10109565
jmp 0x1010955f
nop
call fcn.100b1212
push ecx
push edx
call fcn.1008f386
add esp, 8
jmp 0x10109571
push 0x1027eeb4
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0xf
mov byte [esp + 0x54], 0
call fcn.1008f3f4
mov esi, dword [esp + 0x18]
add esp, 4
xor edi, edi
jmp 0x101089f0