Function at 0x402420
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418e79
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x423040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
cmp dword [0x424794], edi
jne 0x402463
lea eax, [edi + 1]
jmp 0x40283e
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x444], edi
mov esi, 2
mov dword [ebp - 4], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x444]
push eax
call fcn.00413c00
mov dword [ebp - 4], esi
mov esi, 0x4247a4
call fcn.00401800
test eax, eax
jne 0x4024b5
mov dword [ebp - 0x448], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
push ecx
jmp 0x402819
push edi
push edi
push edi
push edi
lea edx, [ebp - 0x468]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
push str.B9812A84_64E9_46eb_8F57_DDF1DDA2B95C
lea ecx, [ebp - 0x488]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 6
lea eax, [ebp - 0x440]
push eax
lea edi, [ebp - 0x488]
call fcn.00401920
mov ebx, 8
mov byte [ebp - 4], bl
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x424], ebx
mov eax, dword [ebp - 0x438]
jae 0x402520
lea eax, [ebp - 0x438]
push eax
push 0x10
xor edi, edi
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x420], eax
cmp eax, edi
je 0x40257d
push 0x10
push edi
push edi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x440], eax
cmp eax, edi
je 0x40257d
mov dword [eax], 0x10
mov esi, dword [0x4247a4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x440]
cmp ecx, edi
je 0x402618
add ecx, 4
jmp 0x40261a
mov dword [ebp - 0x448], 0x80004005
mov word [ebp - 0x418], di
push 0x3fe
push edi
lea edx, [ebp - 0x416]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x5c
push str..AppModule.cpp
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
cmp eax, edi
lea edi, [eax + 2]
jne 0x4025bf
mov edi, str..AppModule.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_global_data_failed_err___d_._r_n
mov edx, 0x200
lea esi, [ebp - 0x418]
call fcn.0040f910
push eax
push str.CAppModule::Run
push 0xf1
push edi
push str._ls__d_:__ls__:__ls
call dword [sym.imp.LiveLog.DLL_void___cdecl_DOLOG_wchar_t_const__]
add esp, 0x1c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x440]
push eax
call fcn.004019d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
push ecx
jmp 0x402819
xor ecx, ecx
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x42479c]
cmp eax, edi
je 0x402642
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x42479c], edi
push 0x4247c8
mov ecx, dword [0x4247d8]
mov edx, 0x4247dc
call fcn.00405830
mov dword [0x4247f0], eax
push edi
push edi
push edi
lea eax, [ebp - 0x468]
push eax
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
call ebx
test eax, eax
jle 0x40271f
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
lea esp, [esp]
mov eax, dword [ebp - 0x464]
sub eax, 0x100
je 0x402692
sub eax, 4
jne 0x4026f1
mov ecx, dword [0x4247a0]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4026f1
cmp dword [0x424808], edi
je 0x4026cf
push 0x11
call esi
test ax, ax
js 0x4026cf
push 0x12
call esi
test ax, ax
js 0x4026cf
push 0x10
call esi
test ax, ax
js 0x4026cf
cmp dword [ebp - 0x460], 0x1b
jne 0x4026f1
mov edx, dword [ebp - 0x45c]
push edx
mov eax, dword [ebp - 0x460]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
mov edx, dword [0x4247a0]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x468]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x468]
push edx
call ebx
test eax, eax
jg 0x402680
mov byte [ebp - 4], 2
lea eax, [ebp - 0x440]
push eax
call fcn.004019d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
push ecx
call fcn.00413b70
jmp 0x402838
call fcn.00413b70
mov eax, dword [0x42479c]
test eax, eax
je 0x402838
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x42479c], 0
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00415b53
mov esp, ebp
pop ebp
ret