Function at 0x4baee0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
call sub.WINMM.dll_timeGetTime
sub eax, dword [0x69037c]
push 1
pop ecx
cmp eax, ecx
jb 0x4baf08
call sub.WINMM.dll_timeGetTime
mov ecx, eax
sub ecx, dword [0x69037c]
mov eax, 0x3e8
xor edx, edx
div ecx
push ebx
push esi
push edi
add eax, dword [0x690378]
shr eax, 1
mov dword [0x690378], eax
call sub.WINMM.dll_timeGetTime
mov dword [0x69037c], eax
call fcn.0051bd44
push dword [eax + 0x9cc]
mov ecx, dword [eax + 0x9c8]
push ecx
mov ecx, 0x692048
call fcn.0053cb1f
call fcn.004647c6
mov ecx, eax
call fcn.005634f1
call sub.WINMM.dll_timeGetTime
xor esi, esi
mov edi, 0x6903d0
push esi
mov ecx, edi
call fcn.004e6889
call sub.WINMM.dll_timeGetTime
call fcn.0051bd44
mov edx, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call dword [edx + 0x10]
call dword [sym.imp.graphic.dll_public:_static_int___cdecl_CMyBitmap::GetScreenWidth_void_]
push 0xfffffffffffffffe
cdq
pop ecx
idiv ecx
add dword [ebp - 0x24], eax
call dword [sym.imp.graphic.dll_public:_static_int___cdecl_CMyBitmap::GetScreenHeight_void_]
push 0xfffffffffffffffe
cdq
pop ecx
idiv ecx
add dword [ebp - 0x20], eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, byte [ebp - 0x23a]
push 0xffffffffffffff80
pop ebx
and eax, ebx
cmp al, bl
jne 0x4bafc4
cmp dword [0x6902dc], esi
je 0x4bafc4
push 1
push 1
jmp 0x4bafc7
push 1
push esi
push dword [ebp - 0x20]
mov ecx, edi
push dword [ebp - 0x24]
call fcn.004e748c
call fcn.00595ff3
cmp byte [ebp + 8], 0
jne 0x4bb032
call sub.WINMM.dll_timeGetTime
cmp dword [0x6902e0], esi
jne 0x4baff8
mov al, byte [ebp - 0x23c]
and eax, ebx
cmp al, bl
jne 0x4baffc
push 1
jmp 0x4baffd
push esi
mov ecx, edi
call fcn.004e6660
call fcn.0051bd44
mov ecx, eax
call fcn.005187ba
mov al, byte [ebp - 0x23a]
and eax, ebx
cmp al, bl
jne 0x4bb020
push 1
jmp 0x4bb021
push esi
call fcn.0040311a
mov ecx, eax
call fcn.004d6e9a
call sub.WINMM.dll_timeGetTime
call fcn.0051bd44
mov edx, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call dword [edx + 0x14]
and byte [ebp - 0x14c], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x14b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [sym.imp.MSVCRT.dll__daylight]
mov dword [eax], esi
call fcn.0051bd44
mov ecx, eax
call fcn.0051cd77
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
mov ebx, eax
pop ecx
cmp ebx, esi
mov esi, dword [sym.imp.GraphicData.dll_GameDataSetQuery]
mov edi, 0x2741
je 0x4bb4e6
call esi
mov edx, dword [eax]
push str.English
mov ecx, eax
call dword [edx + 0x34]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x4bb13a
mov dword [ebp - 0x40], str.Sunday
mov dword [ebp - 0x3c], str.Monday
mov dword [ebp - 0x38], str.Tuesday
mov dword [ebp - 0x34], str.Wednesday
mov dword [ebp - 0x30], str.Thursday
mov dword [ebp - 0x2c], str.Friday
mov dword [ebp - 0x28], str.Saturday
call fcn.0051bd44
push dword [ebx + 4]
mov ecx, dword [ebx + 0x18]
mov eax, dword [eax + 0x2f88]
push dword [ebx + 8]
push dword [ebp + ecx*4 - 0x40]
mov ecx, dword [ebx + 0x14]
add ecx, 0x76c
push ecx
mov ecx, dword [ebx + 0x10]
push dword [ebx + 0xc]
inc ecx
push ecx
push dword [0x690378]
push eax
lea eax, [ebp - 0x14c]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x691ed0
push str.__s____03d__03d__Ping:__04d__Fps:__02d___02d__02d__d__s__02d:_02d
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x38
jmp 0x4bb518
call esi
mov edx, dword [eax]
push str.French
mov ecx, eax
call dword [edx + 0x34]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x4bb1a0
mov dword [ebp - 0x40], str.Dimanche
mov dword [ebp - 0x3c], str.Lundi
mov dword [ebp - 0x38], str.Mardi
mov dword [ebp - 0x34], str.Mercredi
mov dword [ebp - 0x30], str.Jeudi
mov dword [ebp - 0x2c], str.Vendredi
mov dword [ebp - 0x28], str.Samedi
call fcn.0051bd44
push dword [ebx + 4]
mov ecx, dword [ebx + 0x18]
mov eax, dword [eax + 0x2f88]
push dword [ebx + 8]
push dword [ebp + ecx*4 - 0x40]
jmp 0x4bb204
call esi
mov edx, dword [eax]
push str.Spanish
mov ecx, eax
call dword [edx + 0x34]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x4bb21b
mov dword [ebp - 0x40], str.Domingo
mov dword [ebp - 0x3c], str.Lunes
mov dword [ebp - 0x38], str.Martes
mov dword [ebp - 0x34], 0x67d8f4
mov dword [ebp - 0x30], str.Jueves
mov dword [ebp - 0x2c], str.Viernes
mov dword [ebp - 0x28], 0x67d8dc
call fcn.0051bd44
push dword [ebx + 4]
mov ecx, dword [ebx + 0x18]
mov eax, dword [eax + 0x2f88]
push dword [ebx + 8]
push dword [ebp + ecx*4 - 0x40]
mov ecx, dword [ebx + 0x14]
add ecx, 0x76c
push ecx
mov ecx, dword [ebx + 0x10]
inc ecx
push ecx
push dword [ebx + 0xc]
jmp 0x4bb109
call esi
mov edx, dword [eax]
push str.Arabic
mov ecx, eax
call dword [edx + 0x34]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x4bb4e6
cmp byte [ebp + 8], al
jne 0x4bb5bc
call dword [sym.imp.graphic.dll_public:_static_int___cdecl_CMyBitmap::GetScreenWidth_void_]
sub eax, 6
mov dword [ebp + 8], eax
call esi
mov edx, dword [eax]
push 0x691ed0
push 0x2db5
mov ecx, eax
call dword [edx + 0x3c]
push eax
lea eax, [ebp - 0x14c]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
call esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push 0xff000000
push 0
push 0
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [ebp - 4]
push eax
push edi
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0xffff00
push 2
push dword [ebp + 8]
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringCommon_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
add esp, 0x28
call esi
push 0
push 0
mov dword [ebp - 4], eax
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [ebp - 4]
push eax
push edi
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::CalcuTextExtentCommon_char_const___char_const___int__class_IDataIcon___int_]
add esp, 0x14
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call esi
mov dword [ebp - 4], eax
call esi
push 0
push 0
mov dword [ebp - 8], eax
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [ebp - 4]
push eax
push edi
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
push eax
push 0x2dc4
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::CalcuTextExtentCommon_char_const___char_const___int__class_IDataIcon___int_]
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov dword [ebp - 8], edx
add eax, ecx
sub dword [ebp + 8], eax
call esi
mov dword [ebp - 8], eax
call esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push 0xff000000
push 0
push 0
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [ebp - 8]
push eax
push edi
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
push eax
push 0x2dbf
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
push 0xffff00
push 2
push dword [ebp + 8]
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringCommon_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
add esp, 0x28
call esi
mov dword [ebp - 8], eax
call esi
push 0
push 0
mov dword [ebp - 4], eax
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [ebp - 8]
push eax
push edi
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
push eax
push 0x2dbf
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::CalcuTextExtentCommon_char_const___char_const___int__class_IDataIcon___int_]
sub dword [ebp + 8], eax
add esp, 0x14
mov dword [ebp - 0x18], edx
call esi
mov dword [ebp - 8], eax
call esi
push dword [ebx + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 8]
inc eax
mov edx, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x14]
add eax, 0x76c
add edx, 0x2db8
push eax
mov eax, dword [ecx]
push dword [ebx + 4]
push dword [ebx + 8]
push edx
call dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
push eax
push 0x2db6
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
push 0xff
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x24
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
mov ebx, 0xff000000
push eax
push ebx
push 0
push 0
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [ebp - 8]
push eax
push edi
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0xffff00
push 2
push dword [ebp + 8]
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringCommon_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
add esp, 0x28
call fcn.0051bd44
mov eax, dword [eax + 0x2f88]
mov dword [ebp - 8], eax
call esi
push dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [0x690378]
push 0x2db7
call dword [edx + 0x3c]
push eax
lea eax, [ebp - 0x14c]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0
push 0
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [ebp - 8]
push eax
push edi
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0xffff00
push 2
push dword [ebp + 8]
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringEx_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
add esp, 0x28
jmp 0x4bb527
call fcn.0051bd44
push dword [0x690378]
mov eax, dword [eax + 0x2f88]
push eax
lea eax, [ebp - 0x14c]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x691ed0
push str.__s____03d__03d__ping_d__Fps:_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
cmp byte [ebp + 8], 0
jne 0x4bb5bc
mov ebx, 0xff000000
call esi
mov edx, dword [eax]
push str.Arabic
mov ecx, eax
call dword [edx + 0x34]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x4bb5bc
call esi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0
push 0
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [ebp + 8]
push eax
push edi
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0x7f7f7f
push 3
push 6
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringCommon_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
add esp, 0x28
call esi
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0
push 0
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
push eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x3c]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0xffff00
push 2
push 5
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringCommon_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
add esp, 0x28
call fcn.0051bd44
mov edx, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call dword [edx + 0x34]
push dword [ebp - 0x48]
push dword [ebp - 0x44]
call dword [sym.imp.NDSound.dll__DXProcessSound_8]
mov ecx, 0x691f98
call fcn.00534f5c
pop edi
pop esi
pop ebx
leave
ret