Function at 0x100bed6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1021cbee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [eax + 8]
inc ebx
push edi
mov edi, dword [ebp + 0xc]
push ebx
mov eax, dword [ecx]
push edi
call dword [eax + 0x1dc]
xor ecx, ecx
mov dword [esp + 0x14], ecx
test al, al
jne 0x100bedc8
push dword [edi + 0x74]
push dword [edi + 0x70]
push ecx
push 0x20
call fcn.100022cf
add esp, 0x10
test al, al
je 0x100bf4f2
push dword [ebp + 8]
lea ecx, [esp + 0x24]
push edi
push esi
call fcn.100bd911
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov eax, dword [edx + 4]
cmp eax, 2
jne 0x100beea7
cmp dword [edx + 0xc], 0x7f
je 0x100beea0
push edi
call fcn.100bd6d8
test al, al
je 0x100bee9e
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], 4
je 0x100bee9e
cmp dword [eax + 0xc], 0x20
jl 0x100bf0dc
movzx eax, word [eax + 0xc]
mov ecx, esi
mov edx, dword [esi]
push ebx
push eax
push edi
call dword [edx + 0xc8]
test al, al
je 0x100bf0dc
mov eax, dword [ebp + 0x10]
mov ecx, esi
mov edx, dword [esi]
movzx eax, word [eax + 0xc]
push eax
push edi
push dword [ebp + 8]
call dword [edx + 0xe4]
test al, al
je 0x100bf0dc
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x100bee5f
mov eax, dword [0x102b7738]
jmp 0x100bee74
cmp eax, dword [0x102b7738]
jne 0x100bee74
push 0
push ecx
push dword [ebp + 8]
mov ecx, edi
call fcn.10079533
cmp dword [eax + 0x44], 0xff
je 0x100bee88
cmp dword [eax + 0x44], ebx
jne 0x100bee88
push 0
push 0xffffffffffffffff
jmp 0x100bee8b
push 0
push ebx
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp + 8]
call dword [eax + 0xd8]
jmp 0x100bf0d0
xor ecx, ecx
mov bl, cl
jmp 0x100bf0d0
test eax, eax
jne 0x100bf27b
mov al, byte [edx + 0x10]
and al, bl
mov byte [esp + 0x10], al
mov eax, dword [edx + 0x10]
mov edx, eax
shr edx, 1
and dl, bl
shr eax, 2
mov dword [esp + 0x1c], edx
mov byte [esp + 0x18], dl
mov edx, dword [ebp + 0x10]
and al, bl
je 0x100beedc
mov dword [esp + 0x14], ecx
jmp 0x100bf0dc
push dword [esp + 0x18]
mov eax, dword [esi]
lea ecx, [esi + 0x10]
push dword [esp + 0x14]
push dword [edx + 0xc]
push ecx
push edi
mov ecx, esi
call dword [eax + 0xe0]
test al, al
je 0x100bef29
mov eax, dword [esi + 0x10]
mov ecx, esi
push edi
push dword [ebp + 8]
mov dword [esi + 0x14], eax
call fcn.100beaa8
mov ecx, dword [ebp + 8]
push edi
call fcn.10013630
mov eax, dword [esi]
mov ecx, esi
push 3
push edi
push dword [ebp + 8]
call dword [eax + pe_nt_image_headers32]
jmp 0x100bf0d0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
cmp eax, 0x2e
jg 0x100bf17b
je 0x100bf10b
sub eax, 8
je 0x100bf099
sub eax, 8
je 0x100befe5
sub eax, 0x13
je 0x100befc8
dec eax
je 0x100befc0
dec eax
je 0x100bef9f
dec eax
dec eax
je 0x100bef93
sub eax, 6
jne 0x100bf132
cmp byte [esp + 0x1c], al
je 0x100bf236
push edi
call fcn.100bd6d8
test al, al
je 0x100bf132
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp + 8]
call dword [eax + 0x100]
jmp 0x100bf12a
xor eax, eax
cmp byte [esp + 0x10], al
setne al
inc eax
jmp 0x100befab
xor eax, eax
cmp byte [esp + 0x10], al
sete al
sub eax, 2
push dword [esp + 0x18]
mov edx, dword [esi]
mov ecx, esi
push eax
push edi
push dword [ebp + 8]
call dword [edx + 0xd8]
jmp 0x100befdc
push dword [esp + 0x18]
push 0xfffffffffffffffd
jmp 0x100befce
push dword [esp + 0x18]
push 3
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp + 8]
call dword [eax + 0xd8]
mov byte [esp + 0x14], al
jmp 0x100bf0dc
cmp byte [esp + 0x10], 0
je 0x100bf132
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x100beffe
mov eax, dword [0x102b7738]
jmp 0x100bf013
cmp eax, dword [0x102b7738]
jne 0x100bf013
push 0
push ecx
push dword [ebp + 8]
mov ecx, edi
call fcn.10079533
cmp dword [eax + 0x44], 0xff
je 0x100bf132
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov edx, 0x1025d560
mov eax, 0x1025d540
sets cl
test cl, cl
push ecx
cmove eax, edx
lea ecx, [esp + 0x1c]
push eax
call fcn.10131390
lea eax, [esp + 0x18]
push eax
push ecx
mov eax, esp
lea ecx, [edi + 0x14]
mov dword [eax], 0x3e
call fcn.1002b367
lea ecx, [esp + 0x18]
call fcn.100026e7
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 0x40c]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x430]
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push edi
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0xd8]
jmp 0x100bf4e2
cmp byte [esp + 0x10], 0
je 0x100bf0e5
mov eax, dword [esi]
mov ecx, esi
push ebx
push 0xfffffffffffffffe
push edi
push dword [ebp + 8]
call dword [eax + 0xd8]
test al, al
je 0x100bf0e5
push edi
call fcn.100bd6d8
test al, al
je 0x100bf0d6
push 0
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.100bf5e0
test al, al
je 0x100bf0d6
mov byte [esp + 0x14], bl
jmp 0x100bf0dc
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
jmp 0x100bf274
push edi
call fcn.100bd6d8
test al, al
je 0x100bf104
push 0xffffffffffffffff
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.100bf5e0
test al, al
jne 0x100bf272
xor eax, eax
jmp 0x100bf274
cmp byte [esp + 0x1c], 0
je 0x100bf139
push edi
call fcn.100bd6d8
test al, al
je 0x100bf132
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp + 8]
call dword [eax + 0xf4]
test al, al
jne 0x100bf4e2
xor bl, bl
jmp 0x100bf4e2
cmp byte [esp + 0x10], 0
je 0x100bf16e
mov eax, dword [esi]
mov ecx, esi
push ebx
push 2
push edi
push dword [ebp + 8]
call dword [eax + 0xd8]
test al, al
je 0x100bf16e
push edi
call fcn.100bd6d8
test al, al
je 0x100bf132
push 0
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.100bf5e0
jmp 0x100bf12a
push edi
call fcn.100bd6d8
test al, al
je 0x100bf132
push ebx
jmp 0x100bf161
sub eax, 0x41
je 0x100bf25c
dec eax
dec eax
je 0x100bf236
sub eax, 0x13
je 0x100bf20d
dec eax
dec eax
je 0x100bf1e4
dec eax
je 0x100bf1bb
dec eax
jne 0x100bf132
cmp byte [esp + 0x10], al
je 0x100bf132
push edi
call fcn.100bd6d8
test al, al
je 0x100bf132
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.100bfab3
jmp 0x100bf12a
cmp byte [esp + 0x10], 0
je 0x100bf132
push edi
call fcn.100bd6d8
test al, al
je 0x100bf132
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.100bfc31
jmp 0x100bf12a
cmp byte [esp + 0x10], 0
je 0x100bf132
push edi
call fcn.100bd6d8
test al, al
je 0x100bf132
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp + 8]
call dword [eax + 0xf4]
jmp 0x100bf24f
cmp byte [esp + 0x10], 0
je 0x100bf132
push edi
call fcn.100bd6d8
test al, al
je 0x100bf132
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp + 8]
call dword [eax + 0x100]
jmp 0x100bf24f
cmp byte [esp + 0x10], 0
je 0x100bf132
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp + 8]
call dword [eax + 0xf8]
test al, al
je 0x100bf132
jmp 0x100bf4e2
cmp byte [esp + 0x10], 0
je 0x100bf132
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.100bffba
mov al, bl
mov bl, al
jmp 0x100bf4e2
cmp eax, 3
jne 0x100bf39b
push edi
call fcn.100bd6d8
test al, al
je 0x100bf4e2
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xa8]
test al, al
je 0x100bf4e2
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 0x24], eax
je 0x100bf2bb
push eax
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.100bf5e0
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.100bf7c8
mov edx, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [edx + 0x24], ecx
je 0x100bf365
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xbc]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esi + 0x38], ecx
mov dword [esp + 0x1c], eax
mov eax, ecx
mov dword [esp + 0x18], ecx
cmp dword [edx + 0x24], ecx
jle 0x100bf35f
cmp eax, dword [edx + 0x24]
jae 0x100bf307
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x18]
lea eax, [eax + ecx*2]
jmp 0x100bf30c
mov eax, 0x102b8f50
movzx eax, word [eax]
mov ecx, esi
mov edx, dword [esi]
push ebx
push eax
push edi
call dword [edx + 0xc8]
test al, al
je 0x100bf34c
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x24]
jae 0x100bf334
mov eax, dword [eax + 0x20]
lea eax, [eax + ecx*2]
jmp 0x100bf339
mov eax, 0x102b8f50
push eax
mov eax, dword [esi + 0x10]
add eax, ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.1004c53c
inc dword [esi + 0x38]
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x10]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [edx + 0x24]
jl 0x100bf2f9
xor ecx, ecx
mov eax, dword [esi + 0x10]
mov dword [esi + 0x34], eax
cmp dword [edx + 0x1c], 0x80000000
mov eax, dword [esi + 0x10]
je 0x100bf389
mov eax, dword [edx + 0x1c]
xor edx, edx
cmp eax, 0x80000000
cmove eax, edx
mov edx, dword [esi + 0x10]
add edx, eax
mov dword [esp + 0x1c], edx
mov eax, edx
push ecx
push eax
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.100be9c0
jmp 0x100bf4d5
cmp eax, 4
jne 0x100bf4e0
push edi
call fcn.100bd6d8
test al, al
je 0x100bf4e2
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xa8]
test al, al
je 0x100bf4e2
push 0
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.100bf5e0
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.100bf7c8
mov eax, dword [esi]
mov ecx, esi
push 4
push edi
push dword [ebp + 8]
call dword [eax + 0x110]
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 0x24], eax
je 0x100bf4b2
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xbc]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
xor eax, eax
mov edx, eax
mov dword [esp + 0x18], eax
cmp dword [ecx + 0x24], eax
jle 0x100bf4b2
mov eax, ecx
cmp edx, dword [eax + 0x24]
jae 0x100bf42d
mov eax, dword [eax + 0x20]
lea eax, [eax + edx*2]
jmp 0x100bf432
mov eax, 0x102b8f50
movzx eax, word [eax]
mov ecx, esi
mov edx, dword [esi]
push ebx
push eax
push edi
call dword [edx + 0xc8]
test al, al
je 0x100bf498
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x100bf459
mov eax, dword [eax - 4]
mov dword [esp + 0x1c], eax
jmp 0x100bf45e
and dword [esp + 0x1c], 0
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xc4]
cmp dword [esp + 0x1c], eax
jge 0x100bf498
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x24]
jae 0x100bf483
mov eax, dword [eax + 0x20]
lea eax, [eax + ecx*2]
jmp 0x100bf488
mov eax, 0x102b8f50
push eax
mov eax, dword [esi + 0x10]
add eax, ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.1004c53c
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
inc edx
mov dword [esp + 0x18], edx
cmp edx, dword [eax + 0x24]
jl 0x100bf423
mov ecx, dword [ebp + 0x10]
xor eax, eax
push eax
mov eax, dword [esi + 0x10]
add eax, dword [ecx + 0x24]
mov ecx, esi
push eax
push edi
push dword [ebp + 8]
call fcn.100be9c0
mov eax, dword [esi]
mov ecx, esi
push 3
push edi
push dword [ebp + 8]
call dword [eax + pe_nt_image_headers32]
mov ecx, dword [ebp + 8]
push edi
call fcn.10013630
jmp 0x100bf4e2
mov bl, cl
or dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.100bd951
mov al, bl
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc