Function at 0x4311f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x577bf0
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x64b2d4
call fcn.0044c390
add esp, 4
test eax, eax
jne 0x431242
mov ecx, esi
call sub.MFC42.DLL_CDialog::OnInitDialog
mov ecx, esi
call sub.MFC42.DLL_CDialog::OnCancel
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x444]
lea edx, [esp + 0x10]
xor ebx, ebx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x28], ebx
push ecx
push str.__Table:_s_initDlg_start
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [0x64b2e0]
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ecx]
push edx
call dword [eax + 0x3a4]
mov dword [esi + 0x3558], ebx
mov dword [esi + 0xec4], ebx
mov eax, dword [0x64b2e0]
cmp dword [eax + 0x824], ebx
jne 0x4312a8
mov ecx, dword [0x6658d4]
push ecx
call fcn.0044c8e0
add esp, 4
mov ecx, dword [esi + 0x444]
mov edx, dword [ecx]
call dword [edx + 0x13c]
mov eax, dword [esi + 0x444]
mov ecx, dword [0x64b2e0]
movsx edi, byte [eax + 0x594]
mov eax, dword [eax + 0x2c]
mov edx, dword [ecx + edi*4 + 0x97c]
push eax
lea eax, [edi + edi*4 + 0x2d]
lea edx, [edx + eax*4]
add eax, edx
lea ecx, [ecx + eax*4]
call sub.MFC42.DLL_CString::operator_3
mov eax, dword [0x64b2e0]
mov edx, dword [eax + edi*4 + 0x97c]
inc edx
mov dword [eax + edi*4 + 0x97c], edx
mov eax, dword [0x64b2e0]
cmp dword [eax + edi*4 + 0x97c], 0x19
jl 0x431327
push 0x10
push str.Error_Message
push str._Too_many_layer_
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, esi
call fcn.00443370
jmp 0x431883
mov eax, dword [eax + 0xadc]
cmp dword [eax - 8], ebx
jne 0x43133e
mov dword [esi + 0x3700], ebx
mov dword [esi + 0x3704], ebx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x924]
mov ecx, dword [esi + 0x444]
mov eax, dword [ecx]
call dword [eax + 0x20c]
mov ecx, esi
call fcn.004405b0
mov ecx, dword [0x64b2e0]
mov eax, dword [esi + 0x444]
push esi
push eax
mov edx, dword [ecx]
call dword [edx + 0xc4]
mov ecx, dword [esi + 0x38f8]
cmp dword [ecx - 8], ebx
jle 0x431388
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x6d8]
mov eax, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x9c4
push 0xa5e0
push eax
call ebp
mov eax, dword [esi + 0x3734]
mov edi, 1
cmp eax, edi
mov dword [esi + 0x37ac], esi
jne 0x4313be
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x6a4]
mov eax, dword [esi + 0x444]
cmp dword [eax + 0xcc], ebx
jne 0x431414
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Table_file_not_open
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x878]
mov ecx, esi
call fcn.00443370
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esi + 0xee0]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x6e0]
cmp dword [esi + 0xf0], ebx
jne 0x43143e
mov ecx, dword [esi + 0x444]
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov dword [esi + 0xf0], eax
push str.CStaff::OnInitDialog__
call fcn.00454e50
mov eax, dword [esi + 0x20]
add esp, 4
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
cmp eax, ebx
jne 0x431465
mov dword [esi + 0x37c0], edi
cmp dword [esi + 0x37c0], ebx
jne 0x4314b2
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x6d4]
mov edx, dword [esi + 0xfc0]
lea edi, [esi + 0xfc0]
push eax
mov ecx, edi
mov dword [esi + 0xf7c], eax
call dword [edx + 0x1c]
push 0x107
mov ecx, edi
call fcn.0055a350
cmp edi, ebx
jne 0x4314a4
xor edi, edi
jmp 0x4314a7
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x20]
push edi
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x918]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x294]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movsx ecx, ax
push 0x11
mov dword [esi + 0x8c4], ecx
call edi
movsx edx, ax
push 0x12
mov dword [esi + 0x8c8], edx
call edi
mov edx, dword [esi]
mov ecx, esi
movsx eax, ax
mov dword [esi + 0x8cc], eax
call dword [edx + 0x7b8]
mov ecx, dword [esi + 0x444]
mov eax, dword [ecx + 0x24]
cmp dword [eax + 4], 0x64
jge 0x431523
cmp dword [esi + 0xec0], ebx
jne 0x431523
mov edx, dword [ecx]
call dword [edx + 0x100]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x7e0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x828]
cmp dword [esi + 0xf70], ebx
je 0x43156e
mov ecx, dword [0x64b2e0]
cmp dword [ecx + 0x30c], 9
jge 0x43156e
mov edx, dword [ecx]
call dword [edx + 0x288]
test eax, eax
jne 0x43157a
call fcn.0049c470
cmp eax, 0x63
jge 0x43157a
push ebx
lea ecx, [esi + 0x35d0]
call sub.MFC42.DLL_CWnd::ShowWindow
mov eax, dword [esi + 0x444]
push ebx
push ebx
mov ecx, dword [eax + 0x174]
push ecx
call fcn.0044eab0
add esp, 0xc
test eax, eax
je 0x4315b3
push 0xbc6
push 0x2716
call fcn.004c3050
add esp, 8
mov ecx, esi
call fcn.00443370
jmp 0x431883
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x804]
cmp dword [esi + 0xf0], 1
jne 0x4316ba
mov eax, dword [esi + 0x444]
mov ecx, dword [eax + 0x12c]
mov eax, dword [eax + 0x128]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 4]
push edx
push ecx
call fcn.0044dab0
mov eax, dword [esi + 0xf7c]
mov edi, 0x102
add esp, 8
cmp eax, edi
jne 0x431605
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x970]
mov eax, dword [esi + 0x444]
mov ecx, dword [eax + 0x128]
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0xf7c]
mov byte [esp + 0x28], 1
cmp eax, edi
je 0x431679
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x218]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x8d0]
cmp eax, ebx
jne 0x431679
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esi + 0x444]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [ecx + 0x128]
mov eax, dword [edx + 4]
push eax
call fcn.0044dab0
mov ecx, dword [esi + 0x20]
add esp, 8
push ebx
push 0x1f4
push 0x25f1
push ecx
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
jmp 0x431883
mov edx, dword [esi + 0x444]
mov eax, dword [edx + 0x47c]
cmp dword [eax - 8], ebx
je 0x4316e5
mov edx, dword [esi]
push 1
push 1
mov ecx, esi
call dword [edx + 0x81c]
cmp dword [esi + 0xec4], ebx
jne 0x431883
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
cmp dword [esi + 0xf0], ebx
jge 0x431712
push 0xbc7
push 0x2716
call fcn.004c3050
add esp, 8
mov ecx, esi
call fcn.00443370
jmp 0x431883
mov eax, dword [0x64b2e0]
cmp dword [eax + 0x9a8], ebx
jle 0x43174f
mov ecx, dword [esi + 0x20]
mov dword [esi + 0xf74], ebx
mov edx, dword [0x64b2e0]
push ecx
push ecx
add edx, 0x348
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_4
push 1
lea ecx, [esi + 0xf9c]
call fcn.005573f0
call fcn.0049c470
cmp eax, 0x63
jl 0x431883
mov eax, dword [esi + 0x20]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
mov edi, eax
cmp edi, ebx
je 0x431870
mov ecx, dword [edi + 4]
mov ebp, dword [sym.imp.USER32.dll_AppendMenuA]
push ebx
push ebx
push 0x800
push ecx
call ebp
mov edx, dword [edi + 4]
push str.Goto_Record_No
push 0xa5ae
push ebx
push edx
call ebp
mov eax, dword [esi + 0x444]
mov cl, byte [eax + 0x545]
test cl, cl
je 0x431850
mov eax, dword [esi + 0x8a0]
test eax, eax
jl 0x4317ca
mov ecx, eax
shl ecx, 5
add ecx, eax
mov ebx, dword [ecx*4 + 0x644c20]
jmp 0x43183d
cmp eax, 0xfffffffe
jne 0x43183d
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x444]
lea ecx, [esp + 0x18]
mov bl, 2
mov eax, dword [edx + 0x470]
mov byte [esp + 0x28], bl
push eax
push str.select_NewButton_from_TicketNo_where_recordset_s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], 0
push 1
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x34], bl
call fcn.0044b7d0
add esp, 0xc
lea ecx, [esp + 0x18]
mov ebx, eax
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x444]
mov eax, dword [eax + 0x24]
mov cl, byte [eax + 0x1f]
or cl, bl
xor ebx, ebx
mov byte [eax + 0x1f], cl
mov ecx, dword [esi + 0x444]
mov edx, dword [ecx + 0x24]
test byte [edx + 0x1f], 0x11
je 0x431870
mov eax, dword [edi + 4]
push str.Reset_Ticket_No
push 0xa5b4
push ebx
push eax
call ebp
mov ecx, dword [0x64b2e0]
push str.__initDlg_end
mov edx, dword [ecx]
call dword [edx + 0x3a4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret