Function at 0x10020820
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1012066a
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x228
cmp byte [0x10168938], 0
push esi
push edi
mov edi, ecx
je 0x100213de
push dword [0x10168940]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x100213de
mov eax, dword [0x1016bffc]
mov ecx, dword [eax]
test ecx, ecx
je 0x100213d7
call fcn.10093ba0
test al, al
je 0x100213d7
mov ecx, dword [0x10167e4c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x100213d7
mov ecx, dword [0x10167e4c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x100213d7
mov eax, dword [0x1016bffc]
mov ecx, dword [eax]
call fcn.10017c60
mov eax, dword [eax]
cmp eax, 0x400
je 0x100213de
cmp eax, 8
je 0x100213de
mov eax, dword [0x1016bffc]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x25c]
cmp eax, 9
je 0x100213de
cmp eax, 8
je 0x100213de
call fcn.1001b020
movss xmm0, dword [eax]
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [eax + 4]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [eax + 8]
mov eax, dword [0x1016bffc]
movss dword [ebp - 0x40], xmm0
mov ecx, dword [eax]
call fcn.10017c60
mov edx, dword [0x10168af4]
mov al, byte [eax]
and al, 1
mov byte [ebp - 0x3c], al
mov eax, dword [0x10168afc]
inc eax
cmp edx, eax
ja 0x10020950
push ecx
call fcn.10025a40
mov edx, dword [0x10168af4]
lea ecx, [edx - 1]
mov eax, edx
and ecx, dword [0x10168af8]
lea esi, [edx - 1]
mov dword [0x10168af8], ecx
cmovne eax, ecx
mov ecx, dword [0x10168af0]
dec eax
and esi, eax
mov dword [ebp - 0x14], eax
cmp dword [ecx + esi*4], 0
jne 0x10020998
push 0x10
call fcn.100f52b9
mov ecx, dword [0x10168af0]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [0x10168af4]
mov ecx, dword [0x10168af0]
movups xmm0, xmmword [ebp - 0x48]
lea eax, [edx - 1]
mov edx, dword [ebp - 0x14]
and eax, edx
mov eax, dword [ecx + eax*4]
movups xmmword [eax], xmm0
mov ecx, dword [0x10168afc]
mov dword [0x10168af8], edx
lea eax, [ecx + 1]
mov dword [0x10168afc], eax
cmp eax, 2
jbe 0x100209d3
mov dword [0x10168afc], ecx
test ecx, ecx
jne 0x100209d3
mov dword [0x10168af8], ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1016766c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1016c03c]
cmp eax, dword [ecx + 4]
jle 0x10020a37
push 0x1016c03c
call fcn.100f5255
add esp, 4
cmp dword [0x1016c03c], 0xffffffff
jne 0x10020a37
mov dword [ebp - 4], 0
mov ecx, dword [0x10167e54]
push str.sv_gravity
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
push 0x1016c03c
mov dword [0x1016c0a4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100f5204
add esp, 4
mov ecx, dword [0x1016c0a4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
cmp dword [0x10168afc], 2
fmul dword [0x10151f0c]
mov esi, dword [0x10167e48]
fstp dword [ebp - 0x14]
movss xmm0, dword [ebp - 0x14]
mulss xmm0, dword [esi + 0x20]
movss dword [ebp - 0x38], xmm0
jne 0x100213de
mulss xmm0, dword [0x10151e3c]
push ecx
movss dword [ebp - 0x14], xmm0
fld dword [ebp - 0x14]
fstp dword [esp]
call fcn.1011c03f
mov ecx, dword [0x10168af4]
mov eax, dword [0x10168af8]
dec ecx
and eax, ecx
mov dword [ebp - 0x54], ecx
mov ecx, dword [0x10168af0]
fstp dword [ebp - 0x18]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x1c], eax
movss xmm0, dword [eax + 8]
mulss xmm0, dword [0x10151e3c]
movss dword [ebp - 0x14], xmm0
fld dword [ebp - 0x14]
fstp dword [esp]
call fcn.1011c03f
movss xmm0, dword [ebp - 0x18]
add esp, 4
fstp dword [ebp - 0x14]
ucomiss xmm0, dword [ebp - 0x14]
lahf
test ah, 0x44
jp 0x10020b13
mov eax, dword [0x10168af8]
mov ecx, dword [0x10168af0]
inc eax
and eax, dword [ebp - 0x54]
movss xmm0, dword [ebp - 0x38]
mov eax, dword [ecx + eax*4]
comiss xmm0, dword [eax + 8]
jbe 0x10020b13
cmp byte [eax + 0xc], 0
jne 0x10020b13
cmp dword [0x10168afc], 0
jbe 0x100213f7
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xc], 0
je 0x10020b1f
mov eax, dword [edi + 0x64]
cmp eax, dword [esi + 0x1c]
jne 0x100213de
mov ecx, 0x10168aec
call fcn.10023d20
inc dword [edi + 0x78]
mov byte [edi + 0x5d], 1
call fcn.10024e60
cmp byte [0x10168948], 0
mov dword [ebp - 0x38], eax
je 0x1002128b
xorps xmm0, xmm0
mov dword [ebp - 0x210], 2
movups xmmword [ebp - 0x220], xmm0
mov eax, 0x120
mov dword [ebp - 0x20c], 0xf
mov word [ebp - 0x220], ax
mov byte [ebp - 0x21e], 0
movups xmmword [ebp - 0x208], xmm0
mov eax, 0x220
mov dword [ebp - 0x1f8], 2
mov dword [ebp - 0x1f4], 0xf
mov word [ebp - 0x208], ax
mov byte [ebp - 0x206], 0
movups xmmword [ebp - 0x1f0], xmm0
mov eax, 0x320
mov dword [ebp - 0x1e0], 2
mov dword [ebp - 0x1dc], 0xf
mov word [ebp - 0x1f0], ax
mov byte [ebp - 0x1ee], 0
movups xmmword [ebp - 0x1d8], xmm0
mov eax, 0x420
mov dword [ebp - 0x1c8], 2
mov dword [ebp - 0x1c4], 0xf
mov word [ebp - 0x1d8], ax
mov byte [ebp - 0x1d6], 0
movups xmmword [ebp - 0x1c0], xmm0
mov eax, 0x520
mov dword [ebp - 0x1b0], 2
mov dword [ebp - 0x1ac], 0xf
mov word [ebp - 0x1c0], ax
mov byte [ebp - 0x1be], 0
movups xmmword [ebp - 0x1a8], xmm0
mov eax, 0x620
mov dword [ebp - 0x198], 2
mov dword [ebp - 0x194], 0xf
mov word [ebp - 0x1a8], ax
mov byte [ebp - 0x1a6], 0
movups xmmword [ebp - 0x190], xmm0
mov eax, 0x720
mov dword [ebp - 0x180], 2
mov dword [ebp - 0x17c], 0xf
mov word [ebp - 0x190], ax
mov byte [ebp - 0x18e], 0
movups xmmword [ebp - 0x178], xmm0
mov eax, 0x820
mov dword [ebp - 0x168], 2
mov dword [ebp - 0x164], 0xf
mov word [ebp - 0x178], ax
mov byte [ebp - 0x176], 0
movups xmmword [ebp - 0x160], xmm0
mov eax, 0x920
mov dword [ebp - 0x150], 2
mov dword [ebp - 0x14c], 0xf
mov word [ebp - 0x160], ax
mov byte [ebp - 0x15e], 0
movups xmmword [ebp - 0x148], xmm0
mov eax, 0x1020
mov dword [ebp - 0x138], 2
mov dword [ebp - 0x134], 0xf
mov word [ebp - 0x148], ax
mov byte [ebp - 0x146], 0
movups xmmword [ebp - 0x130], xmm0
mov eax, 0xa20
mov dword [ebp - 0x120], 2
mov dword [ebp - 0x11c], 0xf
mov word [ebp - 0x130], ax
mov byte [ebp - 0x12e], 0
movups xmmword [ebp - 0x118], xmm0
mov dword [ebp - 0x108], 2
mov dword [ebp - 0x104], 0xf
mov eax, 0xb20
mov byte [ebp - 0x116], 0
mov word [ebp - 0x118], ax
movups xmmword [ebp - 0x100], xmm0
mov eax, 0xc20
mov dword [ebp - 0xf0], 2
mov dword [ebp - 0xec], 0xf
mov word [ebp - 0x100], ax
mov byte [ebp - 0xfe], 0
movups xmmword [ebp - 0xe8], xmm0
mov eax, 0xd20
mov dword [ebp - 0xd8], 2
mov dword [ebp - 0xd4], 0xf
mov word [ebp - 0xe8], ax
mov byte [ebp - 0xe6], 0
movups xmmword [ebp - 0xd0], xmm0
mov eax, 0xe20
mov dword [ebp - 0xc0], 2
mov dword [ebp - 0xbc], 0xf
mov word [ebp - 0xd0], ax
mov byte [ebp - 0xce], 0
movups xmmword [ebp - 0xb8], xmm0
mov eax, 0xf20
mov dword [ebp - 0xa8], 2
mov dword [ebp - 0xa4], 0xf
mov word [ebp - 0xb8], ax
mov byte [ebp - 0xb6], 0
mov dword [ebp - 4], 0x10
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 0x11
cmp byte [0x10168949], 0
je 0x10020e62
mov eax, dword [0x10168468]
push 0xf
push 0
call eax
add esp, 8
jmp 0x10020e67
mov eax, dword [0x1016894c]
lea ecx, [ebp - 0x220]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x10020e8f
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x10020e85
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.10011110
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov byte [ebp - 4], 0x12
mov eax, dword [0x1016bffc]
mov ecx, dword [eax]
call fcn.10017c60
test byte [eax], 2
jne 0x10020edb
mov esi, dword [str.standing]
mov eax, dword [0x1014c1cc]
mov dword [ebp - 0x40], 8
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0
jmp 0x10020f00
mov eax, dword [str.ducking]
mov dword [ebp - 0x50], eax
mov ax, word [0x1014c1d8]
mov word [ebp - 0x4c], ax
mov al, byte [0x1014c1da]
mov dword [ebp - 0x40], 7
mov byte [ebp - 0x4a], al
mov byte [ebp - 0x49], 0
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x24]
cmova eax, dword [ebp - 0x34]
push eax
call fcn.10011210
push 6
push str.kumori
mov ecx, eax
call fcn.10011210
push 1
push 0x1014c164
mov ecx, eax
call fcn.10011210
push 3
push 0x1014c168
mov ecx, eax
call fcn.10011210
push 0xa
push str.edgebugged
mov ecx, eax
call fcn.10011210
push 3
push 0x1014c168
mov ecx, eax
call fcn.10011210
push 7
push str.count:
mov ecx, eax
call fcn.10011210
cmp dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x34]
push dword [ebp - 0x24]
cmova ecx, dword [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.10011210
mov ecx, dword [edi + 0x78]
lea esi, [ebp - 0x223]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jns 0x10020ff0
neg ecx
mov dword [ebp - 0x18], ecx
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
mov cl, dl
shl al, 2
add cl, al
mov eax, dword [ebp - 0x18]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x18], eax
add cl, 0x30
mov byte [esi], cl
mov ecx, edx
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x10020fb6
dec esi
mov byte [esi], 0x2d
jmp 0x1002101e
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
mov cl, dl
shl al, 2
add cl, al
mov eax, dword [ebp - 0x18]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x18], eax
add cl, 0x30
mov byte [esi], cl
mov ecx, edx
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x10020ff0
push ecx
lea eax, [ebp - 0x223]
push eax
push esi
lea ecx, [ebp - 0x84]
call fcn.10011900
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x70], 0xf
push dword [ebp - 0x74]
cmova eax, dword [ebp - 0x84]
push eax
call fcn.10011210
push 1
push 0x1014c164
mov ecx, eax
call fcn.10011210
push 3
push 0x1014c168
mov ecx, eax
call fcn.10011210
push 0xd
push str.mouse_offset:
mov ecx, eax
call fcn.10011210
cmp dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x34]
push dword [ebp - 0x24]
cmova ecx, dword [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.10011210
mov edx, dword [edi + 0x74]
lea ecx, [ebp - 0x9c]
mov esi, eax
call fcn.10006620
mov byte [ebp - 4], 0x15
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x100210b2
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.10011210
push 1
push 0x1014c164
mov ecx, eax
call fcn.10011210
push 3
push 0x1014c168
mov ecx, eax
call fcn.10011210
push 5
push str.type:
mov ecx, eax
call fcn.10011210
cmp dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x34]
push dword [ebp - 0x24]
cmova ecx, dword [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.10011210
push dword [ebp - 0x40]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.10011210
cmp dword [eax + 0x14], 0xf
jbe 0x10021111
mov eax, dword [eax]
push eax
push 0
push 0
push dword [ebp - 0x38]
call fcn.1001b1c0
mov byte [ebp - 4], 0x14
add esp, 0x10
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x1002115f
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10021155
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100213fc
push ecx
push edx
call fcn.100f5603
add esp, 8
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
cmp ecx, 0xf
jbe 0x100211b5
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100211ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100213fc
push ecx
push edx
call fcn.100f5603
add esp, 8
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe 0x100211ed
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100211e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100213fc
push ecx
push edx
call fcn.100f5603
add esp, 8
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
cmp ecx, 0xf
jbe 0x10021237
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002122d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10021401
push ecx
push edx
call fcn.100f5603
add esp, 8
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x1002126f
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10021265
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10021401
push ecx
push edx
call fcn.100f5603
add esp, 8
push fcn.100046e0
push 0x10
push 0x18
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.100f5642
cmp byte [0x1016896c], 0
je case.default.0x100212a6
mov eax, dword [0x10168970]
cmp eax, 5
ja case.default.0x100212a6
jmp dword [eax*4 + 0x10021408]
mov ecx, dword [0x10168fd4]
movss xmm0, dword [0x10168974]
push ecx
mov dword [esp], 0
push 0
push 0x64
push ecx
movss dword [esp], xmm0
push str.ui_beep07.wav
jmp 0x1002139b
mov ecx, dword [0x10168fd4]
movss xmm0, dword [0x10168974]
push ecx
mov dword [esp], 0
push 0
push 0x64
push ecx
movss dword [esp], xmm0
push str.survivalmoney_collect_01.wav
jmp 0x1002139b
mov ecx, dword [0x10168fd4]
movss xmm0, dword [0x10168974]
push ecx
mov dword [esp], 0
push 0
push 0x64
push ecx
movss dword [esp], xmm0
push str.physicsmetalmetal_solid_impact_bullet2.wav
jmp 0x1002139b
mov ecx, dword [0x10168fd4]
movss xmm0, dword [0x10168974]
push ecx
mov dword [esp], 0
push 0
push 0x64
push ecx
movss dword [esp], xmm0
push str.buttons_arena_switch_press_02.wav
jmp 0x1002139b
mov ecx, dword [0x10168fd4]
movss xmm0, dword [0x10168974]
push ecx
mov dword [esp], 0
push 0
push 0x64
push ecx
movss dword [esp], xmm0
push str.training_timer_bell.wav
jmp 0x1002139b
mov ecx, dword [0x10168fd4]
movss xmm0, dword [0x10168974]
push ecx
mov dword [esp], 0
push 0
push 0x64
push ecx
movss dword [esp], xmm0
push str.physicsglassglass_impact_bullet1.wav
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp byte [0x10168950], 0
je 0x100213e2
mov eax, dword [0x10167e48]
movss xmm0, dword [eax + 0x10]
addss xmm0, dword [0x10168954]
mov eax, dword [0x1016bffc]
mov ecx, dword [eax]
movss dword [ebp - 0x1c], xmm0
call fcn.1001ae60
movss xmm0, dword [ebp - 0x1c]
movss dword [eax], xmm0
jmp 0x100213e2
mov dword [edi + 0x78], 0
mov byte [edi + 0x5d], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.10023dd0
call fcn.100fac9a
call fcn.100fac9a
nop
lodsd eax, dword [esi]
adc al, byte [edx]
adc bh, dl
adc al, byte [edx]
adc byte [ecx], al
adc eax, dword [edx]
adc byte [eax], ch
adc eax, dword [edx]
adc byte [edi + 0x13], cl
add dl, byte [eax]
jbe 0x10021431
add dl, byte [eax]
insb byte es:[edi], dx
and al, 4