Function at 0x538ec0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x430
cmp edx, dword [esp + 0x434]
push ebx
mov ebx, ecx
mov dword [esp + 0x48], ebx
je 0x538ee2
xor eax, eax
pop ebx
add esp, 0x430
ret 8
push ebp
push esi
mov esi, dword [esp + 0x444]
test esi, esi
push edi
je 0x53938f
mov eax, dword [esi + 8]
cmp eax, 0xfffffe6e
ja 0x5390e9
je 0x538f7e
cmp eax, 0xfffffe63
je 0x53907b
cmp eax, 0xfffffe64
je 0x538f9c
cmp eax, 0xfffffe6a
jne 0x53938f
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
test al, 2
je 0x538f43
mov dword [esp + 0x20], 0x2000
jmp 0x538f4f
test al, 1
je 0x538f7b
mov dword [esp + 0x20], 0x1000
mov edx, dword [esi]
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x110d
push edx
mov dword [esp + 0x34], 0xf000
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0x18
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 8]
push eax
push 0
push 0x805d
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
movzx eax, word [esi + 0xc]
sub eax, 0x26
je 0x538fae
sub eax, 2
jne 0x53938f
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebp
test ah, ah
js 0x53938f
mov ecx, dword [esi]
call fcn.00538930
mov ebx, eax
test ebx, ebx
je 0x53938f
cmp word [esi + 0xc], 0x26
push ebx
jne 0x538fe5
mov ecx, dword [esi]
push 7
push 0x110a
push ecx
jmp 0x538fef
mov edx, dword [esi]
push 6
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
je 0x53938f
push 0x10
call ebp
test ah, ah
jns 0x539046
mov edx, dword [0x5b3d38]
test edx, edx
jne 0x539019
mov edx, ebx
mov dword [0x5b3d38], edx
mov ecx, dword [esi]
push 0
push 0
push edi
call fcn.00538d20
mov edx, dword [0x5b3d38]
mov ecx, dword [esi]
push 1
push 1
push edi
call fcn.00538d20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
push 0
push 0
mov dword [0x5b3d38], 0
mov ecx, dword [esi]
push edi
mov edx, edi
call fcn.00538d20
mov ecx, dword [esi]
push 1
push 1
push edi
mov edx, edi
call fcn.00538d20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
movzx edx, word [esi + 0x1a]
test edx, edx
jle 0x53938f
mov al, byte [esi + 0x18]
test al, al
jne 0x53938f
lea eax, [esp + 0x58]
push eax
push 2
xor ecx, ecx
call fcn.004273a0
test eax, eax
je 0x53938f
mov eax, dword [esi + 0x10]
cmp eax, 0x3e7
jbe 0x5390b9
mov eax, 0x3e6
jmp 0x5390bf
test eax, eax
jge 0x5390bf
xor eax, eax
mov esi, dword [esi + 0xc]
mov byte [esp + eax + 0x58], 0
lea ecx, [esp + 0x58]
jmp 0x5390d0
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
test al, al
jne 0x5390d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
cmp eax, 0xfffffff4
je 0x5392f0
cmp eax, 0xfffffffd
je 0x538f7e
cmp eax, 0xfffffffe
jne 0x53938f
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, dword [esi]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, edi
jne 0x53938f
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
xor edx, edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x40]
push edx
push 0
mov dword [esp + 0x48], eax
mov eax, dword [esi]
push 0x1111
push eax
mov dword [esp + 0x54], ecx
call ebx
mov ecx, dword [esi]
mov ebp, eax
call fcn.00538930
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x50], eax
mov al, byte [esp + 0x48]
je 0x5392a3
test al, 0x46
je 0x5392a3
mov edx, dword [esi]
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push eax
push 0x110c
push edx
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], ebp
call ebx
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
test ah, ah
jns 0x53923f
mov eax, dword [0x5b3d38]
test eax, eax
jne 0x5391d7
mov dword [0x5b3d38], ebp
mov eax, dword [esp + 0x3c]
test ah, ah
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0x14
je 0x539212
mov ecx, eax
shr ecx, 0x10
movzx edx, al
shl ecx, 0x10
lea eax, [esp + 0x18]
push eax
or ecx, edx
push 0
mov dword [esp + 0x44], ecx
mov ecx, dword [esi]
push 0x110d
push ecx
call ebx
jmp 0x5392cb
mov edx, eax
shr edx, 0x10
shl edx, 0x10
movzx eax, al
or edx, eax
lea ecx, [esp + 0x18]
push ecx
or edx, 0x100
push 0
mov dword [esp + 0x44], edx
mov edx, dword [esi]
push 0x110d
push edx
call ebx
jmp 0x5392cb
push 0x10
call edi
test ah, ah
jns 0x53927b
mov edx, dword [0x5b3d38]
test edx, edx
jne 0x53925b
mov edx, dword [esp + 0x50]
mov dword [0x5b3d38], edx
mov ecx, dword [esi]
push 0
push 0
push ebp
call fcn.00538d20
mov edx, dword [0x5b3d38]
mov ecx, dword [esi]
push 1
push 1
push ebp
call fcn.00538d20
jmp 0x5392cb
push 0
push 0
mov dword [0x5b3d38], 0
mov ecx, dword [esi]
push ebp
mov edx, ebp
call fcn.00538d20
mov ecx, dword [esi]
push 1
push 1
push ebp
mov edx, ebp
call fcn.00538d20
jmp 0x5392cb
test al, 0x20
je 0x5392c5
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [esi], eax
jne 0x5392cb
push edi
push edi
mov dword [0x5b3d38], edi
mov ecx, dword [esi]
push ebp
mov edx, ebp
call fcn.00538d20
jmp 0x5392cb
mov dword [0x5b3d38], edi
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x54]
push eax
push 0
push 0x805d
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
mov eax, dword [esi + 0xc]
dec eax
je 0x53939e
sub eax, 0x10000
jne 0x53938f
mov edx, dword [esi + 0x24]
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
lea eax, [esp + 0x18]
push eax
push 0
push 0x110c
push ecx
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, byte [esp + 0x3d]
test al, al
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
je 0x539371
push 0xe
call edi
mov edx, dword [esi + 0x10]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
call edi
push eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
push 8
call edi
mov ecx, dword [esi + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 5
call edi
mov edx, dword [esi + 0x10]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
pop edi
pop esi
pop ebp
mov eax, 0x20
pop ebx
add esp, 0x430
ret 8