Function at 0x1004aca0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fa065
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], eax
push fcn.10021720
push fcn.10013a30
push 2
mov dword [ebp - 4], 0
lea edi, [ebx + 0x68]
push 4
push edi
mov dword [ebx], vtable.CMenuContainer.0
mov dword [ebx + 4], vtable.CMenuContainer.2.0
mov dword [ebx + 8], vtable.CMenuContainer.1.0
call fcn.100d4cab
push fcn.10021720
push fcn.10013a30
push 2
push 4
lea esi, [ebx + 0x70]
mov byte [ebp - 4], 1
push esi
call fcn.100d4cab
push fcn.1000f810
push fcn.10013a30
push 2
push 4
lea eax, [ebx + 0x78]
mov byte [ebp - 4], 2
push eax
call fcn.100d4cab
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xc0], 0
mov dword [ebx + 0xc4], 0
mov dword [ebx + 0xc8], 0
mov dword [ebx + 0xcc], 0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0xf
mov dword [ebx + 0x1a4], 0
mov dword [ebx + 0x1dc], 0
shr eax, 0x1f
xor al, 1
mov dword [ebx + 0x2c], 1
push 1
mov byte [ebx + 0x30], al
mov dword [ebx + 0x58], 0xffffffff
mov dword [ebx + 0x54], 0xffffffff
mov dword [ebx + 0xec], 0xffffffff
mov dword [ebx + 0xe4], 0xffffffff
mov dword [ebx + 0xbc], 0xffffffff
mov dword [ebx + 0xb8], 0xffffffff
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
mov byte [ebx + 0xe0], 0
test ax, ax
mov byte [ebx + 0xe8], 0
mov eax, dword [ebp + 8]
setns cl
mov dword [ebx + 0x44], eax
add ecx, 0xfffffffe
mov dword [ebx + 0xf0], 0
mov dword [ebx + 0xdc], ecx
or ecx, 0xffffffff
test eax, eax
mov dword [ebx + 0xf4], 0
mov eax, dword [ebp + 0x10]
cmovne ecx, dword [ebp + 0xc]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x40], eax
mov dword [ebx + 0xf8], 0
mov dword [ebx + 0x100], 0
mov dword [ebx + 0xfc], 0
mov eax, dword [edi]
test eax, eax
je 0x1004aedb
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp + 0x18]
mov dword [edi], 0
mov edi, dword [sym.imp.SHELL32.dll_ILClone]
test eax, eax
je 0x1004aef3
push eax
call edi
jmp 0x1004aef5
xor eax, eax
cmp byte [0x1014b4ef], 0
mov dword [ebx + 0x68], eax
jne 0x1004af24
mov eax, dword [esi]
test eax, eax
je 0x1004af0e
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp + 0x1c]
mov dword [esi], 0
test eax, eax
je 0x1004af20
push eax
call edi
jmp 0x1004af22
xor eax, eax
mov dword [esi], eax
test byte [ebp + 0x10], 0x20
je 0x1004af4d
lea edx, [ebx + 0x6c]
mov ecx, 0x10103b00
call fcn.100348d0
cmp byte [0x1014b4ef], 0
jne 0x1004af4d
lea edx, [ebx + 0x74]
mov ecx, 0x10103ba0
call fcn.100348d0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x60], 0
test dword [ebx + 0x3c], 0x2000000
je 0x1004af76
mov edx, 0x811c9dc5
mov ecx, str.apps
call fcn.100b3790
mov dword [ebx + 0x60], eax
cmp byte [0x10158b9f], 0
jne 0x1004b08c
mov eax, dword [0x1013ca10]
xor esi, esi
mov byte [0x10158b9f], 1
mov dword [ebp + 8], esi
test eax, eax
je 0x1004b08c
xor edi, edi
mov ebx, 0x3ff
mov dword [ebp + 0x18], 0
lea edx, [ebp + 0x18]
mov ecx, eax
call fcn.10034960
test eax, eax
mov eax, dword [ebp + 0x18]
js 0x1004b05f
test eax, eax
je 0x1004b05f
mov dword [ebp + 0x14], 0
lea edx, [ebp + 0x14]
mov byte [ebp - 4], 0x11
mov ecx, dword [eax]
push edx
push 0x80028000
push eax
call dword [ecx + 0x14]
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1004aff2
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
mov esi, dword [ebp + 0x14]
mov eax, esi
lea edx, [edi + 0x1013ca18]
mov dword [ebp + 0x1c], edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004b000
sub eax, edi
sar eax, 1
cmp eax, 0x103
jle 0x1004b01d
mov eax, 0x103
jmp 0x1004b021
test eax, eax
jle 0x1004b030
mov ecx, 0x2400
add cx, word [esi + eax*2]
cmp cx, bx
ja 0x1004b030
dec eax
lea edi, [eax + eax]
push edi
push esi
push edx
call fcn.100d7080
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
add esp, 0xc
mov word [eax + edi], cx
test esi, esi
je 0x1004b052
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov dword [ebp + 0x14], 0
mov byte [ebp - 4], 0x12
test eax, eax
je 0x1004b06d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
mov byte [ebp - 4], 0xf
imul edi, esi, 0x210
mov dword [ebp + 8], esi
mov eax, dword [edi + 0x1013ca10]
test eax, eax
jne 0x1004afa3
mov ebx, dword [ebp - 0x10]
mov byte [ebx + 0x31], 0
mov eax, dword [0x1014c068]
mov dword [ebp + 0x1c], ebx
cmp dword [0x1014c06c], eax
je 0x1004b0ab
mov dword [eax], ebx
add dword [0x1014c068], 4
jmp 0x1004b0b5
lea ecx, [ebp + 0x1c]
push ecx
push eax
call fcn.100630b0
push 0x60
lea eax, [ebx + 0x10c]
mov dword [ebx + 0x4c], 0xffffffff
push 0
mov dword [ebx + 0x1c4], 0xffffffff
mov byte [ebx + 0x32], 0
push eax
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x50], 0
mov word [ebx + 0x5c], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0x104], 0
mov byte [ebx + 0x108], 0
call fcn.100d6eb0
add esp, 0xc
mov dword [ebx + 0x174], 0
lea esi, [ebx + 0xc0]
mov dword [ebx + 0x170], 0
mov dword [ebx + 0x16c], 0
mov dword [ebx + 0x188], 0
push esi
push 0x10103e50
push 1
push 0
push 0x10103b40
mov dword [ebx + 0x184], 0
mov dword [ebx + 0x180], 0
mov dword [ebx + 0x17c], 0
mov dword [ebx + 0x178], 0
mov dword [ebx + 0x18c], 0
mov dword [ebx + 0x198], 0xffffffff
mov dword [ebx + 0x1a0], 0
mov dword [ebx + 0x19c], 0
mov dword [ebx + 0x190], 0
mov word [ebx + 0x194], 0
mov byte [ebx + 0x196], 0
mov word [ebx + 0x33], 0
mov dword [ebx + 0x1ac], 0
mov dword [ebx + 0x1b0], 0
mov dword [ebx + 0x1b4], 0
mov dword [ebx + 0x1b8], 0
mov dword [ebx + 0x1c0], 0xffffffff
mov dword [ebx + 0x1bc], 0xffffffff
mov dword [ebx + 0x1c8], 0
mov dword [ebx + 0x1cc], 0xffffffff
mov dword [ebx + 0x1d8], 0
mov dword [ebx + 0x1d4], 0
mov dword [ebx + 0x1d0], 0
mov dword [ebx + 0x1a8], 0
mov dword [ebx + 0xd0], 0
mov dword [ebx + 0xd4], 0xffffffff
mov dword [ebx + 0x1ec], 0
mov dword [ebx + 0x1e8], 0
mov dword [ebx + 0x1e4], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x1e0], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edx, dword [esi]
xor ecx, ecx
mov byte [ebp - 4], 0x13
mov dword [ebp + 8], ecx
test edx, edx
je 0x1004b2a7
mov eax, dword [edx]
lea ecx, [ebp + 8]
push ecx
push 0x1011368c
push edx
call dword [eax]
mov ecx, dword [ebp + 8]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp + 8], ecx
mov eax, dword [ebx + 0xc4]
cmp eax, ecx
je 0x1004b2cf
mov edx, ecx
xor ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebx + 0xc4], edx
mov byte [ebp - 4], 0x14
test eax, eax
je 0x1004b2cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x1004b2dd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test byte [0x1014b4cc], 1
je 0x1004b2fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push str.Open_Menu__ptr_p__index_d__options_08X
call fcn.1003bea0
add esp, 0x10
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18