Function at 0x43a444
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov bx, word [esp + 0x6c]
mov word [0x49982e], 0
mov di, word [0x499834]
mov word [0x499832], 0
cmp dword [0x48ed70], 4
je 0x43a4bd
push 0x10
call dword [sym.imp.USER32.DLL_GetAsyncKeyState]
and eax, 0x8000
mov word [0x499834], ax
push 0x11
call dword [sym.imp.USER32.DLL_GetAsyncKeyState]
cwde
test ah, 0x80
mov ecx, 0x2000
jne 0x43a49a
xor ecx, ecx
or word [0x499834], cx
push 0x12
call dword [sym.imp.USER32.DLL_GetAsyncKeyState]
cwde
test ah, 0x80
mov ecx, 0x4000
jne 0x43a4b6
xor ecx, ecx
or word [0x499834], cx
mov ecx, ebx
test cl, 2
je 0x43a4fa
test cl, 1
je 0x43a4de
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.DLL_GetMessageA]
mov esi, eax
jmp 0x43a51a
push 3
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.DLL_PeekMessageA]
mov esi, eax
test ax, ax
jne 0x43a51a
jmp 0x43a4de
test bl, 1
mov ecx, 1
jne 0x43a506
mov cl, 3
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.DLL_PeekMessageA]
mov esi, eax
test si, si
je 0x43a524
test bl, 8
jne 0x43a528
xor ecx, ecx
jmp 0x43a52d
mov ecx, 1
mov ebp, ecx
test si, si
je 0x43a704
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
lea ecx, [esp + 0x2c]
push ecx
push dword [0x489abc]
call dword [sym.imp.USER32.DLL_ScreenToClient]
mov ecx, dword [esp + 0x2c]
mov dword [0x499810], ecx
mov ecx, dword [esp + 0x30]
mov dword [0x499814], ecx
lea ecx, [esp + 0x34]
push ecx
push dword [0x489abc]
call dword [sym.imp.USER32.DLL_GetClientRect]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.USER32.DLL_PtInRect]
mov word [0x499830], ax
mov ecx, dword [esp + 0x14]
mov edx, 0x200
cmp ecx, edx
jb 0x43a66b
cmp ecx, 0x209
ja 0x43a66b
cmp ecx, edx
je 0x43a5f7
mov cx, word [esp + 0x18]
and cx, 1
mov word [0x499828], cx
mov ecx, dword [esp + 0x18]
test cl, 2
mov edx, 1
jne 0x43a5db
xor edx, edx
mov word [0x49982a], dx
test cl, 0x10
mov ecx, 1
jne 0x43a5ee
xor ecx, ecx
mov word [0x49982c], cx
jmp 0x43a632
mov cx, word [esp + 0x18]
and cx, 1
and word [0x499828], cx
mov ecx, dword [esp + 0x18]
test cl, 2
mov edx, 1
jne 0x43a618
xor edx, edx
and word [0x49982a], dx
test cl, 0x10
mov ecx, 1
jne 0x43a62b
xor ecx, ecx
and word [0x49982c], cx
mov cl, bl
and cl, 0x20
neg cl
sbb ecx, ecx
inc ecx
and bp, cx
cmp dword [0x489acc], 0
je 0x43a704
lea ecx, [esp + 0x24]
push ecx
push dword [esp + 0x18]
push 0x50a
push dword [0x489abc]
call dword [sym.imp.USER32.DLL_SendMessageA]
jmp 0x43a704
mov ecx, dword [esp + 0x14]
cmp ecx, 0x100
je 0x43a683
cmp ecx, 0x104
jne 0x43a704
call dword [sym.imp.USER32.DLL_GetFocus]
mov dword [esp + 0x44], eax
cmp eax, dword [0x48f410]
je 0x43a6ca
push 0x20
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 0x48f414
lea ecx, [esp + 0x4c]
push ecx
call fcn.00471780
neg eax
sbb eax, eax
inc eax
mov word [0x499884], ax
mov ecx, dword [esp + 0x4c]
mov dword [0x48f410], ecx
add esp, 8
cmp word [0x499884], 0
jne 0x43a704
mov cx, word [esp + 0x18]
cmp cx, 0x10
jb 0x43a6e5
cmp cx, 0x12
jbe 0x43a6f7
mov cx, word [0x499834]
or ecx, dword [esp + 0x18]
mov word [0x499832], cx
mov cl, bl
and cl, 0x10
neg cl
sbb ecx, ecx
inc ecx
and bp, cx
test bl, 4
je 0x43a717
cmp dword [0x49083c], 0
je 0x43a717
test si, si
jne 0x43a720
cmp di, word [0x499834]
je 0x43a762
mov ebx, dword [0x49083c]
mov ecx, dword [esp + 0x14]
cmp ecx, 0x113
je 0x43a73a
cmp ecx, 0x118
jne 0x43a73e
xor edi, edi
jmp 0x43a742
mov edi, dword [esp + 0x10]
mov edx, dword [0x499814]
mov eax, dword [0x499810]
push edx
push eax
push edi
mov ecx, ebx
call fcn.00444961
mov ebx, dword [ebx + 0x2c]
cmp ebx, dword [0x49083c]
jne 0x43a742
cmp dword [0x48ed70], 2
jne 0x43a778
lea eax, [esp + 0x10]
push eax
call fcn.0043581c
add esp, 4
test bp, bp
je 0x43a7b1
cmp dword [0x489ad0], 0
je 0x43a79b
lea eax, [esp + 0x10]
push eax
push dword [0x489ad0]
call dword [sym.imp.USER32.DLL_IsDialogMessageA]
test eax, eax
jne 0x43a7b1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.DLL_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.DLL_DispatchMessageA]
test si, si
je 0x43a7bc
mov eax, dword [esp + 0x14]
jmp 0x43a7be
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret