Function at 0x40b0f2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0x1315
ja 0x40b1a8
cmp dword [ebp - 0x50], 0x1315
je 0x40b714
cmp dword [ebp - 0x50], 0x130e
ja 0x40b188
cmp dword [ebp - 0x50], 0x130e
je 0x40b819
cmp dword [ebp - 0x50], 0x12d8
ja 0x40b169
cmp dword [ebp - 0x50], 0x12d8
je 0x40b69e
cmp dword [ebp - 0x50], 0x4e
je 0x40b1c8
cmp dword [ebp - 0x50], 0x301
je 0x40b9d9
jmp case.0x40b1c1.2
cmp dword [ebp - 0x50], 0x130b
je 0x40b736
cmp dword [ebp - 0x50], 0x130c
je 0x40b7af
jmp case.0x40b1c1.2
mov edx, dword [ebp - 0x50]
sub edx, 0x130f
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 3
ja case.0x40b1c1.2
mov eax, dword [ebp - 0x50]
jmp dword [eax*4 + 0x40bae0]
mov ecx, dword [ebp - 0x50]
sub ecx, 0x1316
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0xa
ja case.0x40b1c1.2
mov edx, dword [ebp - 0x50]
jmp dword [edx*4 + 0x40baf0]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 1
je 0x40b1e7
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 2
jne 0x40b466
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 0x17
jne 0x40b293
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x240]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 2
jne 0x40b221
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x248]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 8
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
call dword [edx + 0x14]
test eax, eax
jl 0x40b27d
cmp dword [ebp - 0x14], 0xffffffff
je 0x40b27d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 8], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], 1
jmp 0x40b287
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0
mov dword [ebp - 4], 1
jmp 0x40b466
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 2
jne 0x40b466
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x240]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 2
jne 0x40b2cd
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x248]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 1
push 0x10
call dword [0x42b8fc]
movsx ecx, ax
test ecx, ecx
jl 0x40b2f2
push 0x11
call dword [0x42b8fc]
movsx edx, ax
test edx, edx
jge 0x40b2f9
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x28c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [edx + 0x28c], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x28c]
mov dword [edx + 0x298], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [edx + 0x2b0], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
add eax, 1
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x2b4], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x10], 0
jne 0x40b359
mov dword [ebp - 0x54], 1
jmp 0x40b362
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
mov dword [edx + 0x2b8], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x2c0], edx
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x2c4], 0
push 0x11
call dword [0x42b8fc]
movsx ecx, ax
test ecx, ecx
jge 0x40b3c6
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
call dword [0x42b838]
test eax, eax
je 0x40b3c6
mov ecx, dword [ebp - 0x20]
call fcn.0040ea10
cmp eax, 1
jle 0x40b3c6
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x2bc], 1
jmp 0x40b3d3
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0x2bc], 0
mov eax, dword [ebp - 0x4c]
add eax, 0x2b0
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0x130b
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.SQLUNIRL.dll__PostMessage_16]
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x280], 0
je 0x40b466
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x28c]
cmp eax, dword [ebp - 0x24]
je 0x40b466
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x28c], 1
jne 0x40b440
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x248]
mov ecx, dword [eax + 0x28]
call dword [0x42b83c]
push 1
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x248]
mov ecx, dword [edx + 0x28]
call dword [0x42b828]
jmp 0x40b466
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x240]
mov ecx, dword [ecx + 0x28]
call dword [0x42b83c]
push 1
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x240]
mov ecx, dword [eax + 0x28]
call dword [0x42b828]
jmp case.0x40b1c1.2
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x23c]
xor edx, 1
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x23c], edx
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x23c], 0
je 0x40b498
push 0
push 0
mov ecx, dword [ebp - 0x4c]
call fcn.0040bf74
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0x298], 1
jne 0x40b53a
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x28c], 1
je 0x40b505
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x298]
mov dword [ecx + 0x28c], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x29c]
mov dword [ecx + 0x290], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x2a0]
mov dword [ecx + 0x294], eax
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx + 0x240]
call dword [0x42b6ec]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x240]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
je 0x40b53a
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x29c]
sub ecx, 1
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 8
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
call dword [eax + 0x38]
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0x28c]
cmp eax, dword [edx + 0x298]
je 0x40b5bc
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x298]
mov dword [ecx + 0x28c], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x29c]
mov dword [ecx + 0x290], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x2a0]
mov dword [ecx + 0x294], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x298], 1
jne 0x40b5ad
mov edx, dword [ebp - 0x4c]
mov ecx, dword [edx + 0x240]
call dword [0x42b6ec]
jmp 0x40b5bc
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x248]
call dword [0x42b6ec]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x240]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x298], 2
jne 0x40b5e6
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x248]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0
je 0x40b608
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x29c]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 8
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 8]
call dword [eax + 0x40]
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0x28c]
cmp eax, dword [edx + 0x298]
je 0x40b68a
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x298]
mov dword [ecx + 0x28c], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x29c]
mov dword [ecx + 0x290], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x2a0]
mov dword [ecx + 0x294], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x298], 1
jne 0x40b67b
mov edx, dword [ebp - 0x4c]
mov ecx, dword [edx + 0x240]
call dword [0x42b6ec]
jmp 0x40b68a
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x248]
call dword [0x42b6ec]
mov ecx, dword [ebp - 0x4c]
call fcn.0040bcc1
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x254], 0
je 0x40b6c8
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x254]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.SQLUNIRL.dll__PostMessage_16]
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x23c], 0
je 0x40b708
call dword [0x42b050]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x38]
sub eax, dword [edx + 0x2a4]
cmp eax, 0x3e8
jb 0x40b708
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0x2a4], edx
push 0
push 0
mov ecx, dword [ebp - 0x4c]
call fcn.0040bf74
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.0040bf74
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.0040be3a
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40b776
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x240]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40b7a3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
jle 0x40b798
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.0040bf74
push 1
mov ecx, dword [ebp - 0x3c]
call dword [0x42b828]
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
push 0
push 0
push 0x130c
mov edx, dword [ebp - 0x4c]
mov ecx, dword [edx + 0x240]
call dword [0x42b634]
push eax
call dword [sym.imp.SQLUNIRL.dll__PostMessage_16]
push 0
push 0
push 0x130c
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x248]
call dword [0x42b634]
push eax
call dword [sym.imp.SQLUNIRL.dll__PostMessage_16]
push 0
call fcn.00408bc0
mov ecx, eax
call fcn.00408ba0
push eax
push 0x30
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx + 0x250]
call dword [0x42b448]
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4c]
call dword [edx + 0xac]
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4c]
call dword [edx + 0xb0]
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4c]
call dword [edx + 0xb4]
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4c]
call dword [eax + 0xbc]
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4c]
call dword [edx + 0xc0]
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4c]
call dword [edx + 0xc4]
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4c]
call dword [eax + 0xc8]
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x2cc], 1
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4c]
call dword [eax + 0x14]
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x28c], 1
jne 0x40b959
cmp dword [ebp - 0x40], 0
je 0x40b94b
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x280], 0
je 0x40b93d
push 2
push 1
mov ecx, dword [ebp - 0x4c]
call fcn.0040c0cc
jmp 0x40b949
push 3
push 1
mov ecx, dword [ebp - 0x4c]
call fcn.0040c0cc
jmp 0x40b957
push 3
push 1
mov ecx, dword [ebp - 0x4c]
call fcn.0040c0cc
jmp 0x40b9cd
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0x28c], 2
jne 0x40b987
cmp dword [ebp - 0x40], 0
je 0x40b979
push 3
push 2
mov ecx, dword [ebp - 0x4c]
call fcn.0040c0cc
jmp 0x40b985
push 1
push 2
mov ecx, dword [ebp - 0x4c]
call fcn.0040c0cc
jmp 0x40b9cd
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x28c], 3
jne 0x40b9cd
cmp dword [ebp - 0x40], 0
je 0x40b9a7
push 1
push 3
mov ecx, dword [ebp - 0x4c]
call fcn.0040c0cc
jmp 0x40b9cd
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x280], 0
je 0x40b9c1
push 2
push 3
mov ecx, dword [ebp - 0x4c]
call fcn.0040c0cc
jmp 0x40b9cd
push 1
push 3
mov ecx, dword [ebp - 0x4c]
call fcn.0040c0cc
mov dword [ebp - 4], 1
jmp case.0x40b1c1.2
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0x28c], 1
je 0x40b9f5
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x28c], 2
jne 0x40ba96
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x240]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x28c], 2
jne 0x40ba1f
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x248]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0
je 0x40ba94
mov ecx, dword [ebp - 0x44]
add ecx, 8
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 8]
call dword [eax + 0x34]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jge 0x40ba94
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0xe0000001
je 0x40ba4e
jmp 0x40ba72
push 1
push 0xf228
push 0x145
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [0x458a14]
push ecx
call fcn.00429c12
add esp, 0x14
jmp 0x40ba94
push 1
push 0xf228
push 0x112
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [0x458a14]
push ecx
call fcn.00429c12
add esp, 0x14
jmp 0x40baba
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0x28c], 3
jne 0x40baba
push 0
push 0
push 0x301
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x250]
call dword [0x42b448]
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x40bad7
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x4c]
call dword [0x42b6e8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4