Function at 0x51e880
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x178
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1f4]
push edi
call fcn.005205f0
test eax, eax
je case.0x51e945.21
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0
call ebx
mov edi, dword [esp + 0x188]
test ah, 0x80
je case.0x51e8da.49
lea eax, [edi - 0x2d]
cmp eax, 0x2b
ja case.0x51e8da.49
xor edx, edx
mov dl, byte [eax + 0x51f4d8]
jmp dword [edx*4 + 0x51f4c4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd0]
jmp case.0x51e8da.49
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc4]
jmp case.0x51e8da.49
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
jmp case.0x51e8da.49
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xcc]
push 0x10
call ebx
test ah, 0x80
je 0x51e927
cmp edi, 0x2d
jne 0x51e927
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xcc]
lea eax, [edi - 9]
cmp eax, 0x68
mov dword [esp + 0x30], eax
ja case.0x51e945.21
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ecx, ecx
mov cl, byte [eax + 0x51f538]
jmp dword [ecx*4 + 0x51f504]
mov eax, dword [esi + 0xd4]
test eax, eax
jne 0x51f20c
lea edi, [esi + 0x1f4]
mov ecx, esi
push edi
call fcn.00525a50
test eax, eax
je 0x51e9c7
mov edx, dword [esi + 0x1f8]
mov eax, dword [edi]
push 0xffffffffffffff97
push edx
push eax
mov ecx, esi
call fcn.0051dfa0
mov ecx, dword [esi + 0x1f8]
mov edx, dword [edi]
push 1
push 0x68baa8
push ecx
push edx
mov ecx, esi
call fcn.00524a70
mov eax, dword [esi + 0x1f8]
mov ecx, dword [edi]
push eax
push ecx
push 1
mov ecx, esi
call fcn.005257e0
mov edx, dword [esi + 0x1f8]
mov eax, dword [edi]
push 0xffffffffffffff96
push edx
push eax
mov ecx, esi
call fcn.0051dfa0
push 0
push edi
mov ecx, esi
call fcn.00520660
push edi
mov ecx, esi
call fcn.00525a50
test eax, eax
je 0x51ea3b
mov ecx, dword [esi + 0x1f8]
push ecx
mov ecx, esi
call fcn.0052a880
test eax, eax
je 0x51ea3b
mov edx, dword [esi + 0x1f8]
mov eax, dword [edi]
push 0xffffffffffffff97
push edx
push eax
mov ecx, esi
call fcn.0051dfa0
mov ecx, dword [esi + 0x1f8]
mov edx, dword [edi]
push 0
push ecx
push edx
mov ecx, esi
call fcn.00524c90
mov eax, dword [esi + 0x1f8]
mov ecx, dword [edi]
push eax
push ecx
push 1
mov ecx, esi
call fcn.005257e0
mov edx, dword [esi + 0x1f8]
mov eax, dword [edi]
push 0xffffffffffffff96
push edx
push eax
mov ecx, esi
call fcn.0051dfa0
push 0
push edi
mov ecx, esi
call fcn.00520660
lea ecx, [esp + 0x54]
push ebp
push ecx
mov ecx, esi
call fcn.00522c20
mov edx, eax
mov ebx, dword [edx]
test ebx, ebx
mov ecx, dword [edx + 4]
mov dword [esp + 0x28], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], eax
mov ebp, dword [edx + 0xc]
jl 0x51eafe
test ecx, ecx
jl 0x51eafe
test eax, eax
jl 0x51eafe
test ebp, ebp
jl 0x51eafe
cmp ebx, eax
jg 0x51eafe
cmp ecx, ebp
jg 0x51eafe
cmp ebx, eax
jg 0x51eafe
mov edi, dword [esp + 0x28]
cmp edi, ebp
jg 0x51eaf5
push edi
push ebx
mov ecx, esi
call fcn.00525a70
test eax, eax
je 0x51eaf0
push 0xffffffffffffff97
push edi
push ebx
mov ecx, esi
call fcn.0051dfa0
push 1
push 0x68baa8
push edi
push ebx
mov ecx, esi
call fcn.00524a70
push 0
push edi
push ebx
mov ecx, esi
call fcn.00524c90
push 0
push edi
push ebx
mov ecx, esi
call fcn.00524d00
push edi
push ebx
push 1
mov ecx, esi
call fcn.005257e0
push 0xffffffffffffff96
push edi
push ebx
mov ecx, esi
call fcn.0051dfa0
push 0
push edi
push ebx
mov ecx, esi
call fcn.00520680
inc edi
cmp edi, ebp
jle 0x51ea91
mov eax, dword [esp + 0x2c]
inc ebx
cmp ebx, eax
jle 0x51ea89
mov eax, dword [esi + 0x1f8]
mov ecx, esi
push eax
call fcn.0052a750
cmp eax, 0xffffffff
pop ebp
je 0x51eb27
mov ecx, dword [esi + 0x1f8]
mov edx, dword [esi + 0x1f4]
push ecx
push edx
mov ecx, esi
call fcn.0052c130
mov eax, dword [esi + 0x1f8]
mov ecx, esi
push eax
call fcn.0052a7d0
cmp eax, 0xffffffff
je 0x51f20c
mov ecx, dword [esi + 0x1f8]
mov edx, dword [esi + 0x1f4]
push ecx
push edx
mov ecx, esi
call fcn.0052ca20
jmp 0x51f20c
mov eax, dword [esi + 0xd4]
test eax, eax
jne 0x51f20c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x51ec0b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, esi
call fcn.0052ba20
mov edi, eax
mov eax, dword [edi]
test eax, eax
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov edi, dword [edi + 0xc]
jl 0x51ebbc
test ecx, ecx
jl 0x51ebbc
test edx, edx
jl 0x51ebbc
test edi, edi
jl 0x51ebbc
cmp eax, edx
jg 0x51ebbc
cmp ecx, edi
jg 0x51ebbc
dec ecx
mov dword [esp + 0x10], ecx
jmp 0x51f20c
mov eax, dword [esi + 0x114]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jle 0x51ebd4
dec ecx
mov dword [esp + 0x10], ecx
jmp 0x51f20c
jne 0x51edee
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x10c]
cmp eax, ecx
jle 0x51edee
mov edx, eax
mov eax, dword [esi + 0x110]
dec edx
dec eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
jmp 0x51f20c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
lea eax, [esp + 0x98]
push edx
push eax
mov ecx, esi
call fcn.0052ba20
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
mov edi, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
jl 0x51ec53
test edi, edi
jl 0x51ec53
test edx, edx
jl 0x51ec53
test ecx, ecx
jl 0x51ec53
cmp eax, edx
jg 0x51ec53
cmp edi, ecx
jg 0x51ec53
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x51f20c
mov eax, dword [esi + 0x110]
mov ecx, dword [esp + 0x10]
dec eax
cmp ecx, eax
jge 0x51ec6c
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x51f20c
jne 0x51edee
mov edx, dword [esi + 0x108]
mov eax, dword [esp + 0xc]
dec edx
cmp eax, edx
jge 0x51edee
inc eax
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x114]
mov dword [esp + 0x10], eax
jmp 0x51f20c
mov eax, dword [esi + 0xd4]
test eax, eax
jne 0x51f20c
mov eax, dword [esi + 0x3c4]
cmp eax, 1
jne 0x51ed51
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
lea eax, [esp + 0x78]
push edx
push eax
mov ecx, esi
call fcn.0052ba20
mov edx, eax
mov eax, dword [edx]
test eax, eax
mov edi, dword [edx + 4]
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
jl 0x51ed01
test edi, edi
jl 0x51ed01
test ecx, ecx
jl 0x51ed01
test edx, edx
jl 0x51ed01
cmp eax, ecx
jg 0x51ed01
cmp edi, edx
jg 0x51ed01
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0x110]
mov ecx, dword [esp + 0x10]
dec eax
cmp ecx, eax
jge 0x51ed1a
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x51f20c
jne 0x51edee
mov eax, dword [esi + 0x108]
mov ecx, dword [esp + 0xc]
dec eax
cmp ecx, eax
jge 0x51edee
mov eax, ecx
mov ecx, dword [esi + 0x114]
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 1
jmp 0x51f20c
cmp eax, 2
jne 0x51ede5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, esi
call fcn.0052ba20
mov edx, eax
mov eax, dword [edx]
test eax, eax
mov edi, dword [edx + 4]
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
jl 0x51ed9d
test edi, edi
jl 0x51ed9d
test ecx, ecx
jl 0x51ed9d
test edx, edx
jl 0x51ed9d
cmp eax, ecx
jg 0x51ed9d
cmp edi, edx
jg 0x51ed9d
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x108]
mov ecx, dword [esp + 0xc]
dec eax
cmp ecx, eax
jge 0x51edb6
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x51f20c
jne 0x51edee
mov eax, dword [esi + 0x110]
mov ecx, dword [esp + 0x10]
dec eax
cmp ecx, eax
jge 0x51edee
mov eax, ecx
mov ecx, dword [esi + 0x10c]
inc eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
jmp 0x51f20c
cmp eax, 3
jne 0x51f20c
mov ecx, esi
call fcn.005540fe
jmp 0x51f20c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
mov ebx, eax
push eax
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
mov dword [esi + 0x1c0], 1
call fcn.0052ba20
mov edi, eax
mov eax, dword [edi]
test eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edi, dword [edi + 0xc]
jl 0x51ee4b
test edx, edx
jl 0x51ee4b
test ecx, ecx
jl 0x51ee4b
test edi, edi
jl 0x51ee4b
cmp eax, ecx
jg 0x51ee4b
cmp edx, edi
jg 0x51ee4b
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x51f20c
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x108]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jge 0x51ee81
push eax
mov ecx, esi
call fcn.00525410
test eax, eax
jg 0x51f20c
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x108]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x51ee5e
mov dword [esp + 0xc], ebx
jmp 0x51f20c
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x10c]
mov edi, eax
dec eax
cmp eax, ecx
mov dword [esi + 0x1c0], 1
mov dword [esp + 0xc], eax
jl 0x51eecc
push eax
mov ecx, esi
call fcn.00525410
test eax, eax
jg 0x51f20c
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x10c]
dec eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jge 0x51eea9
mov dword [esp + 0xc], edi
jmp 0x51f20c
mov eax, dword [esi + 0xd4]
test eax, eax
jne 0x51f20c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
lea edx, [esp + 0x88]
push ecx
push edx
mov ecx, esi
mov ebx, eax
call fcn.0052ba20
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
mov edi, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
jl 0x51ef2d
test edi, edi
jl 0x51ef2d
test edx, edx
jl 0x51ef2d
test ecx, ecx
jl 0x51ef2d
cmp eax, edx
jg 0x51ef2d
cmp edi, ecx
jg 0x51ef2d
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x51f20c
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x110]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x51ef63
push eax
mov ecx, esi
call fcn.00525440
test eax, eax
jg 0x51f20c
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x110]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x51ef40
mov dword [esp + 0x10], ebx
jmp 0x51f20c
mov eax, dword [esi + 0xd4]
test eax, eax
jne 0x51f20c
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x114]
mov edi, eax
dec eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x51efb2
push eax
mov ecx, esi
call fcn.00525440
test eax, eax
jg 0x51f20c
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x114]
dec eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x51ef8f
mov dword [esp + 0x10], edi
jmp 0x51f20c
lea edx, [esp + 0x20]
mov ecx, esi
push edx
call fcn.00522a90
mov eax, dword [esi + 0x1c]
push 0
push 3
push 0x115
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00522a90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub eax, ecx
je 0x51f010
mov ecx, dword [esp + 0xc]
add ecx, eax
mov eax, dword [esi + 0x108]
dec eax
mov dword [esp + 0xc], ecx
cmp ecx, eax
jle 0x51f20c
mov dword [esp + 0xc], eax
jmp 0x51f20c
mov eax, dword [esi + 0x108]
dec eax
mov dword [esp + 0xc], eax
jmp 0x51f20c
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.00522a90
mov eax, dword [esi + 0x1c]
push 0
push 2
push 0x115
push eax
call edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00522a90
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub eax, ecx
je 0x51f074
mov ecx, dword [esp + 0xc]
add ecx, eax
mov eax, dword [esi + 0x10c]
cmp ecx, eax
mov dword [esp + 0xc], ecx
jge 0x51f20c
mov dword [esp + 0xc], eax
jmp 0x51f20c
mov edx, dword [esi + 0x10c]
mov dword [esp + 0xc], edx
jmp 0x51f20c
push 0x11
call ebx
test ah, 0x80
push 0
push 6
je 0x51f0b6
mov eax, dword [esi + 0x1c]
push 0x115
push eax
call edi
mov ecx, dword [esi + 0x1c]
push 0
push 6
push 0x114
push ecx
call edi
mov edx, dword [esi + 0x10c]
mov dword [esp + 0xc], edx
jmp 0x51f0c1
mov eax, dword [esi + 0x1c]
push 0x114
push eax
call edi
mov ecx, dword [esi + 0x110]
mov eax, dword [esi + 0x114]
dec ecx
mov dword [esp + 0x10], eax
cmp eax, ecx
jge 0x51f0f6
push eax
mov ecx, esi
call fcn.00525440
test eax, eax
jg 0x51f0f6
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x110]
inc eax
dec edx
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x51f0d6
mov ecx, dword [esi + 0x108]
mov eax, dword [esp + 0xc]
dec ecx
cmp eax, ecx
jge 0x51f20c
push eax
mov ecx, esi
call fcn.00525410
test eax, eax
jg 0x51f20c
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x108]
inc eax
dec edx
cmp eax, edx
mov dword [esp + 0xc], eax
jl 0x51f109
jmp 0x51f20c
push 0x11
call ebx
test ah, 0x80
push 0
push 7
je 0x51f166
mov eax, dword [esi + 0x1c]
push 0x115
push eax
call edi
mov ecx, dword [esi + 0x1c]
push 0
push 7
push 0x114
push ecx
call edi
mov eax, dword [esi + 0x108]
dec eax
mov dword [esp + 0xc], eax
jmp 0x51f171
mov edx, dword [esi + 0x1c]
push 0x114
push edx
call edi
mov eax, dword [esi + 0x110]
mov ecx, dword [esi + 0x114]
dec eax
inc ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x51f1a7
push eax
mov ecx, esi
call fcn.00525440
test eax, eax
jg 0x51f1a7
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x114]
dec eax
inc edx
cmp eax, edx
mov dword [esp + 0x10], eax
jg 0x51f187
mov ecx, dword [esi + 0x10c]
mov eax, dword [esp + 0xc]
inc ecx
cmp eax, ecx
jle 0x51f20c
push eax
mov ecx, esi
call fcn.00525410
test eax, eax
jg 0x51f20c
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x10c]
dec eax
inc edx
cmp eax, edx
mov dword [esp + 0xc], eax
jg 0x51f1b6
jmp 0x51f20c
mov edx, dword [esi]
or ecx, 0xffffffff
mov edi, dword [esi + 0x1c]
or eax, 0xffffffff
push 1
push ecx
mov ecx, dword [esi + 0x1f4]
push eax
mov eax, dword [esi + 0x1f8]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x100]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x51f4b8
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x1f4]
cmp edx, eax
jne 0x51f22c
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1f8]
cmp eax, ecx
je 0x51f4b8
mov eax, dword [esi + 0x1b8]
xor ebx, ebx
cmp eax, ebx
jne 0x51f2e2
mov edx, dword [esi + 0x234]
cmp edx, ebx
je 0x51f266
mov eax, dword [esi + 0x238]
cmp eax, ebx
jbe 0x51f266
mov ecx, edx
mov edi, eax
mov eax, dword [ecx]
cmp eax, ebx
je 0x51f260
mov eax, dword [eax]
cmp eax, ebx
jne 0x51f25a
add ecx, 4
dec edi
jne 0x51f254
push edx
call fcn.00552471
mov ecx, dword [esi + 0x244]
add esp, 4
mov dword [esi + 0x234], ebx
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x240], ebx
call fcn.00551c3a
mov dword [esi + 0x244], ebx
mov ecx, dword [esi + 0xd4]
neg ecx
sbb ecx, ecx
push 0x10
add ecx, 4
mov dword [esi + 0x1b8], ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x51f2bc
cmp dword [esp + 0x188], 9
jne 0x51f2d0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1ec], edx
mov dword [esi + 0x1f0], eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.005217d0
mov dword [esi + 0x1b8], ebx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0052b970
mov eax, dword [esp + 0x18]
cmp eax, ebx
jl 0x51f310
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
jl 0x51f310
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.00520a00
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x6c]
mov edi, dword [esi + 0x1c]
lea ecx, [esp + 0xa4]
push ebx
push ecx
push 0x7ef
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0x180], ebx
mov dword [esp + 0x18c], ebx
call fcn.00519a70
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x51f4b8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.00525c80
test eax, eax
jne 0x51f4b8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
mov ecx, esi
call fcn.005258d0
mov eax, dword [esp + 0x30]
cmp eax, 0x1f
ja case.0x51f3ba.5
xor ecx, ecx
mov cl, byte [eax + 0x51f5bc]
jmp dword [ecx*4 + 0x51f5a4]
push ebx
push 1
mov edx, dword [esi + 0x1c]
push 0x114
push edx
jmp 0x51f492
mov eax, dword [esi + 0x1c]
push ebx
push ebx
push 0x114
push eax
jmp 0x51f492
push ebx
push 1
push 0x115
jmp 0x51f48e
mov edx, dword [esi + 0x1c]
push ebx
push ebx
push 0x115
push edx
jmp 0x51f492
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
mov eax, dword [esp + 0x14]
je 0x51f44f
cmp eax, ebx
push ebx
push ebx
je 0x51f3c4
mov eax, dword [esi + 0x1c]
push 0x115
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x150]
push 1
push ecx
push ebx
mov ecx, esi
call fcn.00522e70
mov edx, dword [esi + 0x1c]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebx
add esp, 0x178
ret 0xc
cmp eax, ebx
push ebx
push 1
je 0x51f489
mov eax, dword [esi + 0x1c]
push 0x115
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push ebx
push ebx
mov ecx, esi
call fcn.00522e70
mov edx, dword [esi + 0x1c]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebx
add esp, 0x178
ret 0xc
push 0x114
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x1c]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebx
add esp, 0x178
ret 0xc
mov ecx, esi
call fcn.005540fe
pop edi
pop esi
pop ebx
add esp, 0x178
ret 0xc