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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3478
call fcn.1007cd80
mov eax, dword [0x10098010]
xor eax, esp
mov dword [esp + 0x3474], eax
mov dword [esp + 8], ecx
xorps xmm0, xmm0
push esi
xorps xmm1, xmm1
mov dword [esp + 0x18], 0
xor ecx, ecx
movss dword [esp + 0x30], xmm1
push edi
movups xmmword [esp + 0x8c], xmm0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0x2c], ecx
call fcn.10045870
push 1
mov ecx, eax
call fcn.10056810
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
xorps xmm1, xmm1
xor esi, esi
movsd qword [esp + 0x20], xmm1
cmp esi, 0x11
ja case.0x10041cc2.2
movzx eax, byte [esi + 0x100427a8]
jmp dword [eax*4 + 0x1004279c]
cvttsd2si eax, qword [0x100e9f70]
push eax
call edi
movsd xmm1, qword [esp + 0x20]
test ax, ax
je 0x10041cfd
movsd xmm0, qword [0x100e9f70]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x10041cfd
mov edx, dword [esp + 0x10]
xor al, al
mov byte [edx + esi + 0xc], al
jmp 0x10041d1d
mov edx, dword [esp + 0x10]
mov al, 1
mov byte [edx + esi + 0xc], al
jmp 0x10041d1d
mov edx, dword [esp + 0x10]
mov byte [edx + esi + 0xc], 0
jmp 0x10041d1d
mov edx, dword [esp + 0x10]
mov byte [edx + esi + 0xc], 1
inc esi
cmp esi, 0x15
jb 0x10041cb6
movsd xmm0, qword [0x100ea318]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x10041d46
xor ecx, ecx
test ecx, ecx
sete al
mov byte [edx + ecx + 0xc], al
inc ecx
cmp ecx, 0x15
jb 0x10041d37
mov edi, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
cmp edi, eax
je 0x10042785
nop dword [eax + eax]
call fcn.10045870
mov ecx, dword [edi]
mov esi, eax
add ecx, 8
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
call edx
imul edi, eax, 0xe4
add edi, esi
cmp dword [edi], 0
je 0x10041efa
mov ecx, dword [edi + 0x9c]
xor dl, dl
mov eax, dword [edi + 0xa0]
add eax, ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], eax
cmp ecx, eax
je 0x10041efa
mov esi, ecx
mov ecx, dword [edi + 0x98]
mov eax, dword [edi + 0x94]
dec ecx
and ecx, esi
mov esi, dword [eax + ecx*4]
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cmp byte [esi + 4], 0
je 0x10041ee5
test dl, dl
je 0x10041e3b
movss xmm1, dword [esi + 0x3014]
movss xmm0, dword [esi + 0x3010]
mulss xmm0, xmm0
mov dword [esp + 0x3c], 0
mulss xmm1, xmm1
addss xmm0, xmm1
movss dword [esp + 0x30], xmm0
sqrtss xmm0, dword [esp + 0x30]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [0x1008d540]
comiss xmm0, dword [esp + 0x3c]
jae 0x10041e25
cmp eax, dword [edi + 0x18]
je 0x10041e3b
cmp byte [esi + 0x33c8], 0
jne 0x10041e44
cmp byte [esi + 0x33c9], 0
je 0x10041ee5
cmp byte [esi + 0x33c8], 0
je 0x10041e50
cmp dword [edi + 0x74], 0
jne 0x10041ee5
jmp 0x10041e66
cmp byte [esi + 0x33c9], 0
mov eax, 1
movzx edx, dl
cmove edx, eax
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push 0
push eax
push esi
lea eax, [esp + 0x78]
mov dword [esp + 0x3c], 0
push eax
call fcn.10042d90
movss xmm1, dword [esp + 0x30]
comiss xmm1, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
jbe 0x10041ee5
movups xmm0, xmmword [esp + 0x6c]
mov eax, dword [esp + 0x84]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x14]
movups xmmword [esp + 0x8c], xmm0
mov dword [esp + 0x1c], esi
movss xmm0, dword [esp + 0x7c]
movss dword [esp + 0x9c], xmm0
movss xmm0, dword [esp + 0x80]
movss dword [esp + 0xa0], xmm0
mov eax, dword [eax]
movss dword [esp + 0x34], xmm1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
inc eax
mov esi, eax
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x38]
jne 0x10041db2
mov edi, dword [esp + 0x14]
add edi, 8
mov dword [esp + 0x14], edi
cmp edi, dword [esp + 0xc]
jne 0x10041d60
cmp dword [esp + 0x1c], 0
je 0x10042785
mov eax, dword [0x100e8ffc]
mov ecx, dword [eax]
call fcn.10041480
mov ecx, dword [0x100e42e0]
mov al, byte [eax]
not al
and al, 1
mov byte [esp + 0xb], al
mov eax, dword fs:[0x2c]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x100e86d0]
mov dword [esp + 0x38], esi
cmp eax, dword [esi + 4]
jle 0x10041f87
push 0x100e86d0
call fcn.1007bfd7
add esp, 4
cmp dword [0x100e86d0], 0xffffffff
jne 0x10041f87
push 0x10082a70
mov byte [0x100e86fc], 0
call fcn.1007be5e
add esp, 4
push 0x100e86d0
call fcn.1007bf8d
add esp, 4
call fcn.10045930
movq xmm0, qword [esp + 0x8c]
sub esp, 0xc
mov ecx, dword [esp + 0xa0]
mov edx, esp
sub esp, 0xc
movq qword [edx], xmm0
movq xmm0, qword [eax + 0xd0]
mov eax, dword [eax + 0xd8]
mov dword [edx + 8], ecx
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [esp + 0x78]
push eax
call fcn.100750e0
mov eax, dword [0x100e86d0]
cmp eax, dword [esi + 4]
jle 0x10042010
push 0x100e86d0
call fcn.1007bfd7
add esp, 4
cmp dword [0x100e86d0], 0xffffffff
jne 0x10042010
push 0x10082a70
mov byte [0x100e86fc], 0
call fcn.1007be5e
add esp, 4
push 0x100e86d0
call fcn.1007bf8d
add esp, 4
call fcn.10045930
movq xmm0, qword [esp + 0x98]
sub esp, 0xc
mov ecx, dword [esp + 0xac]
mov edx, esp
sub esp, 0xc
movq qword [edx], xmm0
movq xmm0, qword [eax + 0xd0]
mov eax, dword [eax + 0xd8]
mov dword [edx + 8], ecx
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [esp + 0x54]
push eax
call fcn.100750e0
mov eax, dword [0x100e8ffc]
mov ecx, dword [eax]
call fcn.10040fb0
mov edx, eax
test edx, edx
jne 0x10042075
xor ecx, ecx
or edi, 0xffffffff
mov dword [esp + 0x88], ecx
jmp 0x100420aa
mov ecx, dword [0x100e8960]
push dword [edx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
mov dword [esp + 0x88], ecx
test ecx, ecx
jne 0x10042096
or edi, 0xffffffff
jmp 0x100420aa
call fcn.10047b50
movsx edi, word [eax]
cmp edi, 0x1f
je 0x100420c8
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x100420c8
mov eax, dword [ecx]
mov eax, dword [eax + 0x734]
call eax
mov byte [esp + 0xa], 1
mov eax, dword [eax + 0xcc]
cmp eax, 1
je 0x100420cd
mov byte [esp + 0xa], 0
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xa8]
push esi
call fcn.100547b0
mov ecx, dword [esp + 0x1c]
push 0
push esi
call fcn.10054a70
movq xmm0, qword [esp + 0x3c]
lea eax, [esp + 0x8c]
push esi
push eax
mov eax, dword [esp + 0x4c]
sub esp, 0xc
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
call fcn.10044700
push 1
push esi
lea ecx, [esp + 0xb0]
movss dword [esp + 0x1c], xmm0
call fcn.10054a70
mov ecx, dword [esp + 0x88]
call fcn.10068f10
cmp dword [eax + 0x3c], 1
jne 0x10042193
mov ecx, dword [esp + 0x88]
call fcn.10068f10
mov eax, dword [eax + 0x24]
movsd xmm0, qword [eax]
ucomisd xmm0, qword [esp + 0x20]
lahf
test ah, 0x44
jnp 0x10042193
cmp byte [esp + 0xb], 0
je 0x10042193
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx]
mov eax, dword [eax + 0x78c]
mov dword [esp + 0xc], eax
call dword [esp + 0xc]
movss xmm0, dword [0x1008d528]
fstp dword [esp + 0xc]
comiss xmm0, dword [esp + 0xc]
jbe 0x10042193
movss xmm0, dword [0x1008d764]
movss dword [esp + 0x14], xmm0
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx]
mov eax, dword [eax + 0x734]
call eax
mov edx, dword [esp + 0x88]
mov esi, eax
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x78c]
mov dword [esp + 0xc], ecx
mov ecx, edx
call dword [esp + 0xc]
movss xmm0, dword [esi + 0x150]
mulss xmm0, dword [0x1008d5a8]
fstp dword [esp + 0xc]
comiss xmm0, dword [esp + 0xc]
jb 0x100421e8
movss xmm0, dword [0x1008d764]
movss dword [esp + 0x14], xmm0
lea eax, [esp + 0x88]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.100427c0
cmp eax, 2
jne 0x10042224
call fcn.100456b0
mov esi, eax
call fcn.10045930
movss xmm0, dword [esi + 0xc]
ucomiss xmm0, dword [eax]
lahf
test ah, 0x44
jnp 0x10042224
mov ecx, dword [esp + 0x10]
call fcn.10042ad0
cmp edi, 0x1f
jne 0x10042240
movsd xmm0, qword [0x100ea320]
cvtpd2ps xmm0, xmm0
comiss xmm0, dword [esp + 0x14]
ja 0x10042785
mov ecx, dword [esp + 0x88]
call fcn.10068f10
movsd xmm1, qword [0x100ea2b0]
mov eax, dword [eax]
movsd xmm0, qword [eax]
cvtpd2ps xmm0, xmm0
comiss xmm0, dword [esp + 0x14]
jbe 0x100423ba
cmp byte [esp + 0xa], 0
jne 0x100423ba
ucomisd xmm1, qword [esp + 0x20]
lahf
test ah, 0x44
jnp 0x100423ba
cmp edi, 0x1f
je 0x100423ba
mov ecx, dword [esp + 0x88]
call fcn.10068f10
cmp dword [eax + 0x3c], 0
je 0x100422c3
mov ecx, dword [esp + 0x88]
call fcn.10068f10
cmp dword [eax + 0x3c], 1
je 0x100422c3
mov ecx, dword [esp + 0x88]
call fcn.10068f10
cmp dword [eax + 0x3c], 2
jne 0x10042313
mov ecx, dword [esp + 0x88]
call fcn.10068f10
mov eax, dword [eax + 0x2c]
cvttsd2si eax, qword [eax]
test eax, eax
je 0x10042313
mov eax, dword [0x100e8ffc]
mov ecx, dword [eax]
call fcn.100418a0
cmp byte [eax], 0
jne 0x10042313
mov eax, dword [0x100e8810]
test byte [eax + 0x30], 1
je 0x1004230c
lea ecx, [esp + 0x18]
call fcn.100427c0
test eax, eax
mov eax, dword [0x100e8810]
je 0x1004230c
and dword [eax + 0x30], 0xfffffffe
or dword [eax + 0x30], 0x800
lea ecx, [esp + 0x18]
call fcn.100427c0
test eax, eax
je 0x10042785
call fcn.100456b0
mov esi, eax
call fcn.10045930
movss xmm0, dword [esi + 0xc]
ucomiss xmm0, dword [eax]
lahf
test ah, 0x44
jnp 0x10042785
lea ecx, [esp + 0x18]
call fcn.100427c0
cmp eax, 2
je 0x10042785
mov ecx, dword [esp + 0x2c]
call fcn.10041360
movss xmm1, dword [esp + 0x34]
movd xmm0, dword [eax]
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
jae 0x10042392
mov ecx, dword [esp + 0x88]
call fcn.10068f10
mov eax, dword [eax + 0x1c]
movsd xmm0, qword [eax]
ucomisd xmm0, qword [esp + 0x20]
lahf
test ah, 0x44
jp 0x10042785
cmp byte [esp + 0xb], 0
jne 0x10042785
mov ecx, dword [esp + 0x10]
call fcn.10042ad0
pop edi
pop esi
mov ecx, dword [esp + 0x3474]
xor ecx, esp
call fcn.1007ba06
mov esp, ebp
pop ebp
ret
movsd xmm0, qword [0x100ea090]
ucomisd xmm0, qword [esp + 0x20]
lahf
test ah, 0x44
jnp 0x10042402
mov eax, dword [0x100e8978]
cmp dword [eax + 0x4d30], 0
jne 0x10042402
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x10042785
call fcn.10047b50
cmp word [eax], 0x40
jne 0x10042785
movsd xmm1, qword [0x100ea2b0]
cmp byte [esp + 0xa], 0
je 0x100424a8
call fcn.10045930
mov dword [esp + 0x3c], 0
movq xmm0, qword [eax + 0xd0]
mov eax, dword [eax + 0xd8]
movq qword [esp + 0x54], xmm0
movss xmm1, dword [esp + 0x54]
movss xmm2, dword [esp + 0x58]
subss xmm2, dword [esp + 0x90]
subss xmm1, dword [esp + 0x8c]
mov dword [esp + 0x5c], eax
movss xmm0, dword [esp + 0x5c]
subss xmm0, dword [esp + 0x94]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
movss dword [esp + 0xc], xmm2
sqrtss xmm0, dword [esp + 0xc]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [0x1008d73c]
comiss xmm0, dword [esp + 0x3c]
mov eax, dword [0x100e8810]
jb 0x100424a2
or dword [eax + 0x30], 0x800
jmp 0x100424c2
or dword [eax + 0x30], 1
jmp 0x100424c2
ucomisd xmm1, qword [esp + 0x20]
lahf
test ah, 0x44
mov eax, dword [0x100e8810]
jnp 0x100424c2
test dword [eax + 0x30], 0x800
je 0x100424c7
cmp edi, 0x1f
jne 0x100424cb
or dword [eax + 0x30], 1
mov edx, dword [eax + 0x30]
mov ecx, edx
test edx, 0x800
je 0x100424e5
cmp byte [esp + 0xa], 0
jne 0x100424e5
and ecx, 0xfffffffe
mov dword [eax + 0x30], ecx
test cl, 1
jne 0x100424f5
cmp byte [esp + 0xa], 0
je 0x10042785
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x10042563
call fcn.10047b50
cmp word [eax], 0x40
jne 0x10042563
mov ecx, dword [esp + 0x88]
call fcn.10041190
movss xmm0, dword [eax]
ucomiss xmm0, dword [0x1008d504]
movss dword [esp + 0xc], xmm0
lahf
test ah, 0x44
jnp 0x10042785
call fcn.10045930
mov eax, dword [0x100e8ffc]
mov ecx, dword [eax]
call fcn.10047c30
movss xmm1, dword [esp + 0xc]
movd xmm0, dword [eax]
mov eax, dword [0x100e8968]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x20]
comiss xmm1, xmm0
ja 0x10042785
mov ecx, dword [esp + 0x38]
mov eax, dword [0x100e86f4]
cmp eax, dword [ecx + 4]
jle 0x100425ab
push 0x100e86f4
call fcn.1007bfd7
add esp, 4
cmp dword [0x100e86f4], 0xffffffff
jne 0x100425ab
push 0x10082af0
mov byte [0x100e495a], 0
call fcn.1007be5e
add esp, 4
push 0x100e86f4
call fcn.1007bf8d
add esp, 4
call fcn.10054c40
cmp byte [esp + 0xb], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x100e8810]
addss xmm0, dword [eax + 0x3394]
mov eax, dword [0x100e8968]
divss xmm0, dword [eax + 0x20]
addss xmm0, dword [0x1008d574]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x60]
movss dword [ecx + 0xc], xmm0
movss xmm0, dword [esp + 0x64]
movss dword [ecx + 0x10], xmm0
movss xmm0, dword [esp + 0x68]
mov dword [ecx + 8], eax
movss dword [ecx + 0x14], xmm0
jne 0x10042649
call fcn.100456b0
mov esi, eax
call fcn.10045930
movss xmm0, dword [esi + 0xc]
ucomiss xmm0, dword [eax]
lahf
test ah, 0x44
jnp 0x10042649
mov ecx, dword [esp + 0x88]
call fcn.10068f10
mov edi, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
movsd xmm0, qword [eax]
ucomisd xmm0, qword [esp + 0x20]
lahf
test ah, 0x44
jnp 0x1004264d
mov ecx, edi
call fcn.10042ad0
jmp 0x1004264d
mov edi, dword [esp + 0x10]
cmp byte [esp + 0xa], 0
jne 0x10042741
call fcn.10045740
mov ecx, dword [esp + 0x2c]
mov esi, eax
add ecx, 8
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
call edx
mov dword [esp + 0xc], eax
call fcn.10045930
mov ecx, esi
movq xmm0, qword [eax + 0xd0]
mov eax, dword [eax + 0xd8]
mov dword [esp + 0x44], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x44]
movq qword [esp + 0x44], xmm0
push eax
call fcn.1005a1c0
movsd xmm0, qword [0x100ea070]
ucomisd xmm0, qword [esp + 0x20]
lahf
test ah, 0x44
jnp 0x10042741
mov ecx, dword [0x100e8970]
lea edx, [esp + 0x60]
push ecx
mov dword [esp], 0x40800000
push 0x7f
mov eax, dword [ecx]
push 0
push 0
push 0xff
push edx
lea edx, [esp + 0x6c]
mov dword [esp + 0x78], 0
push edx
lea edx, [esp + 0x58]
mov dword [esp + 0x80], 0
push edx
lea edx, [esp + 0xac]
mov dword [esp + 0x88], 0
push edx
mov dword [esp + 0x78], 0x40000000
mov dword [esp + 0x7c], 0x40000000
mov dword [esp + 0x80], 0x40000000
mov dword [esp + 0x60], 0xc0000000
mov dword [esp + 0x64], 0xc0000000
mov dword [esp + 0x68], 0xc0000000
call dword [eax + 4]
call fcn.100456b0
mov esi, eax
call fcn.10045930
movss xmm0, dword [esi + 0xc]
mov ecx, dword [0x100e8818]
ucomiss xmm0, dword [eax]
lahf
test ah, 0x44
jnp 0x10042764
mov byte [ecx], 1
movsd xmm0, qword [0x100ea0d0]
ucomisd xmm0, qword [esp + 0x20]
lahf
test ah, 0x44
jp 0x1004277b
mov byte [ecx], 0
call fcn.10045930
mov eax, dword [eax]
mov dword [edi + 0x2c], eax
mov ecx, dword [esp + 0x347c]
pop edi
pop esi
xor ecx, esp
call fcn.1007ba06
mov esp, ebp
pop ebp
ret