Function at 0x10005810
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x1005545c]
xor eax, esp
mov dword [esp + 0x44], eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
jne 0x10006032
mov esi, dword [ebp + 0xc]
cmp esi, 1
jne 0x100058b0
lea eax, [esp + 0x20]
mov dword [edi + 0x28], esi
push eax
push dword [edi + 4]
xorps xmm0, xmm0
mov dword [edi + 0x40], esi
movaps xmmword [esp + 0x28], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
movups xmm0, xmmword [esp + 0x20]
push 0
sub esp, 0x10
mov ecx, edi
mov eax, esp
neg ecx
sbb ecx, ecx
push 0xffffffffffffffff
movups xmmword [eax], xmm0
lea eax, [edi + 0x24]
and ecx, eax
push ecx
push dword [edi + 4]
mov ecx, dword [edi + 0x44]
call fcn.100118c0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [edi + 0x24]
lea eax, [edi + 0x24]
push esi
push 0
push eax
call dword [ecx + 0x20]
jmp 0x10005a03
cmp esi, 2
jne 0x1000597a
mov eax, dword [sym.imp.USER32.dll_IsWindow]
mov dword [edi + 0x28], 1
cmp dword [edi + 0x4c], 0
je 0x10005941
push dword [edi + 4]
call eax
test eax, eax
je 0x10005934
mov eax, dword [edi + 0x48]
mov esi, dword [eax]
cmp esi, eax
je 0x10005931
nop dword [eax]
push dword [esi + 0x10]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10005914
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10005910
nop
cmp esi, dword [eax + 8]
jne 0x10005910
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10005900
mov esi, eax
jmp 0x1000592c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1000592c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10005920
cmp esi, dword [edi + 0x48]
jne 0x100058e0
mov esi, dword [ebp + 0xc]
lea ecx, [edi + 0x48]
call fcn.100065f0
mov eax, dword [sym.imp.USER32.dll_IsWindow]
push dword [edi + 0x50]
call eax
test eax, eax
je 0x10005953
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [edi + 0x54]
mov dword [edi + 0x50], 0
call fcn.10001d80
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [edi + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
jmp 0x10005a03
cmp esi, 5
jne 0x100059d8
mov eax, dword [esp + 0x1c]
sub esp, 0x10
movsx ecx, cx
shr eax, 0x10
mov dword [esp + 0x38], ecx
mov ecx, dword [edi + 0x44]
cwde
mov dword [esp + 0x3c], eax
mov eax, esp
mov dword [edi + 0x28], 1
mov edx, dword [ecx]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
movaps xmm0, xmmword [esp + 0x30]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0xac]
mov edx, dword [edi]
sub esp, 0x10
movaps xmm0, xmmword [esp + 0x30]
mov eax, esp
mov ecx, edi
movups xmmword [eax], xmm0
call dword [edx + 0x18]
jmp 0x10005a03
cmp esi, 0x113
jne 0x10005ac2
mov eax, dword [edi + 0x44]
mov dword [edi + 0x28], 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [edi]
mov ecx, edi
push dword [esp + 0x14]
call dword [eax + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
jne 0x10005ff4
mov eax, dword [esp + 0x1c]
movzx ecx, ax
mov eax, ecx
cmp esi, 0x2a1
jne 0x10005e53
mov eax, dword [esp + 0x1c]
shr eax, 0x10
movsx esi, ax
movsx edx, cx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x44]
push esi
push edx
push dword [esp + 0x1c]
mov dword [edi + 0x28], 1
mov ecx, dword [eax]
push eax
mov dword [esp + 0x1c], edx
call dword [ecx + 0xc0]
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [esp + 0x10]
push dword [esp + 0x1c]
call dword [eax + 0x24]
mov esi, dword [esp + 0x10]
mov dword [esi], 0
cmp dword [edi + 0x28], 0
jne 0x10005ff4
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
cmp eax, 0x2a3
jne 0x10005e6a
cmp dword [edi + 0x40], 0
mov dword [edi + 0x28], 1
jne 0x10005ab7
mov eax, dword [edi + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov dword [edi + 0x40], 1
mov dword [esi], 0
jmp 0x10005fee
cmp esi, 0x84
jne 0x10005c4d
mov eax, dword [esp + 0x1c]
shr eax, 0x10
cwde
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x18]
movsx ecx, cx
mov dword [edi + 0x28], 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], 0
test eax, eax
je 0x10005b1e
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [edi + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
jmp 0x10005b22
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x40]
cmp dword [esp + 0xc], 1
jne 0x10005c21
cmp dword [edi + 0x68], 0
je 0x10005c21
lea eax, [esp + 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [edi + 0x44]
push dword [esp + 0x24]
push dword [esp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf4]
test eax, eax
je 0x10005b77
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
test eax, eax
je 0x10005c21
push 1
mov dword [esp + 0x10], 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x10005bb6
cmp dword [edi + 0x58], 0
jne 0x10005bbc
push 1
push 0
push 0x3401
push dword [edi + 4]
mov dword [edi + 0x58], 1
mov dword [edi + 0x5c], 0
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10005bd0
cmp dword [edi + 0x58], 0
je 0x10005bd0
cmp dword [edi + 0x5c], 0
jne 0x10005bd0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 1
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x10005c07
cmp dword [edi + 0x60], 0
jne 0x10005c0d
push 1
push 1
push 0x3401
push dword [edi + 4]
mov dword [edi + 0x60], 1
mov dword [edi + 0x5c], 0
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10005c21
cmp dword [edi + 0x60], 0
je 0x10005c21
cmp dword [edi + 0x5c], 0
jne 0x10005c21
mov dword [edi + 0x60], 0
mov dword [edi + 0x5c], 1
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
cmp dword [edi + 0x28], 0
je 0x10005a17
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1001f332
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x20
jne 0x10005cde
mov ecx, dword [edi + 0x44]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x20]
shr eax, 0x10
push eax
mov eax, dword [esp + 0x24]
movzx eax, ax
push eax
push dword [esp + 0x20]
mov dword [edi + 0x28], 1
mov dword [esp + 0x1c], 0
mov edx, dword [ecx]
push ecx
call dword [edx + 0xb8]
cmp dword [esp + 0xc], 0
je 0x10005c96
lea edx, [esi - 0x1f]
jmp 0x10005cb6
mov eax, dword [edi + 0x18]
xor edx, edx
test eax, eax
je 0x10005cb6
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [edi + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov edx, eax
mov ecx, dword [esp + 0x10]
mov dword [ecx], edx
cmp dword [edi + 0x28], 0
je 0x10005a17
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1001f332
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x14
jne 0x10005cff
mov dword [eax], 1
lea eax, [esi - 0x13]
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1001f332
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0xf
jne 0x10005d2e
sub esp, 8
push edx
push ecx
mov ecx, edi
call fcn.10006320
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1001f332
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x318
je 0x10005d04
cmp esi, 0x3400
jne 0x10005d68
push ecx
push ecx
sub esp, 8
mov ecx, edi
call fcn.10006190
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1001f332
mov esp, ebp
pop ebp
ret 0x18
lea eax, [esi - 0x200]
cmp eax, 0xe
ja 0x10005dcb
mov eax, dword [edi + 4]
xorps xmm0, xmm0
push dword [edi + 0x50]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x3c], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10005db9
lea eax, [esp + 0x20]
push eax
push 0
push 0x407
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ecx], 1
mov ecx, dword [esp + 0x1c]
cmp esi, 0x200
jne 0x10005a17
movzx eax, cx
mov dword [edi + 0x28], 1
movsx edi, ax
mov eax, ecx
shr eax, 0x10
movsx esi, ax
mov eax, dword [esp + 0xc]
push esi
push edi
push edx
mov eax, dword [eax + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xbc]
mov ecx, dword [esp + 0xc]
push esi
push edi
push dword [esp + 0x1c]
mov eax, dword [ecx]
mov edi, ecx
call dword [eax + 0x20]
cmp dword [edi + 0x40], 0
je 0x10005e24
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x54]
mov dword [edi + 0x40], 0
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
movzx eax, dx
mov dword [esi], 0
cmp dword [edi + 0x28], 0
je 0x10005e57
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1001f332
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
movsx edx, ax
mov dword [esp + 0xc], edx
shr ecx, 0x10
jmp 0x10005a82
cmp eax, 0x201
jne 0x10005ec2
mov eax, dword [esp + 0x1c]
push dword [edi + 4]
shr eax, 0x10
mov dword [edi + 0x28], 1
movsx esi, ax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [edi + 0x44]
lea edx, [esp + 0x18]
push edx
push esi
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
push dword [esp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc8]
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [esp + 0x10]
push dword [esp + 0x1c]
call dword [eax + 0x2c]
jmp 0x10005fe4
cmp eax, 0x202
jne 0x10005f11
mov eax, dword [edi + 0x44]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
movsx esi, cx
push esi
push edx
push dword [esp + 0x20]
mov dword [edi + 0x28], 1
mov dword [esp + 0x28], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xcc]
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [esp + 0x10]
push dword [esp + 0x1c]
call dword [eax + 0x30]
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x10005fe4
cmp eax, 0x203
jne 0x10005f5a
mov eax, dword [edi + 0x44]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
movsx esi, cx
push esi
push edx
push dword [esp + 0x20]
mov dword [edi + 0x28], 1
mov dword [esp + 0x28], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd0]
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [esp + 0x10]
push dword [esp + 0x1c]
call dword [eax + 0x34]
jmp 0x10005fe4
cmp eax, 0x204
jne 0x10005fa0
mov eax, dword [edi + 0x44]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
movsx esi, cx
push esi
push edx
push dword [esp + 0x20]
mov dword [edi + 0x28], 1
mov dword [esp + 0x28], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd4]
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [esp + 0x10]
push dword [esp + 0x1c]
call dword [eax + 0x38]
jmp 0x10005fe4
cmp eax, 0x205
jne 0x1000600c
mov eax, dword [edi + 0x44]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
movsx esi, cx
push esi
push edx
push dword [esp + 0x20]
mov dword [edi + 0x28], 1
mov dword [esp + 0x28], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd8]
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [esp + 0x10]
push dword [esp + 0x1c]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
je 0x10006032
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1001f332
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x31a
jne 0x10006032
push 0
push 0
push 0x3400
push dword [edi + 4]
mov dword [edi + 0x38], 1
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esi], 0
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.1001f332
mov esp, ebp
pop ebp
ret 0x18