Function at 0x10016323
Capabilities:
Log keystrokes via polling

Disassembly:
xor eax, eax
cmp dword [0x1023a288], eax
sete al
lea eax, [eax*4 + 0x100]
jmp 0x1001646f
xor eax, eax
cmp dword [0x1023a288], eax
sete al
lea eax, [eax*4 + 0x101]
jmp 0x10016496
mov edi, dword [esp + 0x1c]
push 5
call fcn.10089e37
jmp 0x100ea77c
dec ebp
mov dword [esp + 0x18], ebp
jns 0x1011b918
jmp 0x100164ac
cmp dword [0x1023a28c], 0
jne 0x100155e4
mov edi, dword [0x1023a290]
xor eax, eax
cmp dword [0x1023a288], eax
sete al
lea eax, [eax*4 + 0x100]
push eax
push 0x12
pop ebx
call fcn.100162df
mov dword [0x1023a28c], 0xa
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
xor eax, eax
mov dword [0x1023a290], eax
jmp 0x1001636a
sub esp, 0x20
push ebx
push ebp
push esi
push edi
call fcn.1000adcf
mov esi, dword [esp + 0x34]
mov ecx, eax
xor eax, eax
mov ebx, eax
mov dword [0x1023a280], eax
mov dword [0x1023a28c], eax
mov dword [0x1023a288], eax
mov dword [0x1023a284], eax
mov eax, dword [esp + 0x38]
lea edi, [esi + eax*2]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], edi
mov dword [0x1023a290], 1
cmp esi, edi
jae 0x1001656b
movzx eax, word [esi]
xor ebp, ebp
push eax
inc ebp
add esi, 2
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], esi
call fcn.1015692e
movzx eax, ax
mov dword [esp + 0x24], eax
cmp eax, 0x5e
jle 0x1001653f
sub eax, 0x7b
je 0x100ea77c
dec eax
dec eax
je 0x100155e4
dec eax
je 0x1011b725
mov eax, dword [esp + 0x20]
cmp dword [0x1023a234], 0
jne 0x1011b811
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movsx esi, ax
xor edi, edi
mov eax, dword [0x1023a234]
cmp esi, 0xffffffff
je 0x100155f0
test eax, eax
jne 0x1011b85c
mov ebp, esi
and ebp, 0xff
cmp dword [0x1023a284], 0
jne 0x10016406
test esi, 0x100
jne 0x1001670b
cmp dword [0x1023a288], 0
jne 0x1001641b
test esi, 0x200
jne 0x1011b871
cmp dword [0x1023a28c], 0
jne 0x10016430
test esi, 0x400
jne 0x1011b89c
mov ax, word [0x1023a238]
mov ecx, 0x3ff
and ax, cx
push 0x11
pop ecx
cmp ax, cx
je 0x1011b8c5
mov ebx, dword [esp + 0x10]
xor esi, esi
dec dword [esp + 0x18]
js 0x100164ac
movzx ebx, bp
mov ebp, dword [esp + 0x18]
cmp dword [0x1023a28c], 0
jne 0x100155b2
mov eax, 0x100
mov edi, dword [0x1023a290]
movzx eax, ax
push eax
call fcn.100162df
cmp dword [0x1023a28c], 0
mov dword [0x1023a290], esi
jne 0x100155c9
mov eax, 0x101
movzx eax, ax
push eax
xor edi, edi
call fcn.100162df
dec ebp
jns 0x1001645d
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x18], ebp
push 0x1023a280
push 0x1023a28c
push 0x1023a288
push 0x1023a284
push 0xa
pop esi
call fcn.100164e1
mov edi, dword [esp + 0x1c]
test ebx, ebx
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
je 0x10016360
jmp 0x1001636a
je 0x1011b6f4
sub eax, 0x25
je 0x10015617
sub eax, 3
je 0x1011b6ac
dec eax
je 0x1011b67f
dec eax
dec eax
jne 0x100163b6
jmp 0x1011b651
test ebx, ebx
jne 0x100155e4
push 0x1023a280
push 0x1023a28c
push 0x1023a288
push 0x1023a284
push 0xa
pop esi
call fcn.100164e1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov edi, dword [0x1023a290]
push 0x100
push 0x10
pop ebx
call fcn.100162df
xor eax, eax
mov dword [0x1023a290], eax
mov dword [0x1023a284], 0xa
jmp 0x10016406
push edi
push 0x7d
mov eax, esi
call fcn.100ea730
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
je 0x100155e0
lea ebp, [esi + 2]
push edi
push 0x20
mov eax, ebp
mov dword [esp + 0x34], ebp
call fcn.100ea730
mov esi, eax
test esi, esi
jne 0x1011b736
mov ebx, edi
cmp ebp, ebx
je 0x1011b7f2
mov esi, dword [esp + 0x34]
push esi
mov eax, ebx
call fcn.100ea841
mov ebp, eax
cmp ebp, 0xffffffff
je 0x100155e0
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea esi, [edi + 2]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x34], esi
test ebp, ebp
jne 0x1001644a
jmp 0x1001636a
cmp dword [0x1023a284], eax
jne 0x100155e4
mov edi, dword [0x1023a290]
push 0x100
push 0x10
pop ebx
call fcn.100162df
mov dword [0x1023a284], 0xa
jmp 0x1001564b
test ebx, ebx
jle 0x100155e4
push 0x1023a280
push 0x1023a28c
push 0x1023a288
push 0x1023a284
mov esi, ebx
call fcn.100164e1
dec ebx
mov dword [esp + 0x10], ebx
jmp 0x100164ce
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, 3
jg 0x100155e4
cmp dword [0x1023a284], 0xa
jne 0x1011b6c9
mov dword [0x1023a284], ebx
cmp dword [0x1023a288], 0xa
jne 0x1011b6d8
mov dword [0x1023a288], ebx
cmp dword [0x1023a28c], 0xa
mov ecx, dword [esp + 0x14]
jne 0x1001636a
mov dword [0x1023a28c], ebx
jmp 0x1001636a
cmp dword [0x1023a288], 0
jne 0x100155e4
mov edi, dword [0x1023a290]
push 0x100
push 0x11
pop eax
mov ebx, eax
call fcn.100162df
mov dword [0x1023a288], 0xa
jmp 0x1001564b
push 0xd
pop ebp
jmp 0x1001644e
mov esi, dword [esp + 0x34]
jmp 0x100155e0
movzx eax, word [esi]
mov ebx, esi
test ax, ax
je 0x1011b787
mov edi, dword [esp + 0x14]
push eax
push edi
call fcn.1015692e
movzx ebp, ax
push ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.msvcr100.dll_iswspace]
pop ecx
test eax, eax
je 0x1011b769
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x1011b744
mov edi, dword [esp + 0x28]
xor ebp, ebp
cmp word [esi], bp
mov ebp, dword [esp + 0x2c]
je 0x1011b787
push dword [esp + 0x24]
call dword [sym.imp.msvcr100.dll_iswdigit]
pop ecx
test eax, eax
je 0x1011b72d
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x1011b7da
push dword [esp + 0x24]
call dword [sym.imp.msvcr100.dll_iswdigit]
pop ecx
test eax, eax
je 0x1011b7e1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
imul ecx, ecx, 0xa
movzx eax, ax
add eax, 0xffffffd0
add ecx, eax
add esi, 2
movzx eax, word [esi]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x20], ecx
call fcn.1015692e
cmp dword [esp + 0x18], 0x1ff0
movzx eax, ax
mov dword [esp + 0x24], eax
jge 0x1011b72d
xor eax, eax
cmp word [esi], ax
jne 0x1011b78f
cmp esi, edi
mov esi, dword [esp + 0x34]
je 0x100ea7b1
jmp 0x100155e0
mov ecx, dword [esp + 0x34]
movzx eax, word [ecx]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
lea ecx, [edi + 2]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ecx
jmp 0x100163ba
xor edi, edi
push edi
push edi
push 2
lea eax, [esp + 0x34]
push eax
push 1
lea eax, [esp + 0x34]
push eax
push edi
push edi
mov dword [esp + 0x48], edi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
cmp eax, 1
jne 0x1011b854
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_VkKeyScanA]
movsx esi, ax
cmp esi, 0xffffffff
je 0x1011b854
movzx eax, word [esp + 0x28]
mov dword [esp + 0x20], eax
jmp 0x100163d3
or esi, 0xffffffff
jmp 0x100163d3
mov ecx, 0xff
cmp word [esp + 0x20], cx
jbe 0x100163e9
jmp 0x100155f0
mov edi, dword [0x1023a290]
push 0x100
push 0x11
pop eax
mov ebx, eax
call fcn.100162df
xor eax, eax
mov dword [0x1023a290], eax
mov dword [0x1023a288], 0xa
jmp 0x1001641b
mov edi, dword [0x1023a290]
push 0x100
push 0x12
pop ebx
call fcn.100162df
xor eax, eax
mov dword [0x1023a290], eax
mov dword [0x1023a28c], 0xa
jmp 0x10016430
cmp dword [0x1023a280], 0
jne 0x1011b90d
test esi, 0x800
je 0x1001644a
mov edi, dword [0x1023a290]
push 0x100
push 0x15
pop ebx
call fcn.100162df
xor esi, esi
push 0x101
xor edi, edi
mov dword [0x1023a290], esi
call fcn.100162df
mov dword [0x1023a280], 0xa
jmp 0x1011b90f
xor esi, esi
mov ebx, dword [esp + 0x10]
jmp 0x10016450
test eax, eax
je 0x1011b993
push edi
push edi
push 2
lea eax, [esp + 0x44]
push eax
push 1
lea eax, [esp + 0x34]
push eax
push edi
push edi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
cmp eax, 2
jl 0x1011b969
movzx ebx, word [esp + 0x38]
mov edi, dword [0x1023a290]
mov esi, 0x102
and ebx, 0xff
push esi
call fcn.100162df
movzx ebx, word [esp + 0x38]
xor eax, eax
shr ebx, 8
mov dword [0x1023a290], eax
push esi
xor edi, edi
jmp 0x1011b9a3
cmp eax, 1
jl 0x1011b9aa
movzx ebx, word [esp + 0x38]
mov edi, dword [0x1023a290]
and ebx, 0xff
push 0x102
call fcn.100162df
xor edi, edi
mov dword [0x1023a290], edi
jmp 0x1011b9aa
movzx ebx, word [esp + 0x20]
mov edi, dword [0x1023a290]
push 0x102
call fcn.100162df
xor edi, edi
dec ebp
js 0x100164a4
mov eax, dword [0x1023a234]
jmp 0x1011b918