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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x288
mov eax, dword fs:[0x2c]
push esi
mov esi, dword [0x102999e4]
push edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x34], ecx
mov esi, dword [eax + esi*4]
mov eax, dword [0x102b9dd4]
mov dword [esp + 0x24], esi
cmp eax, dword [esi + 4]
jle 0x10041fae
push 0x102b9dd4
call fcn.101e23b9
add esp, 4
cmp dword [0x102b9dd4], 0xffffffff
jne 0x10041fae
mov esi, dword [0x1029d4f0]
call fcn.1010ed50
mov ecx, dword [eax + 4]
mov edi, dword [eax]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x100428e7
lea esi, [esi + esi*2]
shl esi, 4
add esi, 8
add esi, edi
je 0x10041f95
mov eax, dword [esi + 0x24]
and eax, 0xfffffffc
je 0x10041f95
add eax, 4
push 0x102985bc
push eax
call fcn.101e31c2
add esp, 8
test eax, eax
je 0x10041f97
xor esi, esi
push 0x102b9dd4
mov dword [0x102b9dd8], esi
call fcn.101e236f
mov esi, dword [esp + 0x28]
add esp, 4
mov eax, dword [0x102b9ddc]
cmp eax, dword [esi + 4]
jle 0x10042043
push 0x102b9ddc
call fcn.101e23b9
add esp, 4
cmp dword [0x102b9ddc], 0xffffffff
jne 0x10042043
mov esi, dword [0x1029d4ec]
call fcn.1010ed50
mov ecx, dword [eax + 4]
mov edi, dword [eax]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x100428e7
lea esi, [esi + esi*2]
shl esi, 4
add esi, 8
add esi, edi
je 0x1004202a
mov eax, dword [esi + 0x24]
and eax, 0xfffffffc
je 0x1004202a
add eax, 4
push 0x102985bc
push eax
call fcn.101e31c2
add esp, 8
test eax, eax
je 0x1004202c
xor esi, esi
push 0x102b9ddc
mov dword [0x102b9de0], esi
call fcn.101e236f
mov esi, dword [esp + 0x28]
add esp, 4
mov eax, dword [0x102b9dd8]
cmp byte [eax], 0
je 0x10042069
mov ecx, dword [0x102b159c]
call fcn.10006ee0
movss xmm0, dword [eax]
comiss xmm0, dword [0x1026b97c]
ja 0x100428e1
mov ecx, dword [0x102b15a4]
call fcn.1017ea40
mov ecx, dword [0x102b15a4]
movss dword [esp + 0x30], xmm0
call fcn.1017eac0
mov ecx, dword [0x102b15a4]
movss dword [esp + 0x54], xmm0
call fcn.1017e9d0
mov ecx, dword [0x10297b00]
movq xmm1, qword [0x10297af8]
mov dword [esp + 0x58], eax
mov eax, dword [0x102b9de4]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x102b159c]
movq qword [esp + 0x48], xmm1
mov dword [esp + 0x78], 0x10238480
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
cmp eax, dword [esi + 4]
jle 0x10042119
push 0x102b9de4
call fcn.101e23b9
add esp, 4
cmp dword [0x102b9de4], 0xffffffff
jne 0x10042119
push 0x9fec86c5
call fcn.10007000
push 0x102b9de4
mov dword [0x102b9de8], eax
call fcn.101e236f
add esp, 4
mov eax, dword [0x1029a1c4]
cmp eax, dword [esi + 4]
jle 0x10042167
push 0x1029a1c4
call fcn.101e23b9
add esp, 4
cmp dword [0x1029a1c4], 0xffffffff
jne 0x10042167
lea eax, [esp + 0x20]
mov dword [esp + 0x20], str.viewangles
push eax
mov ecx, 0x102a57b4
call fcn.100060c0
push 0x1029a1c4
mov eax, dword [eax]
mov dword [0x1029a1c0], eax
call fcn.101e236f
add esp, 4
mov ecx, dword [0x102b9de8]
mov esi, dword [0x1029a1c0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x1c], eax
call dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
fstp dword [esp + 0x1c]
movss xmm1, dword [esp + 0x1c]
movaps xmm2, xmm1
movaps xmm0, xmm1
mulss xmm1, dword [0x102a56e8]
mulss xmm2, dword [0x102a56ec]
addss xmm1, dword [esi + eax]
mulss xmm0, dword [0x102a56f0]
addss xmm2, dword [esi + eax + 4]
addss xmm0, dword [esi + eax + 8]
movss dword [esp + 0x6c], xmm1
lea eax, [esp + 0x38]
movss xmm1, dword [0x1026b9d0]
movss dword [esp + 0x70], xmm2
mulss xmm2, xmm1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
movss dword [esp + 0x74], xmm0
mov dword [esp + 0x18], eax
movss dword [esp + 0x20], xmm2
fld dword [esp + 0x20]
fsincos
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [esp + 0x6c]
lea eax, [esp + 0x60]
mulss xmm0, xmm1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], eax
movss dword [esp + 0x20], xmm0
fld dword [esp + 0x20]
fsincos
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
fstp dword [edx]
fstp dword [eax]
movss xmm1, dword [esp + 0x60]
lea ecx, [esp + 0xe0]
movss xmm2, dword [esp + 0x30]
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x38]
mov dword [esp + 0x90], 0x7f800000
mulss xmm1, dword [esp + 0x28]
mov dword [esp + 0x8c], 0x7f800000
mulss xmm0, xmm2
mov dword [esp + 0x88], 0x7f800000
mulss xmm1, xmm2
mov dword [esp + 0x9c], 0x7f800000
addss xmm0, dword [esp + 0x48]
mov dword [esp + 0x98], 0x7f800000
addss xmm1, dword [esp + 0x4c]
mov dword [esp + 0x94], 0x7f800000
mov dword [esp + 0xa8], 0x7f800000
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x14]
xorps xmm0, xmmword [0x1026c420]
mulss xmm0, xmm2
mov dword [esp + 0xa4], 0x7f800000
movss dword [esp + 0x3c], xmm1
mov dword [esp + 0xa0], 0x7f800000
addss xmm0, dword [esp + 0x50]
movss dword [esp + 0x40], xmm0
call fcn.100070f0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.10007150
mov ecx, dword [0x1029a49c]
lea edx, [esp + 0x88]
push edx
lea edx, [esp + 0x7c]
push edx
mov eax, dword [ecx]
lea edx, [esp + 0xe8]
push 0x4600400b
push edx
call dword [eax + 0x14]
mov edi, dword [esp + 0xd4]
test edi, edi
movsd xmm0, qword [0x1026baa0]
movsd qword [esp + 0x60], xmm0
je 0x10042555
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
test eax, eax
je 0x10042555
mov ecx, edi
call fcn.101758d0
test al, al
je 0x10042555
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
cmp eax, ecx
je 0x10042555
nop
cmp dword [eax], edi
je 0x1004238b
add eax, 4
cmp eax, ecx
jne 0x10042380
cmp eax, ecx
je 0x10042555
mov eax, dword [0x102b9de0]
cmp byte [eax], 0
je 0x100423b5
lea edx, [esp + 0x94]
lea ecx, [esp + 0x48]
call fcn.1012d040
test al, al
jne 0x10042555
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
lea ecx, [esp + 0x138]
push ecx
push eax
call fcn.100043c0
test al, al
je 0x10042555
cmp byte [esp + 0x274], 0
jne 0x10042413
cmp byte [esp + 0x275], 0
jne 0x10042413
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x144]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, 0x102a5700
push eax
call fcn.100f7520
mov eax, dword [eax]
jmp 0x10042415
xor eax, eax
sub eax, 0
je 0x10042441
sub eax, 1
je 0x10042436
sub eax, 1
jne 0x10042555
mov esi, dword [0x102b1598]
add esi, 0x88
jmp 0x1004244a
mov esi, dword [0x102b1598]
add esi, 0x6c
jmp 0x1004244a
mov esi, dword [0x102b1598]
add esi, 0x50
test esi, esi
je 0x10042555
cmp byte [esi], 0
je 0x10042555
movss xmm1, dword [esp + 0xb4]
mulss xmm1, dword [esp + 0x30]
movss xmm0, dword [esp + 0x54]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
mulsd xmm1, qword [esp + 0x60]
call fcn.1020ae00
cmp dword [esi + 8], 0
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [esp + 0x58]
cvtps2pd xmm1, xmm1
mulsd xmm0, xmm1
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [esp + 0x14], xmm1
jne 0x100424ab
movd xmm0, dword [esi + 0xc]
jmp 0x100424c1
mov ecx, edi
call fcn.10003ec0
mov ecx, dword [esi + 0x10]
movss xmm1, dword [esp + 0x14]
add ecx, dword [eax]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
setae al
test al, al
je 0x10042555
movd xmm2, dword [esi + 4]
lea ecx, [esp + 0x6c]
cvtdq2ps xmm2, xmm2
mov edx, edi
call fcn.10040220
test al, al
je 0x10042555
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
mov byte [eax], 1
mov eax, dword [0x1029a1bc]
cmp eax, dword [ecx + 4]
jle 0x10042542
push 0x1029a1bc
call fcn.101e23b9
add esp, 4
cmp dword [0x1029a1bc], 0xffffffff
jne 0x10042542
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.buttons
push eax
mov ecx, 0x102a57b4
call fcn.100060c0
push 0x1029a1bc
mov eax, dword [eax]
mov dword [0x1029a1b8], eax
call fcn.101e236f
add esp, 4
mov edi, dword [esp + 0x34]
mov eax, dword [0x1029a1b8]
or dword [eax + edi], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
cmp edi, eax
je 0x100428e1
nop dword [eax]
mov eax, dword [edi]
mov dword [esp + 0x18], eax
lea ecx, [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
call fcn.100363f0
mov esi, eax
cmp dword [esi + 0x10], 0
je 0x100425c2
mov eax, dword [esi + 8]
lea edx, [esp + 0x38]
mov ecx, dword [esi + 4]
dec eax
and eax, dword [esi + 0xc]
push ecx
push dword [esp + 0x1c]
mov eax, dword [ecx + eax*4]
lea ecx, [esp + 0x50]
add eax, 0x3c0
push eax
call fcn.1003e610
add esp, 0xc
test al, al
jne 0x100425d1
add edi, 4
cmp edi, dword [esp + 0x28]
jne 0x10042570
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.1003fdd0
mov eax, dword [esi + 8]
mov ecx, edi
mov edx, dword [esi + 4]
dec eax
and eax, dword [esi + 0xc]
mov edx, dword [edx + eax*4]
call fcn.100048b0
test edi, edi
je 0x100428e1
lea ecx, [esp + 0xe0]
call fcn.100070f0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.10007150
mov ecx, dword [0x1029a49c]
lea edx, [esp + 0x88]
push edx
lea edx, [esp + 0x7c]
push edx
mov eax, dword [ecx]
lea edx, [esp + 0xe8]
push 0x4600400b
push edx
call dword [eax + 0x14]
movss xmm0, dword [0x1026be28]
mov esi, dword [esp + 0xd4]
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x18], xmm0
mov dword [esp + 0x1c], esi
test esi, esi
je 0x10042835
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0x28]
call eax
test eax, eax
je 0x10042835
mov ecx, esi
call fcn.101758d0
test al, al
je 0x10042835
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
cmp eax, ecx
je 0x10042835
cmp dword [eax], esi
je 0x100426a0
add eax, 4
cmp eax, ecx
jne 0x10042695
cmp eax, ecx
je 0x10042835
mov eax, dword [0x102b9de0]
cmp byte [eax], 0
je 0x100426ca
lea edx, [esp + 0x94]
lea ecx, [esp + 0x48]
call fcn.1012d040
test al, al
jne 0x10042835
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
lea ecx, [esp + 0x138]
push ecx
push eax
call fcn.100043c0
test al, al
je 0x10042835
cmp byte [esp + 0x274], 0
jne 0x10042728
cmp byte [esp + 0x275], 0
jne 0x10042728
mov eax, dword [esp + 0x140]
mov ecx, 0x102a5700
mov edx, dword [esp + 0x144]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x40], edx
call fcn.100f7520
mov eax, dword [eax]
jmp 0x1004272a
xor eax, eax
sub eax, 0
je 0x10042756
sub eax, 1
je 0x1004274b
sub eax, 1
jne 0x10042835
mov esi, dword [0x102b1598]
add esi, 0x88
jmp 0x1004275f
mov esi, dword [0x102b1598]
add esi, 0x6c
jmp 0x1004275f
mov esi, dword [0x102b1598]
add esi, 0x50
test esi, esi
je 0x10042835
cmp byte [esi], 0
je 0x10042835
movss xmm1, dword [esp + 0xb4]
mulss xmm1, dword [esp + 0x30]
movss xmm0, dword [esp + 0x54]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
mulsd xmm1, qword [esp + 0x60]
call fcn.1020ae00
cmp dword [esi + 8], 0
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [esp + 0x58]
cvtps2pd xmm1, xmm1
mulsd xmm0, xmm1
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [esp + 0x14], xmm1
jne 0x100427c0
movd xmm0, dword [esi + 0xc]
jmp 0x100427d8
mov ecx, dword [esp + 0x1c]
call fcn.10003ec0
mov ecx, dword [esi + 0x10]
movss xmm1, dword [esp + 0x14]
add ecx, dword [eax]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
setae al
test al, al
je 0x10042835
movd xmm2, dword [esi + 4]
lea ecx, [esp + 0x6c]
mov edx, dword [esp + 0x1c]
cvtdq2ps xmm2, xmm2
call fcn.10040220
test al, al
je 0x10042835
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
call fcn.100363f0
cmp dword [eax + 0x10], 0
je 0x10042835
mov edx, dword [eax + 8]
dec edx
and edx, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax + edx*4]
movss xmm0, dword [eax + 0x74]
movss dword [esp + 0x18], xmm0
mov ecx, edi
call fcn.10040000
movss xmm0, dword [esp + 0x18]
ucomiss xmm0, dword [esp + 0x28]
lahf
test ah, 0x44
jnp 0x100428e1
call fcn.100360f0
addss xmm0, dword [esp + 0x18]
mov eax, dword [0x1029a41c]
mov edi, dword [esp + 0x34]
mov ecx, edi
divss xmm0, dword [eax + 0x20]
addss xmm0, dword [0x1026ba54]
cvttss2si esi, xmm0
call fcn.10004220
mov ecx, dword [esp + 0x24]
mov dword [eax], esi
mov eax, dword [esp + 0x5c]
mov byte [eax], 1
mov eax, dword [0x1029a1bc]
cmp eax, dword [ecx + 4]
jle 0x100428d8
push 0x1029a1bc
call fcn.101e23b9
add esp, 4
cmp dword [0x1029a1bc], 0xffffffff
jne 0x100428d8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.buttons
push eax
mov ecx, 0x102a57b4
call fcn.100060c0
push 0x1029a1bc
mov eax, dword [eax]
mov dword [0x1029a1b8], eax
call fcn.101e236f
add esp, 4
mov eax, dword [0x1029a1b8]
or dword [eax + edi], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10006b90
int3