Function at 0x402430
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418f79
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 [0x4247bc], edi
jne 0x402473
lea eax, [edi + 1]
jmp 0x40284e
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.00413f70
mov dword [ebp - 4], esi
mov esi, 0x4247cc
call fcn.00401820
test eax, eax
jne 0x4024c5
mov dword [ebp - 0x448], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
push ecx
jmp 0x402829
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.00401940
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 0x402530
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 0x40258d
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 0x40258d
mov dword [eax], 0x10
mov esi, dword [0x4247cc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x440]
cmp ecx, edi
je 0x402628
add ecx, 4
jmp 0x40262a
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 0x4025cf
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.0040fc80
push eax
push str.CAppModule::Run
push 0xed
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.004019f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
push ecx
jmp 0x402829
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 [0x4247c4]
cmp eax, edi
je 0x402652
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x4247c4], edi
push 0x4247f0
mov ecx, dword [0x424800]
mov edx, 0x424804
call fcn.00405870
mov dword [0x424818], 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 0x40272f
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
lea esp, [esp]
mov eax, dword [ebp - 0x464]
sub eax, 0x100
je 0x4026a2
sub eax, 4
jne 0x402701
mov ecx, dword [0x4247c8]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402701
cmp dword [0x424830], edi
je 0x4026df
push 0x11
call esi
test ax, ax
js 0x4026df
push 0x12
call esi
test ax, ax
js 0x4026df
push 0x10
call esi
test ax, ax
js 0x4026df
cmp dword [ebp - 0x460], 0x1b
jne 0x402701
mov edx, dword [ebp - 0x45c]
push edx
mov eax, dword [ebp - 0x460]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
mov edx, dword [0x4247c8]
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 0x402690
mov byte [ebp - 4], 2
lea eax, [ebp - 0x440]
push eax
call fcn.004019f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
push ecx
call fcn.00413ee0
jmp 0x402848
call fcn.00413ee0
mov eax, dword [0x4247c4]
test eax, eax
je 0x402848
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x4247c4], 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.00415b49
mov esp, ebp
pop ebp
ret