Function at 0x10030d70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1021ae44]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
push 1
push eax
mov dword [esi + 0x530], eax
lea eax, [ebp - 0x10]
push ecx
mov dword [esi + 0x52c], ecx
mov ecx, esi
push eax
mov dword [esi + 0xf4], 1
mov dword [esi + 0xbc], 1
mov dword [esi + 0xb8], 1
mov dword [esi + 0x524], 1
call fcn.1002bf20
mov edi, dword [esi + 0x94]
lea ebx, [esi + 0x53c]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov ecx, esi
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
mov dword [esi + 0x94], 0
call fcn.1004ced0
mov dword [esi + 0x94], edi
mov eax, dword [ebx]
test eax, eax
js 0x10031860
mov ecx, dword [esi + 0x2c4]
cmp eax, ecx
jge 0x10031860
mov eax, dword [ebx + 4]
test eax, eax
js 0x10031860
mov edx, dword [esi + 0x2cc]
cmp eax, edx
jge 0x10031860
test byte [ebp + 8], 4
jne 0x10030e42
mov eax, dword [ebx]
mov dword [esi + 0x544], eax
mov eax, dword [ebx + 4]
jmp 0x10030e70
mov eax, dword [esi + 0x544]
test eax, eax
js 0x10030e5e
cmp eax, ecx
jge 0x10030e5e
mov eax, dword [esi + 0x548]
test eax, eax
js 0x10030e5e
cmp eax, edx
jl 0x10030e76
mov eax, dword [esi + 0x54c]
mov dword [esi + 0x544], eax
mov eax, dword [esi + 0x550]
mov dword [esi + 0x548], eax
cmp dword [esi + 0x134], 0
jl 0x10030e8c
cmp dword [esi + 0x138], 0
jge 0x10031860
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1ac]
mov eax, dword [esi + 0x80]
test eax, eax
je 0x10030eaa
mov dword [eax + 0x1744], 0
cmp dword [esi + 0xbc], 0
je 0x10030ed8
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.100459e0
push dword [esi + 0x540]
push dword [ebx]
push 0x4a0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x540]
mov ecx, dword [ebx]
push eax
mov dword [esi + 0x88], ecx
push ecx
mov ecx, esi
mov dword [esi + 0x8c], eax
call fcn.10011240
mov edi, eax
test edi, edi
je 0x10030f63
mov edx, dword [edi]
mov ecx, edi
push 0x101f562c
call dword [edx]
mov ecx, eax
call fcn.100519ba
mov ecx, dword [edi]
test eax, eax
mov edx, dword [esi + 0x53c]
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 0x104], ecx
lea eax, [ebp - 0x10]
mov ecx, dword [esi + 0x540]
push ecx
push edx
mov ecx, esi
push eax
je 0x10030f4b
call fcn.100308d0
mov ecx, edi
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 0x104]
call dword [eax + 0xd8]
jmp 0x10030f63
call fcn.100308d0
mov ecx, edi
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 0x104]
call dword [eax + 0xdc]
xor ecx, ecx
test edi, edi
je 0x10030ffe
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push dword [esi + 0x540]
mov ecx, esi
push dword [ebx]
movups xmmword [ebp - 0x18], xmm0
call fcn.1002ccf0
test eax, eax
je 0x10030ffc
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
call dword [eax + 0xa8]
test eax, eax
je 0x10030ffc
lea ecx, [ebp - 0xec]
call fcn.1001c140
lea eax, [ebp - 0xec]
push eax
push dword [esi + 0x540]
lea ecx, [esi + 0x178]
push dword [ebx]
call fcn.10021160
cmp dword [ebp - 0xe4], 1
jne 0x10030fda
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x10]
add ecx, eax
jmp 0x10030fdd
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x10]
dec dword [ebp - 0x18]
inc ecx
push dword [ebp + 0xc]
dec dword [ebp - 0x14]
inc dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x18]
call fcn.1001a470
mov ecx, eax
jmp 0x10030ffe
xor ecx, ecx
mov edx, dword [ebx]
cmp edx, dword [esi + 0x54c]
jne 0x10031060
mov eax, dword [ebx + 4]
cmp eax, dword [esi + 0x550]
jne 0x10031060
test byte [ebp + 8], 8
jne 0x10031060
test ecx, ecx
je 0x10031060
cmp dword [esi + 0x268], 0
je 0x10031060
push dword [esi + 0x540]
mov ecx, esi
push edx
call fcn.10011240
mov ecx, eax
test ecx, ecx
je 0x1003103f
mov eax, dword [ecx]
call dword [eax + 0x48]
test al, 8
jne 0x10031060
mov dword [esi + 0x520], 0xa
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1018029b
mov esp, ebp
pop ebp
ret 0xc
push dword [ebx + 4]
mov ecx, esi
push dword [ebx]
call fcn.1002f660
test eax, eax
je 0x100310f5
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and eax, dword [ebp + 8]
test al, 1
je 0x100310e2
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.100298e0
cmp dword [esi + 0x274], 0
mov ecx, esi
je 0x100310c1
push 0
push 1
push dword [ebx + 4]
push dword [ebx]
call fcn.1002a0b0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1018029b
mov esp, ebp
pop ebp
ret 0xc
push dword [ebx + 4]
push dword [ebx]
push 0
push 1
call fcn.1002a160
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1018029b
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x270], 0
je 0x100310f5
mov dword [esi + 0x520], 0xb
mov eax, dword [esi + 0x520]
cmp eax, 8
je 0x10031130
cmp eax, 6
je 0x10031130
mov eax, dword [ebx]
cmp eax, dword [esi + 0x2c8]
jl 0x10031121
mov ecx, dword [esi + 0x540]
cmp ecx, dword [esi + 0x2d0]
jl 0x10031121
push ecx
push eax
jmp 0x10031125
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.100298e0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.100459e0
cmp dword [esi + 0x520], 0
jne 0x100311d6
cmp dword [esi + 0x56c], 0
je 0x10031192
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
call fcn.1002be50
test eax, eax
je 0x10031192
cmp dword [esi + 0x520], 8
je 0x100311d6
call fcn.1004f78f
push 0x7f84
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esi + 0x520], 8
jmp 0x100311d6
cmp dword [esi + 0x568], 0
je 0x100311d6
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
call fcn.1002bda0
test eax, eax
je 0x100311d6
cmp dword [esi + 0x520], 6
je 0x100311d6
call fcn.1004f78f
push 0x7f85
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esi + 0x520], 6
mov eax, dword [esi + 0x520]
cmp eax, 8
jne 0x1003145e
mov eax, dword [esi + 0x2cc]
mov dword [esi + 0x520], 9
lea ecx, [eax - 1]
test ecx, ecx
js 0x10031217
cmp ecx, eax
jge 0x10031217
cmp ecx, dword [esi + 0x2f0]
jge 0x10031873
mov eax, dword [esi + 0x2ec]
mov eax, dword [eax + ecx*4]
jmp 0x1003121a
or eax, 0xffffffff
cmp eax, dword [esi + 0x564]
jge 0x10031265
push ecx
lea eax, [ebp - 0x114]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0xfc]
mov ecx, esi
push eax
movups xmmword [ebp - 0x114], xmm0
call fcn.1002c230
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x10c]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [esi + 0x564]
jge 0x10031265
mov eax, dword [esi + 0x2cc]
dec eax
mov dword [esi + 0x540], eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push dword [esi + 0x540]
mov ecx, esi
mov dword [ebp - 0x108], 0
push 0
call fcn.1002ca70
test eax, eax
je 0x10031860
cmp dword [esi + 0x2a4], 0
mov ebx, dword [ebp - 0x10c]
jne 0x10031331
mov ecx, dword [ebp + 0xc]
mov edi, dword [esi + 0x564]
sub ecx, ebx
cmp ecx, edi
jl 0x100312ce
mov edx, dword [esi + 0x540]
lea eax, [edx + 1]
cmp eax, dword [esi + 0x2cc]
jl 0x100312ce
test edx, edx
jns 0x10031331
mov edx, dword [esi + 0x540]
xor ebx, ebx
cmp ecx, edi
mov eax, edx
setl bl
sub eax, ebx
js 0x10031860
mov ecx, edx
sub ecx, ebx
js 0x1003130b
cmp ecx, dword [esi + 0x2cc]
jge 0x1003130b
cmp ecx, dword [esi + 0x2f0]
jge 0x10031873
mov eax, dword [esi + 0x2ec]
cmp dword [eax + ecx*4], 0
jg 0x1003132b
dec edx
mov eax, edx
mov dword [esi + 0x540], edx
sub eax, ebx
jns 0x100312e5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1018029b
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp - 0x10c]
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
push dword [esi + 0x20]
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.10042672
test eax, eax
je 0x10031364
push dword [eax + 4]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x564]
sub eax, ebx
cmp eax, edx
jge 0x100313ce
mov eax, dword [esi + 0x2cc]
mov edi, dword [esi + 0x540]
lea ecx, [eax - 1]
cmp edi, ecx
jl 0x100313ac
test ecx, ecx
js 0x100313a5
cmp ecx, eax
jge 0x100313a5
cmp ecx, dword [esi + 0x2f0]
jge 0x10031873
mov eax, dword [esi + 0x2ec]
mov eax, dword [eax + ecx*4]
jmp 0x100313a8
or eax, 0xffffffff
cmp eax, edx
jle 0x100313ce
lea ecx, [ebp - 0x10c]
push ecx
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
mov dword [esi + 0x540], eax
call fcn.1002ca70
test eax, eax
je 0x10031860
mov edi, dword [ebp - 0x20]
mov ecx, esi
sub edi, dword [ebp - 0x28]
call fcn.1002ee50
push 0
mov ecx, esi
sub edi, eax
call fcn.10045de9
mov eax, dword [esi + 0x540]
cmp eax, dword [esi + 0x2d0]
jge 0x10031401
mov edi, dword [ebp - 0x20]
mov edx, 5
add edi, 0xfffffff6
jmp 0x1003140a
mov ecx, esi
call fcn.1002ee50
mov edx, eax
lea eax, [edx + 1]
add eax, edi
lea ecx, [edx + 1]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov ecx, esi
push eax
call fcn.10042443
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push dword [esi + 0x20]
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
inc dword [ebp - 0x18]
inc dword [ebp - 0x14]
mov eax, dword [esi + 0x540]
cmp eax, dword [esi + 0x2d0]
jg 0x1003144f
sub dword [ebp - 0x10], 5
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
jmp 0x10031841
cmp eax, 6
jne 0x1003169c
mov eax, dword [esi + 0x2c4]
mov dword [esi + 0x520], 7
lea ecx, [eax - 1]
test ecx, ecx
js 0x10031499
cmp ecx, eax
jge 0x10031499
cmp ecx, dword [esi + 0x2dc]
jge 0x10031873
mov eax, dword [esi + 0x2d8]
mov eax, dword [eax + ecx*4]
jmp 0x1003149c
or eax, 0xffffffff
cmp eax, dword [esi + 0x564]
jge 0x100314e3
push ecx
lea eax, [ebp - 0x114]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0xfc]
mov ecx, esi
push eax
movups xmmword [ebp - 0x114], xmm0
call fcn.1002c230
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x108]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [esi + 0x564]
jge 0x100314e3
mov eax, dword [esi + 0x2c4]
dec eax
mov dword [ebx], eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push dword [ebx + 4]
mov ecx, esi
mov dword [ebp - 0x108], 0
push dword [ebx]
call fcn.1002ca70
test eax, eax
je 0x10031860
cmp dword [esi + 0x2a8], 0
jne 0x100315a2
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x108]
mov edi, dword [esi + 0x564]
cmp edx, edi
jl 0x10031543
mov ecx, dword [ebx]
lea eax, [ecx + 1]
cmp eax, dword [esi + 0x2c4]
jl 0x10031543
test ecx, ecx
jns 0x100315a2
xor ecx, ecx
cmp edx, edi
mov edx, dword [ebx]
mov eax, edx
setl cl
sub eax, ecx
mov dword [ebp - 0x104], ecx
js 0x10031860
mov edi, ecx
nop
mov ecx, edx
sub ecx, edi
js 0x10031586
cmp ecx, dword [esi + 0x2c4]
jge 0x10031586
cmp ecx, dword [esi + 0x2dc]
jge 0x10031873
mov eax, dword [esi + 0x2d8]
cmp dword [eax + ecx*4], 0
jg 0x100315a2
dec edx
mov eax, edx
mov dword [ebx], edx
sub eax, edi
jns 0x10031560
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1018029b
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
push dword [esi + 0x20]
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.10042672
test eax, eax
je 0x100315d5
push dword [eax + 4]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x108]
mov edx, dword [esi + 0x564]
cmp eax, edx
jge 0x1003163b
mov eax, dword [esi + 0x2c4]
mov edi, dword [ebx]
lea ecx, [eax - 1]
cmp edi, ecx
jl 0x1003161d
test ecx, ecx
js 0x10031616
cmp ecx, eax
jge 0x10031616
cmp ecx, dword [esi + 0x2dc]
jge 0x10031873
mov eax, dword [esi + 0x2d8]
mov eax, dword [eax + ecx*4]
jmp 0x10031619
or eax, 0xffffffff
cmp eax, edx
jl 0x1003163b
lea ecx, [ebp - 0x10c]
push ecx
lea eax, [edi - 1]
mov ecx, esi
push 0
push eax
mov dword [ebx], eax
call fcn.1002ca70
test eax, eax
je 0x10031860
mov edi, dword [ebp - 0x1c]
mov ecx, esi
sub edi, dword [ebp - 0x24]
call fcn.1002ee00
sub edi, eax
mov ecx, esi
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x24], eax
add eax, edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
call fcn.10042443
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push dword [esi + 0x20]
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
inc dword [ebp - 0x18]
add dword [ebp - 0x14], 3
mov eax, dword [ebx]
cmp eax, dword [esi + 0x2c8]
jg 0x1003168d
sub dword [ebp - 0xc], 5
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
jmp 0x10031841
cmp eax, 0xb
je 0x10031841
mov eax, dword [ebx]
push dword [esi + 0x20]
mov edi, dword [esi + 0x540]
mov dword [ebp - 0x104], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10031733
mov eax, dword [ebp - 0x104]
mov ecx, esi
mov dword [ebp - 0xf4], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0x100], eax
call fcn.1004c571
mov dword [ebp - 0xfc], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0xf8], 0xffffff9c
test eax, eax
jne 0x10031702
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.100459e0
mov edi, eax
test edi, edi
je 0x10031733
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10031733
lea eax, [ebp - 0x100]
push eax
push dword [ebp - 0xfc]
push 0x4e
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esi + 0x590]
call fcn.10034c80
test byte [ebp + 8], 8
je 0x100317b6
mov ecx, dword [esi + 0x580]
mov eax, ecx
neg eax
sbb eax, eax
mov dword [ebp - 0x104], eax
test ecx, ecx
je 0x100317b6
nop word [eax + eax]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xffffffff
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0xc], 0xffffffff
push eax
lea eax, [ebp - 0x104]
push eax
lea ecx, [esi + 0x574]
call fcn.10034ce0
push dword [ebp - 0x108]
lea ecx, [esi + 0x590]
call fcn.10035060
cmp dword [ebp - 0x104], 0
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
jne 0x10031760
lea ebx, [esi + 0x53c]
mov eax, dword [ebx]
mov ecx, esi
push ebx
cmp eax, dword [esi + 0x2c8]
jge 0x100317cd
mov eax, dword [esi]
call dword [eax + 0x19c]
jmp 0x10031841
mov eax, dword [esi + 0x540]
cmp eax, dword [esi + 0x2d0]
jge 0x100317e5
mov eax, dword [esi]
call dword [eax + 0x198]
jmp 0x10031841
mov eax, dword [esi + 0x274]
neg eax
sbb eax, eax
add eax, 4
mov dword [esi + 0x520], eax
call fcn.1002a1e0
cmp dword [esi + 0xbc], 0
je 0x10031824
push 0
push dword [esi + 0x560]
push 0x201
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x55c], eax
jmp 0x10031841
push dword [esi + 0x540]
lea eax, [ebp - 0x10]
mov ecx, esi
push dword [ebx]
push eax
call fcn.100298e0
mov dword [esi + 0xbc], 1
mov eax, dword [ebp + 0xc]
push 0
push 0
push dword [esi + 0x20]
mov dword [esi + 0x534], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x538], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1018029b
mov esp, ebp
pop ebp
ret 0xc
call fcn.1003f951
int3