Function at 0x14002ef98
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rdi
sub rsp, 0x5e8
mov rax, qword [0x140046b00]
xor rax, rsp
mov qword [rsp + 0x5d0], rax
mov eax, 0x10
mov eax, eax
mov ecx, dword [0x140047d10]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x140047c90], eax
jle 0x14002f00a
lea rcx, [0x140047c90]
call fcn.1400377a4
cmp dword [0x140047c90], 0xffffffff
jne 0x14002f00a
call fcn.140008b68
mov rax, qword [rax + 8]
mov qword [0x140047c88], rax
lea rcx, [0x140047c90]
call fcn.140037738
mov eax, 0x10
mov eax, eax
mov ecx, dword [0x140047d10]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x140047ca0], eax
jle 0x14002f080
lea rcx, [0x140047ca0]
call fcn.1400377a4
cmp dword [0x140047ca0], 0xffffffff
jne 0x14002f080
movss xmm0, dword [0x140047c8c]
divss xmm0, dword [0x14003ab14]
movss xmm1, dword [0x140047c88]
divss xmm1, dword [0x14003ab14]
movaps xmm2, xmm0
lea rcx, [0x140047c98]
call fcn.14002ce3c
nop
lea rcx, [0x140047ca0]
call fcn.140037738
movzx eax, byte [0x1400470cd]
test eax, eax
je 0x14002f15b
call fcn.140008ebc
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x20], 0xff
mov r9d, 0xfc
mov r8d, 0x18
mov edx, 3
lea rcx, [rsp + 0x538]
call fcn.14002cda8
mov rcx, rax
call fcn.14002da28
mov dword [rsp + 0xd8], eax
movss xmm0, dword [0x140045178]
movss dword [rsp + 0xdc], xmm0
mov eax, dword [0x140047204]
cvtsi2ss xmm0, rax
mov eax, dword [0x140047200]
cvtsi2ss xmm1, rax
movaps xmm2, xmm0
lea rcx, [rsp + 0x330]
call fcn.14002ce3c
mov qword [rsp + 0x150], rax
movss xmm0, dword [0x14003e884]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0x64
mov r9d, dword [rsp + 0xd8]
movss xmm2, dword [rsp + 0xdc]
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x158]
call fcn.1400115b8
mov byte [rsp + 0x4c], 0
mov byte [rsp + 0x4d], 0
mov byte [rsp + 0x4e], 0
cmp dword [0x1400470c8], 0
jne 0x14002f170
mov dword [0x1400470c4], 0x6d
jmp 0x14002f1ad
cmp dword [0x1400470c8], 1
jne 0x14002f185
mov dword [0x1400470c4], 0x42
jmp 0x14002f1ad
cmp dword [0x1400470c8], 2
jne 0x14002f19a
mov dword [0x1400470c4], 0x25
jmp 0x14002f1ad
cmp dword [0x1400470c8], 3
jne 0x14002f1ad
mov dword [0x1400470c4], 2
cmp dword [0x140045168], 0
jne 0x14002f1c5
mov dword [0x1400470c0], 1
jmp 0x14002f38d
cmp dword [0x140045168], 1
jne 0x14002f1dd
mov dword [0x1400470c0], 2
jmp 0x14002f38d
cmp dword [0x140045168], 2
jne 0x14002f1f5
mov dword [0x1400470c0], 4
jmp 0x14002f38d
cmp dword [0x140045168], 3
jne 0x14002f20d
mov dword [0x1400470c0], 5
jmp 0x14002f38d
cmp dword [0x140045168], 4
jne 0x14002f225
mov dword [0x1400470c0], 6
jmp 0x14002f38d
cmp dword [0x140045168], 5
jne 0x14002f23d
mov dword [0x1400470c0], 3
jmp 0x14002f38d
cmp dword [0x140045168], 6
jne 0x14002f255
mov dword [0x1400470c0], 8
jmp 0x14002f38d
cmp dword [0x140045168], 7
jne 0x14002f26d
mov dword [0x1400470c0], 9
jmp 0x14002f38d
cmp dword [0x140045168], 8
jne 0x14002f285
mov dword [0x1400470c0], 0xc
jmp 0x14002f38d
cmp dword [0x140045168], 9
jne 0x14002f293
jmp 0x14002f38d
cmp dword [0x140045168], 0xa
jne 0x14002f2ab
mov dword [0x1400470c0], 0x10
jmp 0x14002f38d
cmp dword [0x140045168], 0xb
jne 0x14002f2c3
mov dword [0x1400470c0], 0x11
jmp 0x14002f38d
cmp dword [0x140045168], 0xc
jne 0x14002f2d1
jmp 0x14002f38d
cmp dword [0x140045168], 0xd
jne 0x14002f2df
jmp 0x14002f38d
cmp dword [0x140045168], 0xe
jne 0x14002f2ed
jmp 0x14002f38d
cmp dword [0x140045168], 0xf
jne 0x14002f2fb
jmp 0x14002f38d
cmp dword [0x140045168], 0x10
jne 0x14002f309
jmp 0x14002f38d
cmp dword [0x140045168], 0x11
jne 0x14002f314
jmp 0x14002f38d
cmp dword [0x140045168], 0x12
jne 0x14002f31f
jmp 0x14002f38d
cmp dword [0x140045168], 0x13
jne 0x14002f32a
jmp 0x14002f38d
cmp dword [0x140045168], 0x14
jne 0x14002f335
jmp 0x14002f38d
cmp dword [0x140045168], 0x15
jne 0x14002f340
jmp 0x14002f38d
cmp dword [0x140045168], 0x16
jne 0x14002f34b
jmp 0x14002f38d
cmp dword [0x140045168], 0x17
jne 0x14002f356
jmp 0x14002f38d
cmp dword [0x140045168], 0x18
jne 0x14002f361
jmp 0x14002f38d
cmp dword [0x140045168], 0x19
jne 0x14002f36c
jmp 0x14002f38d
cmp dword [0x140045168], 0x1a
jne 0x14002f377
jmp 0x14002f38d
cmp dword [0x140045168], 0x1b
jne 0x14002f382
jmp 0x14002f38d
cmp dword [0x140045168], 0x1c
jne 0x14002f38d
jmp 0x14002f38d
lea rdx, [0x140047b88]
lea rcx, [rsp + 0x520]
call fcn.14002cc24
nop
movss xmm0, dword [0x14003ab5c]
movss dword [rsp + 0x68], xmm0
mov qword [rsp + 0x70], 0
mov rax, qword [0x140047238]
add rax, 0x11781328
mov rcx, rax
call fcn.140029ee0
mov qword [0x1400470e8], rax
mov rax, qword [0x1400451a8]
mov rcx, qword [0x1400470e8]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x160], rax
mov rax, qword [0x1400451b0]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x168], rax
mov rcx, qword [rsp + 0x168]
call fcn.140029ee0
mov qword [0x140047100], rax
mov rax, qword [0x1400451b8]
mov rcx, qword [0x140047100]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [0x140047110], rax
mov rax, qword [0x1400451c0]
mov rcx, qword [0x140047110]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [0x1400470f0], rax
mov rax, qword [0x140047110]
add rax, 0x338
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x338], rax
mov rax, qword [0x1400451c8]
mov rcx, qword [0x1400470f0]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [0x1400470f8], rax
mov rax, qword [0x140045200]
mov rcx, qword [0x140047110]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov rcx, qword [0x1400470f0]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x100], rax
mov rax, qword [0x1400451d0]
mov rcx, qword [0x1400470f0]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [0x140047108], rax
mov rax, qword [0x1400451e0]
mov rcx, qword [0x1400470e8]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [0x140047118], rax
mov rax, qword [0x1400470f0]
add rax, 0xa20
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x290], rax
mov rax, qword [0x1400451f8]
mov rcx, qword [0x140047118]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029d14
mov dword [rsp + 0x228], eax
mov rax, qword [0x140045208]
mov rcx, qword [0x140047118]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x298], rax
mov rax, qword [0x1400451d8]
mov rcx, qword [0x1400470e8]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x108], rax
mov rax, qword [0x140045270]
mov rcx, qword [rsp + 0x108]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x170], rax
mov rax, qword [0x1400470f0]
add rax, 0x2840
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x2a0], rax
mov byte [rsp + 0x34], 0
cmp qword [0x1400470f0], 0
je 0x14002f625
mov byte [rsp + 0x34], 1
mov rax, qword [rsp + 0x108]
mov rcx, qword [0x140045270]
lea rax, [rax + rcx + 8]
mov rcx, rax
call fcn.140029d14
mov dword [rsp + 0xe0], eax
mov dword [rsp + 0x48], 0
jmp 0x14002f65c
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x48], eax
jae 0x140030657
mov eax, dword [rsp + 0x48]
shl eax, 3
mov eax, eax
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
add rax, 0x308
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14002f6b9
jmp 0x14002f652
mov rax, qword [0x140045218]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x40], rax
mov rax, qword [0x140045228]
mov rcx, qword [0x1400470f8]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029d14
mov dword [rsp + 0x22c], eax
mov rax, qword [rsp + 0x58]
add rax, 0x2b0
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x2a8], rax
mov rax, qword [rsp + 0x58]
add rax, 0x93a
mov rcx, rax
call fcn.140029ce0
movsx eax, al
sar eax, 4
and eax, 1
mov dword [rsp + 0x138], eax
lea rdx, [0x140047b88]
lea rcx, [rsp + 0x248]
call fcn.14002cc24
nop
cmp qword [0x1400470f0], 0
je 0x14002f75a
jmp 0x14002f764
mov dword [0x140045174], 0x960
movzx eax, byte [0x1400470dd]
test eax, eax
je 0x14002f783
lea rcx, [rsp + 0x248]
call fcn.14002d4cc
jmp 0x14002f652
mov rax, qword [0x1400470f0]
cmp qword [rsp + 0x58], rax
jne 0x14002f7a3
lea rcx, [rsp + 0x248]
call fcn.14002d4cc
jmp 0x14002f652
mov rax, qword [0x1400470f0]
cmp qword [rsp + 0x58], rax
jne 0x14002f7c3
lea rcx, [rsp + 0x248]
call fcn.14002d4cc
jmp 0x14002f652
mov r8d, 0x43
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xe8]
call fcn.140030c80
nop
mov r8d, 0x44
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x508]
call fcn.140030c80
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x230]
call fcn.140030c80
nop
mov rax, qword [0x140047108]
add rax, 0x128
mov rdx, rax
lea rcx, [rsp + 0x360]
call fcn.140029e88
mov qword [rsp + 0x180], rax
lea rax, [0x1400477d8]
mov rdi, rax
mov rsi, qword [rsp + 0x180]
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x360]
call fcn.14002979c
lea rax, [rsp + 0x380]
lea rcx, [rsp + 0xe8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x380]
lea rcx, [rsp + 0x4f0]
call fcn.1400322c8
nop
lea rax, [rsp + 0x340]
lea rcx, [rsp + 0xe8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x340]
lea rcx, [0x1400477d8]
call fcn.14002e208
divss xmm0, dword [0x140045164]
movss dword [rsp + 0x60], xmm0
mov r8d, 0x32
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x300]
call fcn.140030c80
nop
lea rax, [rsp + 0x3a0]
lea rcx, [rsp + 0x300]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x3a0]
lea rcx, [rsp + 0x4d8]
call fcn.1400322c8
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x318]
call fcn.140030c80
nop
lea rax, [rsp + 0x3c0]
lea rcx, [rsp + 0x318]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x3c0]
lea rcx, [rsp + 0x120]
call fcn.1400322c8
nop
movsd xmm0, qword [rsp + 0xf8]
addsd xmm0, qword [0x140040520]
movaps xmm3, xmm0
movsd xmm2, qword [rsp + 0xf0]
movsd xmm1, qword [rsp + 0xe8]
lea rcx, [rsp + 0x400]
call fcn.14002ced0
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x190], rax
lea rax, [rsp + 0x3e0]
mov rdi, rax
mov rsi, qword [rsp + 0x190]
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x3e0]
lea rcx, [rsp + 0x78]
call fcn.1400322c8
nop
lea rcx, [rsp + 0x400]
call fcn.14002979c
movsd xmm3, qword [rsp + 0xf8]
movsd xmm2, qword [rsp + 0xf0]
movsd xmm1, qword [rsp + 0xe8]
lea rcx, [rsp + 0x440]
call fcn.14002ced0
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x1a0], rax
lea rax, [rsp + 0x420]
mov rdi, rax
mov rsi, qword [rsp + 0x1a0]
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x420]
lea rcx, [rsp + 0x260]
call fcn.1400322c8
nop
lea rcx, [rsp + 0x440]
call fcn.14002979c
movsd xmm3, qword [rsp + 0x240]
movsd xmm2, qword [rsp + 0x238]
movsd xmm1, qword [rsp + 0x230]
lea rcx, [rsp + 0x480]
call fcn.14002ced0
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1b0], rax
lea rax, [rsp + 0x460]
mov rdi, rax
mov rsi, qword [rsp + 0x1b0]
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x4c0]
call fcn.1400322c8
nop
lea rcx, [rsp + 0x480]
call fcn.14002979c
lea rax, [rsp + 0x4a0]
lea rcx, [rsp + 0xe8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x4a0]
lea rcx, [rsp + 0x278]
call fcn.1400322c8
nop
movsd xmm0, qword [rsp + 0x80]
subsd xmm0, qword [rsp + 0x128]
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0xe4], xmm0
movss xmm0, dword [rsp + 0xe4]
mulss xmm0, dword [0x14003aae8]
movss dword [rsp + 0x90], xmm0
cvtsd2ss xmm0, qword [rsp + 0x78]
movss xmm1, dword [rsp + 0x90]
divss xmm1, dword [0x14003ab0c]
subss xmm0, xmm1
movss dword [rsp + 0x13c], xmm0
cvtsd2ss xmm0, qword [rsp + 0x128]
movss dword [rsp + 0x140], xmm0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
sub eax, 3
mov dword [rsp + 0x144], eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
sub eax, 3
mov dword [rsp + 0x148], eax
cvtss2sd xmm0, dword [0x140045178]
movss xmm1, dword [0x140047218]
subss xmm1, dword [0x14003ab3c]
cvtss2sd xmm1, xmm1
mulsd xmm1, qword [0x1400404f8]
subsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [rsp + 0x14c], eax
movsd xmm0, qword [rsp + 0x80]
subsd xmm0, qword [rsp + 0x128]
call fcn.140033950
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x38], xmm0
movss xmm0, dword [rsp + 0x38]
mulss xmm0, dword [0x140045160]
movss dword [rsp + 0x30], xmm0
cvtsi2ss xmm0, dword [0x140045174]
comiss xmm0, dword [rsp + 0x60]
jbe 0x1400304ca
movzx eax, byte [0x1400470dc]
test eax, eax
je 0x1400304ca
movzx eax, byte [0x1400470df]
test eax, eax
je 0x14002fe52
mov rcx, qword [rsp + 0x40]
call fcn.140031690
movzx eax, al
test eax, eax
je 0x14002fd4d
cvttss2si eax, dword [0x1400452dc]
mov dword [rsp + 0x98], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x1400452d0]
movss xmm0, dword [rcx + rax]
mulss xmm0, dword [0x14003ab48]
cvttss2si eax, xmm0
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x1400452d0]
movss xmm0, dword [rdx + rcx]
mulss xmm0, dword [0x14003ab48]
cvttss2si ecx, xmm0
mov edx, 4
imul rdx, rdx, 0
lea rdi, [0x1400452d0]
movss xmm0, dword [rdi + rdx]
mulss xmm0, dword [0x14003ab48]
cvttss2si edx, xmm0
mov dword [rsp + 0x94], edx
mov r8d, eax
mov edx, ecx
mov eax, dword [rsp + 0x94]
mov ecx, eax
call fcn.1400327f8
mov dword [rsp + 0x9c], eax
cvttss2si eax, dword [rsp + 0x38]
cvttss2si ecx, dword [rsp + 0x30]
cvttsd2si edx, qword [rsp + 0x80]
movss xmm0, dword [rsp + 0x30]
divss xmm0, dword [0x14003ab14]
cvtss2sd xmm0, xmm0
movsd xmm1, qword [rsp + 0x78]
subsd xmm1, xmm0
movaps xmm0, xmm1
cvttsd2si edi, xmm0
mov esi, dword [rsp + 0x98]
mov dword [rsp + 0x28], esi
lea rsi, [rsp + 0x9c]
mov qword [rsp + 0x20], rsi
mov r9d, eax
mov r8d, ecx
mov ecx, edi
call fcn.14002e938
mov rcx, qword [rsp + 0x40]
call fcn.140031690
movzx eax, al
test eax, eax
jne 0x14002fe52
cvttss2si eax, dword [0x1400452dc]
mov dword [rsp + 0xa4], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x1400452c0]
movss xmm0, dword [rcx + rax]
mulss xmm0, dword [0x14003ab48]
cvttss2si eax, xmm0
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x1400452c0]
movss xmm0, dword [rdx + rcx]
mulss xmm0, dword [0x14003ab48]
cvttss2si ecx, xmm0
mov edx, 4
imul rdx, rdx, 0
lea rdi, [0x1400452c0]
movss xmm0, dword [rdi + rdx]
mulss xmm0, dword [0x14003ab48]
cvttss2si edx, xmm0
mov dword [rsp + 0xa0], edx
mov r8d, eax
mov edx, ecx
mov eax, dword [rsp + 0xa0]
mov ecx, eax
call fcn.1400327f8
mov dword [rsp + 0xa8], eax
cvttss2si eax, dword [rsp + 0x38]
cvttss2si ecx, dword [rsp + 0x30]
cvttsd2si edx, qword [rsp + 0x80]
movss xmm0, dword [rsp + 0x30]
divss xmm0, dword [0x14003ab14]
cvtss2sd xmm0, xmm0
movsd xmm1, qword [rsp + 0x78]
subsd xmm1, xmm0
movaps xmm0, xmm1
cvttsd2si edi, xmm0
mov esi, dword [rsp + 0xa4]
mov dword [rsp + 0x28], esi
lea rsi, [rsp + 0xa8]
mov qword [rsp + 0x20], rsi
mov r9d, eax
mov r8d, ecx
mov ecx, edi
call fcn.14002e938
movzx eax, byte [0x1400470de]
test eax, eax
je 0x14002ff3e
mov rcx, qword [rsp + 0x40]
call fcn.140031690
movzx eax, al
test eax, eax
jne 0x14002fed9
mov dword [rsp + 0xac], 0xff0000ff
cvttss2si eax, dword [rsp + 0x38]
cvttss2si ecx, dword [rsp + 0x30]
cvttsd2si edx, qword [rsp + 0x80]
movss xmm0, dword [rsp + 0x30]
divss xmm0, dword [0x14003ab14]
cvtss2sd xmm0, xmm0
movsd xmm1, qword [rsp + 0x78]
subsd xmm1, xmm0
movaps xmm0, xmm1
cvttsd2si edi, xmm0
mov dword [rsp + 0x28], 2
lea rsi, [rsp + 0xac]
mov qword [rsp + 0x20], rsi
mov r9d, eax
mov r8d, ecx
mov ecx, edi
call fcn.14002e35c
jmp 0x14002ff3e
mov dword [rsp + 0xb0], 0xff00ff00
cvttss2si eax, dword [rsp + 0x38]
cvttss2si ecx, dword [rsp + 0x30]
cvttsd2si edx, qword [rsp + 0x80]
movss xmm0, dword [rsp + 0x30]
divss xmm0, dword [0x14003ab14]
cvtss2sd xmm0, xmm0
movsd xmm1, qword [rsp + 0x78]
subsd xmm1, xmm0
movaps xmm0, xmm1
cvttsd2si edi, xmm0
mov dword [rsp + 0x28], 2
lea rsi, [rsp + 0xb0]
mov qword [rsp + 0x20], rsi
mov r9d, eax
mov r8d, ecx
mov ecx, edi
call fcn.14002e35c
movzx eax, byte [0x1400471b9]
test eax, eax
je 0x1400302c5
call fcn.140008ebc
mov qword [rsp + 0x1c8], rax
mov dword [rsp + 0x20], 0xff
xor r9d, r9d
xor r8d, r8d
mov edx, 0xff
lea rcx, [rsp + 0x558]
call fcn.14002cda8
mov rcx, rax
call fcn.14002da28
mov dword [rsp + 0xb4], eax
mov eax, dword [0x140047250]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm0, eax
mov eax, dword [0x14004724c]
cdq
sub eax, edx
sar eax, 1
sub eax, 0xa
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rsp + 0x2b0]
call fcn.14002ce3c
mov qword [rsp + 0x1b8], rax
mov eax, dword [0x140047250]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm0, eax
mov eax, dword [0x14004724c]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rsp + 0x2b8]
call fcn.14002ce3c
mov qword [rsp + 0x1c0], rax
movss xmm0, dword [0x14003ab0c]
movss dword [rsp + 0x20], xmm0
mov r9d, dword [rsp + 0xb4]
mov r8, qword [rsp + 0x1b8]
mov rdx, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1c8]
call fcn.140012878
call fcn.140008ebc
mov qword [rsp + 0x1e0], rax
mov dword [rsp + 0x20], 0xff
xor r9d, r9d
xor r8d, r8d
mov edx, 0xff
lea rcx, [rsp + 0x578]
call fcn.14002cda8
mov rcx, rax
call fcn.14002da28
mov dword [rsp + 0xb8], eax
mov eax, dword [0x140047250]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm0, eax
mov eax, dword [0x14004724c]
cdq
sub eax, edx
sar eax, 1
add eax, 0xa
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rsp + 0x2c0]
call fcn.14002ce3c
mov qword [rsp + 0x1d0], rax
mov eax, dword [0x140047250]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm0, eax
mov eax, dword [0x14004724c]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rsp + 0x2c8]
call fcn.14002ce3c
mov qword [rsp + 0x1d8], rax
movss xmm0, dword [0x14003ab0c]
movss dword [rsp + 0x20], xmm0
mov r9d, dword [rsp + 0xb8]
mov r8, qword [rsp + 0x1d0]
mov rdx, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x1e0]
call fcn.140012878
call fcn.140008ebc
mov qword [rsp + 0x1f8], rax
mov dword [rsp + 0x20], 0xff
xor r9d, r9d
xor r8d, r8d
mov edx, 0xff
lea rcx, [rsp + 0x568]
call fcn.14002cda8
mov rcx, rax
call fcn.14002da28
mov dword [rsp + 0xbc], eax
mov eax, dword [0x140047250]
cdq
sub eax, edx
sar eax, 1
sub eax, 0xa
cvtsi2ss xmm0, eax
mov eax, dword [0x14004724c]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rsp + 0x2d0]
call fcn.14002ce3c
mov qword [rsp + 0x1e8], rax
mov eax, dword [0x140047250]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm0, eax
mov eax, dword [0x14004724c]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rsp + 0x2d8]
call fcn.14002ce3c
mov qword [rsp + 0x1f0], rax
movss xmm0, dword [0x14003ab0c]
movss dword [rsp + 0x20], xmm0
mov r9d, dword [rsp + 0xbc]
mov r8, qword [rsp + 0x1e8]
mov rdx, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1f8]
call fcn.140012878
call fcn.140008ebc
mov qword [rsp + 0x210], rax
mov dword [rsp + 0x20], 0xff
xor r9d, r9d
xor r8d, r8d
mov edx, 0xff
lea rcx, [rsp + 0x548]
call fcn.14002cda8
mov rcx, rax
call fcn.14002da28
mov dword [rsp + 0xc0], eax
mov eax, dword [0x140047250]
cdq
sub eax, edx
sar eax, 1
add eax, 0xa
cvtsi2ss xmm0, eax
mov eax, dword [0x14004724c]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rsp + 0x2e0]
call fcn.14002ce3c
mov qword [rsp + 0x200], rax
mov eax, dword [0x140047250]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm0, eax
mov eax, dword [0x14004724c]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rsp + 0x2e8]
call fcn.14002ce3c
mov qword [rsp + 0x208], rax
movss xmm0, dword [0x14003ab0c]
movss dword [rsp + 0x20], xmm0
mov r9d, dword [rsp + 0xc0]
mov r8, qword [rsp + 0x200]
mov rdx, qword [rsp + 0x208]
mov rcx, qword [rsp + 0x210]
call fcn.140012878
movzx eax, byte [0x140047197]
test eax, eax
je 0x140030348
mov rcx, qword [rsp + 0x40]
call fcn.140031690
movzx eax, al
test eax, eax
je 0x140030348
cvttsd2si eax, qword [rsp + 0x268]
mov dword [rsp + 0xc4], eax
cvttsd2si ecx, qword [rsp + 0x260]
mov eax, dword [0x140047250]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0xc8], eax
mov eax, dword [0x14004724c]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x28], 2
lea rdx, [0x1400452e0]
mov qword [rsp + 0x20], rdx
mov edx, dword [rsp + 0xc4]
mov r9d, edx
mov r8d, ecx
mov ecx, dword [rsp + 0xc8]
mov edx, ecx
mov ecx, eax
call fcn.14003097c
movzx eax, byte [0x140047194]
test eax, eax
je 0x1400303a0
cvttss2si eax, dword [rsp + 0x38]
cvttss2si ecx, dword [rsp + 0x30]
cvttsd2si edx, qword [rsp + 0x80]
movss xmm0, dword [rsp + 0x30]
divss xmm0, dword [0x14003ab14]
cvtss2sd xmm0, xmm0
movsd xmm1, qword [rsp + 0x78]
subsd xmm1, xmm0
movaps xmm0, xmm1
cvttsd2si edi, xmm0
mov dword [rsp + 0x20], 0x96000000
mov r9d, eax
mov r8d, ecx
mov ecx, edi
call fcn.1400308d4
movzx eax, byte [0x140047195]
test eax, eax
je 0x140030440
lea rdx, str._.fm_n
lea rcx, [rsp + 0x588]
call fcn.14002c898
cvtss2sd xmm0, dword [rsp + 0x60]
movsd qword [rsp + 0x218], xmm0
lea rcx, [rsp + 0x588]
call fcn.14003457c
movsd xmm0, qword [rsp + 0x218]
movaps xmm2, xmm0
movq r8, xmm2
mov rdx, rax
lea rcx, [rsp + 0x590]
call fcn.140029f18
movsd xmm0, qword [rsp + 0x128]
addsd xmm0, qword [0x140040518]
cvttsd2si eax, xmm0
movsd xmm0, qword [rsp + 0x120]
subsd xmm0, qword [0x140040510]
cvttsd2si ecx, xmm0
lea r9, [0x140045530]
lea r8, [rsp + 0x590]
mov edx, eax
call fcn.140030ab0
movzx eax, byte [0x1400471a5]
test eax, eax
je 0x1400304ca
mov rax, qword [0x1400451e8]
mov rcx, qword [0x140045218]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029d4c
movss dword [rsp + 0xd0], xmm0
mov rax, qword [0x1400451f0]
mov rcx, qword [0x140045218]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029d4c
movss dword [rsp + 0xcc], xmm0
movss xmm0, dword [rsp + 0xcc]
addss xmm0, dword [0x1400403f0]
comiss xmm0, dword [rsp + 0xd0]
jb 0x1400304ba
mov dword [rsp + 0x64], 1
jmp 0x1400304c2
mov dword [rsp + 0x64], 0
mov al, byte [rsp + 0x64]
mov byte [rsp + 0x4f], al
mov eax, dword [0x14004724c]
cdq
sub eax, edx
sar eax, 1
cvtsi2sd xmm0, eax
movsd xmm1, qword [rsp + 0x278]
subsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0x110], xmm0
mov eax, dword [0x140047250]
cdq
sub eax, edx
sar eax, 1
cvtsi2sd xmm0, eax
movsd xmm1, qword [rsp + 0x280]
subsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0x118], xmm0
movsd xmm0, qword [rsp + 0x110]
mulsd xmm0, qword [rsp + 0x110]
movsd xmm1, qword [rsp + 0x118]
mulsd xmm1, qword [rsp + 0x118]
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_sqrtf]
movss dword [rsp + 0x50], xmm0
mov rcx, qword [rsp + 0x40]
call fcn.140031690
movzx eax, al
test eax, eax
jne 0x14003056e
movzx eax, byte [0x1400471a5]
test eax, eax
jne 0x1400305a0
movss xmm0, dword [0x140045178]
comiss xmm0, dword [rsp + 0x50]
jbe 0x1400305a0
movss xmm0, dword [rsp + 0x68]
comiss xmm0, dword [rsp + 0x50]
jbe 0x1400305a0
movss xmm0, dword [rsp + 0x50]
movss dword [rsp + 0x68], xmm0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x278]
call fcn.14002979c
nop
lea rcx, [rsp + 0x4c0]
call fcn.14002979c
nop
lea rcx, [rsp + 0x260]
call fcn.14002979c
nop
lea rcx, [rsp + 0x78]
call fcn.14002979c
nop
lea rcx, [rsp + 0x120]
call fcn.14002979c
nop
lea rcx, [rsp + 0x318]
call fcn.14002979c
nop
lea rcx, [rsp + 0x4d8]
call fcn.14002979c
nop
lea rcx, [rsp + 0x300]
call fcn.14002979c
nop
lea rcx, [rsp + 0x4f0]
call fcn.14002979c
nop
lea rcx, [rsp + 0x230]
call fcn.14002979c
nop
lea rcx, [rsp + 0x508]
call fcn.14002979c
nop
lea rcx, [rsp + 0xe8]
call fcn.14002979c
nop
lea rcx, [rsp + 0x248]
call fcn.14002d4cc
jmp 0x14002f652
movzx eax, byte [0x1400470cc]
test eax, eax
je 0x1400306fd
movzx eax, byte [0x1400470ce]
test eax, eax
je 0x1400306cf
movzx eax, byte [0x1400470cc]
test eax, eax
je 0x1400306cf
cmp qword [rsp + 0x70], 0
je 0x1400306cf
mov ecx, dword [0x14004721c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jge 0x1400306cf
xor ecx, ecx
call fcn.1400372fc
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 3
idiv ecx
mov eax, edx
mov dword [rsp + 0xd4], eax
cmp dword [rsp + 0xd4], 2
jge 0x1400306cf
mov rcx, qword [rsp + 0x70]
call fcn.14002e0b0
movzx eax, byte [0x1400470cc]
test eax, eax
je 0x1400306fd
cmp qword [rsp + 0x70], 0
je 0x1400306fd
mov ecx, dword [0x14004721c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jge 0x1400306fd
mov rcx, qword [rsp + 0x70]
call fcn.14002e0b0
movzx eax, byte [0x1400471be]
test eax, eax
je 0x14003073c
mov rax, qword [0x1400470f0]
add rax, 0x241c
movss xmm1, dword [0x14003ab54]
mov rcx, rax
call fcn.140029fc0
mov rax, qword [0x1400470f0]
add rax, 0x2338
mov dl, 1
mov rcx, rax
call fcn.140029f58
movzx eax, byte [0x1400471ba]
test eax, eax
je 0x14003078f
cmp qword [0x1400470f0], 0
je 0x14003078f
mov rax, qword [0x1400452b0]
mov rcx, qword [0x1400470f0]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x2f0], rax
mov rax, qword [0x1400452b0]
add rax, 0xa80
mov edx, 1
mov rcx, rax
call fcn.140029f8c
movzx eax, byte [0x1400471bb]
test eax, eax
je 0x1400307e6
mov rax, qword [0x140045198]
mov rcx, qword [0x1400451c0]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x220], rax
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400307e6
mov rax, qword [rsp + 0x220]
add rax, 0x2840
mov dl, 1
mov rcx, rax
call fcn.140029f58
movzx eax, byte [0x140047235]
test eax, eax
je 0x14003080e
mov rax, qword [0x1400470f0]
add rax, 0x4ae8
movss xmm1, dword [0x14003ab0c]
mov rcx, rax
call fcn.140029fc0
movzx eax, byte [0x1400471bc]
test eax, eax
je 0x140030830
mov rax, qword [0x1400470f0]
add rax, 0x5468
mov dl, 1
mov rcx, rax
call fcn.140029f58
movzx eax, byte [0x140047234]
test eax, eax
je 0x140030856
mov rax, qword [0x140047110]
add rax, 0x68
movss xmm1, dword [0x14003ab68]
mov rcx, rax
call fcn.140029fc0
movzx eax, byte [0x1400471bf]
test eax, eax
je 0x1400308ad
mov rax, qword [0x1400470f0]
add rax, 0x318
mov rcx, rax
call fcn.140029ee0
mov qword [rsp + 0x2f8], rax
mov rax, qword [0x1400452b0]
add rax, 0x194
mov dl, 1
mov rcx, rax
call fcn.140029f58
mov rax, qword [0x1400452a8]
add rax, 0x194
mov dl, 1
mov rcx, rax
call fcn.140029f58
nop
lea rcx, [rsp + 0x520]
call fcn.14002d4cc
mov rcx, qword [rsp + 0x5d0]
xor rcx, rsp
call fcn.1400378b0
add rsp, 0x5e8
pop rdi
pop rsi
ret