Function at 0x406338
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x5c]
add eax, 0x308
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00408f91
test eax, eax
jne 0x40636f
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00418110
jmp 0x406d2d
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x308]
mov eax, dword [ecx + 0x30c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
test ecx, ecx
je case.0x4063ce.5
mov edx, dword [ebp + 8]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
sub eax, 0x2d
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x3e
ja case.0x4063ce.5
mov edx, dword [ebp - 0x60]
xor ecx, ecx
mov cl, byte [edx + 0x406d4b]
jmp dword [ecx*4 + 0x406d33]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x5c]
call dword [edx + 0xec]
jmp case.0x4063ce.5
push 0
mov ecx, dword [ebp - 0x5c]
call fcn.00410a4e
push 1
mov ecx, dword [ebp - 0x5c]
call fcn.00417be0
jmp case.0x4063ce.5
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x5c]
call dword [edx + 0xe0]
jmp case.0x4063ce.5
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x5c]
call dword [edx + 0xe4]
jmp case.0x4063ce.5
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x5c]
call dword [edx + 0xe8]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
je 0x406451
cmp dword [ebp + 8], 0x2d
jne 0x406451
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x5c]
call dword [edx + 0xe8]
cmp dword [ebp + 8], 0x2e
jne 0x40646a
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x5c]
call dword [edx + 0xc0]
jmp 0x406aab
cmp dword [ebp + 8], 0x28
jne 0x4064c8
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x5c]
call fcn.00417a40
cmp dword [ebp - 0x18], eax
jge 0x4064b7
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.00410560
test eax, eax
jle 0x4064ac
mov dword [ebp - 8], 1
jmp 0x4064b7
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x406486
cmp dword [ebp - 8], 0
jne 0x4064c3
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
jmp 0x406aab
cmp dword [ebp + 8], 0x26
jne 0x406527
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + 0xdc]
jl 0x406516
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00410560
test eax, eax
jle 0x40650b
mov dword [ebp - 8], 1
jmp 0x406516
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x4064e4
cmp dword [ebp - 8], 0
jne 0x406522
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
jmp 0x406aab
cmp dword [ebp + 8], 0x27
je 0x40654f
cmp dword [ebp + 8], 9
jne 0x406664
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
jne 0x406664
cmp dword [ebp + 8], 9
jne 0x406582
mov ecx, dword [ebp - 0x5c]
xor edx, edx
mov dl, byte [ecx + 0x4ae]
test edx, edx
je 0x406582
mov ecx, dword [ebp - 0x5c]
call fcn.00417c20
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40657d
mov ecx, dword [ebp - 0x20]
call fcn.00418180
jmp 0x406d2d
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 9
jne 0x406622
mov ecx, dword [ebp - 0x5c]
call fcn.004173a0
cmp dword [ebp - 0x14], eax
jne 0x40660e
mov ecx, dword [ebp - 0x5c]
call fcn.00417a40
sub eax, 1
cmp dword [ebp - 0x18], eax
jge 0x40660e
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x5c]
call fcn.00417a40
cmp dword [ebp - 0x18], eax
jge 0x4065f9
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00410560
test eax, eax
jle 0x4065ee
mov dword [ebp - 8], 1
jmp 0x4065f9
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x4065c8
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0xe4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 1
jmp 0x406622
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00418110
mov ecx, dword [ebp - 0x5c]
call fcn.004173a0
cmp dword [ebp - 0x14], eax
jge 0x406653
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.00410598
test eax, eax
jle 0x406648
mov dword [ebp - 8], 1
jmp 0x406653
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x406622
cmp dword [ebp - 8], 0
jne 0x40665f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x406aab
cmp dword [ebp + 8], 0x25
je 0x40668d
cmp dword [ebp + 8], 9
jne 0x406772
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
test ecx, ecx
je 0x406772
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], 9
jne 0x40672f
mov ecx, dword [ebp - 0x5c]
call fcn.00417a80
sub eax, 1
cmp dword [ebp - 0x14], eax
jne 0x40671b
mov ecx, dword [ebp - 0x5c]
call fcn.00417a60
cmp dword [ebp - 0x18], eax
jle 0x40671b
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x5c]
call fcn.00417a60
cmp dword [ebp - 0x18], eax
jle 0x406704
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.00410560
test eax, eax
jle 0x4066f9
mov dword [ebp - 8], 1
jmp 0x406704
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x18], eax
jmp 0x4066d3
mov ecx, dword [ebp - 0x5c]
call fcn.004173a0
sub eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 1
jmp 0x40672f
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00418110
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0xe4]
jl 0x406761
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00410598
test eax, eax
jle 0x406756
mov dword [ebp - 8], 1
jmp 0x406761
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x40672f
cmp dword [ebp - 8], 0
jne 0x40676d
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x406aab
cmp dword [ebp + 8], 0x22
jne 0x4067f7
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.0040bc75
push 0
push 3
push 0x115
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0x10], 1
push 0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.0040bc75
mov edx, dword [ebp - 0x34]
sub edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x4067e4
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x5c]
call fcn.00417a40
sub eax, 1
cmp dword [ebp - 0x18], eax
jle 0x4067e2
mov ecx, dword [ebp - 0x5c]
call fcn.00417a40
sub eax, 1
mov dword [ebp - 0x18], eax
jmp 0x4067f2
mov ecx, dword [ebp - 0x5c]
call fcn.00417a40
sub eax, 1
mov dword [ebp - 0x18], eax
jmp 0x406aab
cmp dword [ebp + 8], 0x21
jne 0x406876
push 0
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.0040bc75
push 0
push 2
push 0x115
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0x10], 1
push 0
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.0040bc75
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x406865
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 0xdc]
jge 0x406863
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0xdc]
mov dword [ebp - 0x18], edx
jmp 0x406871
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0xdc]
mov dword [ebp - 0x18], ecx
jmp 0x406aab
cmp dword [ebp + 8], 0x24
jne 0x406962
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
test edx, edx
je 0x4068df
push 0
push 6
push 0x115
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
push 0
push 6
push 0x114
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0xdc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0xe4]
mov dword [ebp - 0x14], eax
jmp 0x406903
push 0
push 6
push 0x114
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0xe4]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x5c]
call fcn.004173a0
sub eax, 1
cmp dword [ebp - 0x14], eax
jge 0x406930
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00410598
test eax, eax
jle 0x406925
jmp 0x406930
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x406903
mov ecx, dword [ebp - 0x5c]
call fcn.00417a40
sub eax, 1
cmp dword [ebp - 0x18], eax
jge 0x40695d
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.00410560
test eax, eax
jle 0x406952
jmp 0x40695d
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x406930
jmp 0x406aab
cmp dword [ebp + 8], 0x23
jne 0x406a53
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
test ecx, ecx
je 0x4069cf
push 0
push 7
push 0x115
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
push 0
push 7
push 0x114
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x5c]
call fcn.00417a40
sub eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x5c]
call fcn.004173a0
sub eax, 1
mov dword [ebp - 0x14], eax
jmp 0x4069f5
push 0
push 7
push 0x114
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x5c]
call fcn.004173a0
sub eax, 1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0xe4]
add eax, 1
cmp dword [ebp - 0x14], eax
jle 0x406a23
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.00410598
test eax, eax
jle 0x406a18
jmp 0x406a23
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
jmp 0x4069f5
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0xdc]
add ecx, 1
cmp dword [ebp - 0x18], ecx
jle 0x406a51
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.00410560
test eax, eax
jle 0x406a46
jmp 0x406a51
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x18], eax
jmp 0x406a23
jmp 0x406aab
cmp dword [ebp + 8], 0x71
jne 0x406a92
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [ebp - 0x50]
call fcn.00401f90
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x30c]
push ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x308]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x5c]
call dword [edx + 0x11c]
jmp 0x406aab
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.00418110
jmp 0x406d2d
mov eax, dword [ebp - 0x5c]
add eax, 0x308
push eax
lea ecx, [ebp - 0x18]
call fcn.004179e0
test eax, eax
je 0x406d2d
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + 0x2dc], 0
jne 0x406b68
mov ecx, dword [ebp - 0x5c]
add ecx, 0x34c
call fcn.00419940
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x84]
neg eax
sbb eax, eax
add eax, 4
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x2dc], eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
test edx, edx
je 0x406b16
cmp dword [ebp + 8], 9
jne 0x406b2b
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x300], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x304], edx
push 0xffffffffffffff9c
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.0040533c
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.0040a0e7
push 0xffffffffffffff9b
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.0040533c
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x2dc], 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.00409480
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.004119e7
test eax, eax
jne 0x406cf3
mov edx, dword [ebp + 8]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
sub eax, 9
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x1f
ja case.0x406bb8.5
mov edx, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [edx + 0x406da2]
jmp dword [ecx*4 + 0x406d8a]
push 0
push 1
push 0x114
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0xc], 1
jmp case.0x406bb8.5
push 0
push 0
push 0x114
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0xc], 1
jmp case.0x406bb8.5
push 0
push 1
push 0x115
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0x10], 1
jmp case.0x406bb8.5
push 0
push 0
push 0x115
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0x10], 1
jmp case.0x406bb8.5
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
je 0x406c97
cmp dword [ebp - 0x1c], 0
je 0x406c7d
push 0
push 0
push 0x115
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0x10], 1
push 1
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x114]
push edx
push 0
mov ecx, dword [ebp - 0x5c]
call fcn.0040c422
jmp case.0x406bb8.5
push 0
push 0
push 0x114
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0xc], 1
jmp case.0x406bb8.5
cmp dword [ebp - 0x1c], 0
je 0x406cc5
push 0
push 1
push 0x115
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0x10], 1
push 1
push 0
push 0
mov ecx, dword [ebp - 0x5c]
call fcn.0040c422
jmp case.0x406bb8.5
push 0
push 1
push 0x114
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00417aa0
push 1
mov ecx, dword [ebp - 0x5c]
call fcn.00417be0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.00417aa0
cmp dword [ebp - 0xc], 0
je 0x406d16
push 0
push 8
push 0x114
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
cmp dword [ebp - 0x10], 0
je 0x406d2d
push 0
push 8
push 0x115
mov ecx, dword [ebp - 0x5c]
call fcn.00402080
mov esp, ebp
pop ebp
ret 0xc