Function at 0x1043563
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x234], eax
call fcn.01015433
test eax, eax
jne 0x105f9bf
cmp dword [0x10b24cc], 0
push ebx
push edi
je 0x10435ca
mov al, byte [0x10b24d0]
cmp al, 4
jb 0x1043aaf
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
mov edx, 0x10000
mov edi, 0x80000000
and eax, edx
and ecx, edi
or eax, ecx
jne 0x105f9c6
mov eax, dword [esi]
push esi
mov dword [esi + 0x1bc], 1
call dword [eax + 4]
push 0
push 0xd3
push dword [esi + 0x44]
call fcn.0103c26a
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 0x14]
mov ecx, esi
call fcn.01043bac
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x1043a8a
push eax
mov ecx, esi
call fcn.01012341
mov dword [ebp - 0x214], eax
test eax, eax
je 0x1043a8a
mov ecx, dword [eax + 0x10]
mov edi, 0x100
test edi, ecx
jne 0x1043a83
test cl, cl
js 0x1043a83
lea ecx, [ebp - 0x210]
push ecx
push 0x1011ed0
mov ecx, eax
call fcn.01043b15
test eax, eax
jl 0x105fa04
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
mov dword [ebp - 0x240], ebx
test ebx, ebx
je 0x1043a71
and dword [ebp - 0x218], 0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x105fa13
test byte [esi + 0xc8], 8
je 0x1043696
or dword [ebp - 0x218], 0x10
mov eax, dword [esi]
lea ecx, [ebp - 0x244]
push ecx
push dword [ebp - 0x210]
mov ecx, esi
push dword [ebp - 0x214]
call dword [eax + 0xa0]
test eax, eax
mov eax, dword [ebp - 0x210]
jge 0x105fa1e
push dword [ebp - 0x218]
mov ecx, dword [eax]
push 0x7000
push edi
push 0
push ebx
push eax
call dword [ecx + 0xc]
push 0x1043ad8
push edi
push ebx
push dword [ebp - 0x210]
call fcn.01043341
push 0x1043ad0
push edi
push ebx
push dword [ebp - 0x210]
call fcn.01043341
push 0x1043ae4
push edi
push dword [ebp - 0x210]
push ebx
call fcn.0104337a
and dword [ebp - 0x228], 0
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x224], 1
call dword [eax + 0xd8]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x230]
push eax
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [ebp - 0x220], 0
je 0x105fa94
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x220]
push dword [0x10b23d0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10437d4
cmp dword [ebp - 0x218], 0xffffffff
je 0x105fa35
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
or eax, 0x400
push eax
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.USER32.dll_ModifyMenuW]
push dword [ebp - 0x22c]
mov ecx, esi
push dword [ebp - 0x230]
push dword [ebp - 0x21c]
call fcn.0103dc26
test eax, eax
jne 0x105faab
push dword [ebp - 0x22c]
mov ecx, esi
push dword [ebp - 0x230]
push dword [ebp - 0x21c]
call fcn.0103dcba
test eax, eax
jne 0x105fae7
push dword [ebp - 0x228]
mov eax, dword [esi]
push ebx
push dword [ebp - 0x214]
mov ecx, esi
push dword [ebp - 0x210]
call dword [eax + 0x9c]
push ebx
call fcn.01043174
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
lea eax, [esi + 0x104]
push eax
push 0x104332c
push ecx
call dword [edx]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
lea eax, [esi + 0x108]
push eax
push 0x10120bc
push ecx
call dword [edx]
push 0
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push 0x102
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
mov ebx, eax
lea eax, [esi + 0x104]
push eax
call fcn.01002bee
lea eax, [esi + 0x108]
push eax
call fcn.01002bee
cmp dword [esi + 0x44], 0
je 0x1043a4b
test ebx, ebx
je 0x1043a4b
mov eax, ebx
dec eax
je 0x105fb05
dec eax
je 0x105fafe
dec eax
lea eax, [ebp - 0x20c]
je 0x105faf7
push 0x104
push eax
lea eax, [ebx - 0x100]
push eax
push dword [ebp - 0x210]
call fcn.010432c3
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x27c], eax
xor eax, eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x23c]
sub ebx, edi
test byte [esi + 0xc8], 8
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x284], 0x40
mov dword [ebp - 0x280], 0x4100000
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x26c], 0xa
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x248], eax
je 0x104398f
push 0x1043ddc
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x105fb20
push 0x1043e20
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1043abc
push 0x1043e34
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1043abc
push 0x1034d68
call fcn.01008600
test al, al
je 0x1043a21
push 0x1043e20
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x105fba0
push 0x1043e34
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x105fbb9
push 0x1043e08
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x105fbd2
push 0x1043dec
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x105fbeb
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x284]
push ecx
push dword [ebp - 0x210]
mov ecx, esi
push dword [ebp - 0x21c]
push dword [ebp - 0x214]
call dword [eax + 0xa4]
mov eax, dword [ebp - 0x214]
test byte [eax + 0x10], 0x40
jne 0x105fc1b
push dword [ebp - 0x240]
call dword [sym.imp.USER32.dll_DestroyMenu]
mov dword [ebp - 0x220], 1
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x214]
mov ecx, eax
call fcn.0100f319
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
pop edi
pop ebx
cmp dword [ebp - 0x220], eax
je 0x105fc2f
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01001feb
leave
ret 0x10
test al, al
je 0x10435a9
jmp 0x10435ca
cmp dword [0x10b24cc], 0
je 0x10439bb
jmp 0x105fb32
xor eax, eax
jmp 0x1043aa0
mov eax, dword [0x10b24c0]
mov ebx, dword [0x10b24c4]
mov ecx, eax
and ecx, edx
mov edx, ebx
and edx, edi
cmp ecx, eax
jne 0x10435ca
cmp edx, ebx
jne 0x10435ca
push 0x105fc50
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.0100e7c9
jmp 0x10435ca
mov dword [ebp - 0x210], 0x10b3aac
jmp 0x1043658
mov dword [ebp - 0x218], edi
jmp 0x1043686
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x210], eax
jmp 0x10436c1
push 0
push 0xffffffffffffffff
push 0x800
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
push dword [ebp - 0x22c]
mov ecx, esi
push dword [ebp - 0x230]
push dword [ebp - 0x21c]
call fcn.0103dc26
test eax, eax
je 0x10437d4
push 0
push dword [ebp - 0x224]
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x10437d4
push 0x400
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x10437d4
mov eax, dword [ebp - 0x214]
test byte [eax + 0x20], 1
mov eax, 0x1043e34
jne 0x105fac1
mov eax, 0x1043e20
push eax
push edi
push dword [ebp - 0x210]
push ebx
call fcn.0104337a
cmp eax, 0xffffffff
je 0x10437f5
push 1
push eax
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x10437f5
push 1
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x1043816
push 0x1069784
jmp 0x105fb10
push 0x106979c
jmp 0x105fb0a
push 0x1043ae4
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100665f
jmp 0x10438e8
push dword [ebp - 0x21c]
mov ecx, esi
call fcn.0108f07f
jmp 0x10439bb
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x105fb43
test al, al
jne 0x10439bb
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
mov edx, 0x10000
mov ebx, 0x80000000
and eax, edx
and ecx, ebx
or eax, ecx
je 0x10439bb
mov eax, dword [0x10b24c0]
mov edi, dword [0x10b24c4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, ebx
cmp ecx, eax
jne 0x105fb95
cmp edx, edi
jne 0x105fb95
push 0x105fc60
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.0100e7c9
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
jmp 0x10439bb
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1043a21
push 2
jmp 0x105fc02
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1043a21
push 7
jmp 0x105fc02
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1043a21
push 5
jmp 0x105fc02
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1043a21
push 0xa
push 0
push edi
push 0x10b2478
call fcn.0102e40a
push edi
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x1043a21
push 0x17a5
push 0x105fc70
call fcn.01034b2d
jmp 0x1043a5b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x234]
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x1043aa0