Function at 0x48d210
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff3c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00405e88
lea eax, [ebp + 8]
call fcn.004052ec
xor eax, eax
push ebp
push 0x48d956
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0x48d8ea
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
mov edx, dword [0x484420]
call fcn.00405e24
mov byte [ebp - 0xd], 0
cmp dword [ebp - 8], 0
jne 0x48d2a1
mov ecx, 0x19c8
mov edx, 0x48d974
mov eax, 0x48d9c0
call fcn.00404654
cmp dword [ebp - 8], 0
je 0x48d8d3
push 0x10
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne bl
push 0x11
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne byte [ebp - 0x45]
xor eax, eax
push ebp
push 0x48d8cc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x48d892
lea eax, [ebp - 0x30]
call fcn.004064dc
lea eax, [ebp - 0x34]
call fcn.004064dc
lea eax, [ebp - 0x38]
call fcn.004064dc
mov byte [ebp - 0xd], 0
cmp dword [ebp + 0x10], 0
je 0x48d316
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
jmp 0x48d349
lea edx, [ebp - 0xc0]
mov eax, dword [0x51b954]
mov eax, dword [eax]
call fcn.0046460c
mov esi, dword [ebp - 0xc0]
lea edx, [ebp - 0xc0]
mov eax, dword [0x51b954]
mov eax, dword [eax]
call fcn.0046460c
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x40
call fcn.00403170
call sub.user32.dll_CreatePopupMenu
mov dword [ebp - 0x14], eax
push 0x8001
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x48d88b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [ebp + 0x26], 0
je 0x48d397
mov eax, dword [ebp - 0xc]
call fcn.00405c5c
dec eax
jne 0x48d397
mov edi, 0x14
jmp 0x48d39c
mov edi, 4
test bl, bl
je 0x48d3a6
or edi, 0x100
cmp dword [ebp - 0xc], 0
je 0x48d3bc
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0048cf78
jmp 0x48d3c7
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.0048e520
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048e534
cmp dword [ebp - 0x30], 0
je 0x48d86b
lea eax, [ebp - 0x38]
push eax
push 0x48da10
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [eax]
call dword [eax]
cmp eax, 0x80004002
jne 0x48d424
lea eax, [ebp - 0x34]
push eax
mov eax, dword [0x51b814]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [eax]
call dword [eax]
cmp eax, 0x80004002
je 0x48d42f
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0048e534
jmp 0x48d42f
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0048e534
cmp dword [ebp - 0x38], 0
je 0x48d44e
push edi
push 0x7fff
push 1
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
jmp 0x48d48a
cmp dword [ebp - 0x34], 0
je 0x48d46d
push edi
push 0x7fff
push 1
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
jmp 0x48d48a
cmp dword [ebp - 0x30], 0
je 0x48d48a
push edi
push 0x7fff
push 1
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
cmp dword [ebp + 0xc], 0
je 0x48d4bb
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc4]
mov edx, dword [ebp + 8]
call fcn.00404990
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0048cad8
mov byte [ebp - 0x2a], 1
cmp word [ebp + 0x1e], 0
je 0x48d4d6
lea eax, [ebp - 0x2a]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x20]
call dword [ebp + 0x1c]
cmp byte [ebp - 0x2a], 0
je 0x48d584
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x38]
mov dword [eax + 0x40], ecx
mov ecx, dword [edx + 0x3c]
mov dword [eax + 0x44], ecx
xor eax, eax
push ebp
push 0x48d57d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax + 0x3c], edx
mov dword [eax + 0x38], 0x48f360
push 0
mov eax, dword [ebp - 8]
call fcn.0045fd40
push eax
mov eax, dword [ebp - 0x1c]
push eax
push esi
push 0x102
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_TrackPopupMenuEx
mov dword [ebp - 0x18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d589
push 0x10
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne bl
push 0x11
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne byte [ebp - 0x45]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x40]
mov dword [eax + 0x38], ecx
mov ecx, dword [edx + 0x44]
mov dword [eax + 0x3c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
ret
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48d850
call fcn.00499c58
test al, al
je 0x48d5ce
lea eax, [ebp - 0x28]
mov edx, 0x80
call fcn.004052a8
mov eax, dword [ebp - 0x28]
call fcn.00404fd0
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403170
mov eax, dword [ebp - 0x28]
call fcn.00404fd0
mov esi, eax
mov edi, 4
jmp 0x48d5fb
lea eax, [ebp - 0x24]
mov edx, 0x80
call fcn.00404d58
lea eax, [ebp - 0x24]
call fcn.00404c20
xor ecx, ecx
mov edx, 0x80
call fcn.00403170
lea eax, [ebp - 0x24]
call fcn.00404c20
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x38], 0
je 0x48d622
push 0x80
push esi
push 0
push edi
mov eax, dword [ebp - 0x18]
dec eax
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.004191e8
mov byte [ebp - 0xd], al
jmp 0x48d66e
cmp dword [ebp - 0x34], 0
je 0x48d649
push 0x80
push esi
push 0
push edi
mov eax, dword [ebp - 0x18]
dec eax
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.004191e8
mov byte [ebp - 0xd], al
jmp 0x48d66e
cmp dword [ebp - 0x30], 0
je 0x48d66e
push 0x80
push esi
push 0
push edi
mov eax, dword [ebp - 0x18]
dec eax
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.004191e8
mov byte [ebp - 0xd], al
call fcn.00499c58
test al, al
je 0x48d691
mov eax, dword [ebp - 0x28]
call fcn.00404fd0
push eax
call sub.kernel32.dll_lstrlenW
mov edx, eax
lea eax, [ebp - 0x28]
call fcn.004052a8
jmp 0x48d6b3
mov eax, dword [ebp - 0x24]
call fcn.00404bc8
call fcn.0040a264
mov edx, eax
lea eax, [ebp - 0x24]
call fcn.00404d58
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00404fc0
cmp byte [ebp - 0xd], 0
jne 0x48d6c9
lea eax, [ebp - 0x28]
mov edx, dword [0x51b618]
mov edx, dword [edx]
call fcn.00404e4c
mov byte [ebp - 0x29], 0
mov eax, dword [ebp - 0x3c]
call fcn.00405c5c
mov esi, eax
dec esi
test esi, esi
jl 0x48d745
inc esi
xor edi, edi
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + edi*4]
cmp eax, dword [ebp - 0x18]
jne 0x48d741
cmp dword [ebp - 0x40], 0
je 0x48d741
mov byte [ebp - 0x29], 1
lea eax, [ebp - 0xb8]
xor ecx, ecx
mov edx, 0x30
call fcn.00403170
mov dword [ebp - 0xb8], 0x30
mov dword [ebp - 0xb4], 0x20
lea eax, [ebp - 0xb8]
push eax
push 0xffffffffffffffff
push edi
mov eax, dword [ebp - 0x40]
push eax
call sub.user32.dll_GetMenuItemInfoA
cmp dword [ebp - 0x98], 0
je 0x48d741
mov eax, dword [ebp - 0x98]
mov edx, dword [eax]
call dword [edx + 0x44]
inc edi
dec esi
jne 0x48d6df
cmp byte [ebp - 0x29], 0
jne 0x48d850
cmp word [ebp + 0x26], 0
je 0x48d76a
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x29]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x28]
call dword [ebp + 0x24]
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x40
call fcn.00403170
mov esi, dword [ebp - 0x18]
dec esi
mov dword [ebp - 0x7c], esi
call fcn.00499c58
test al, al
je 0x48d799
mov dword [ebp - 0x84], 0x10000
mov dword [ebp - 0x60], esi
call fcn.00499c58
test al, al
je 0x48d7ae
mov dword [ebp - 0x88], 0x40
jmp 0x48d7b8
mov dword [ebp - 0x88], 0x24
mov eax, dword [ebp - 8]
call fcn.0045fd40
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], 1
or dword [ebp - 0x84], 0x100000
test bl, bl
je 0x48d7e2
or dword [ebp - 0x84], 0x10000000
cmp byte [ebp - 0x45], 0
je 0x48d7f2
or dword [ebp - 0x84], 0x40000000
cmp dword [ebp - 0x38], 0
je 0x48d812
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.004191e8
mov byte [ebp - 0xd], al
jmp 0x48d850
cmp dword [ebp - 0x34], 0
je 0x48d832
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.004191e8
mov byte [ebp - 0xd], al
jmp 0x48d850
cmp dword [ebp - 0x30], 0
je 0x48d850
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.004191e8
mov byte [ebp - 0xd], al
cmp word [ebp + 0x16], 0
je 0x48d86b
mov eax, dword [ebp - 0x18]
push eax
mov al, byte [ebp - 0xd]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
call dword [ebp + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d892
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_DestroyMenu
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d8d3
lea eax, [ebp - 0x30]
call fcn.004064dc
lea eax, [ebp - 0x34]
call fcn.004064dc
lea eax, [ebp - 0x38]
call fcn.004064dc
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048e520
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048e534
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d8f1
mov eax, dword [ebp - 0x44]
push eax
call sub.kernel32.dll_SetErrorMode
ret