Function at 0x4cadd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x7c]
mov cl, byte [eax + 0x545]
test cl, cl
je 0x4cae7c
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x64b2e0]
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0x2d4]
test eax, eax
je 0x4cae6d
mov edx, dword [esi + 0x7c]
lea ecx, [ebp - 0x18]
mov eax, dword [edx + 0x2c]
push eax
push str.Select__BrowseZ__from__TicketNo__where__RecordSet____s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
mov eax, esp
mov dword [ebp - 0x1c], esp
mov dword [eax], 0
push 1
push ecx
lea edx, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
mov byte [ebp - 4], 0
call fcn.0044b7d0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
push 0x91
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [esi + 0x7c]
movsx eax, ax
add ecx, 0x444
mov dword [esi + 0x110], eax
push ecx
lea ecx, [esi + 0x100]
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esi + 0x7c]
mov edx, dword [ecx]
call dword [edx + 0x13c]
mov eax, dword [esi + 0x7c]
lea ecx, [esi + 0xfc]
add eax, 0x448
push eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esi + 0x7c]
mov eax, dword [ecx + 0x7c]
test eax, eax
mov dword [esi + 0x120], eax
jne 0x4caee3
mov edx, dword [ecx + 0x28]
mov al, byte [edx + 0x3f]
and eax, 1
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x120]
test eax, eax
jne 0x4caef2
mov eax, 1
push 0
push str.JPGKEY
push ecx
mov dword [esi + 0x13c], eax
call fcn.0044db80
mov dword [esi + 0x350], eax
mov eax, dword [esi + 0x7c]
add esp, 0xc
mov cl, byte [eax + 0x4ff]
test cl, cl
je 0x4caf2b
cmp dword [eax + 0x568], 2
jne 0x4caf2b
mov byte [eax + 0x4ff], 0
mov ecx, dword [esi + 0x7c]
lea edi, [esi + 0x3ac]
mov edx, dword [ecx + 0x470]
push edx
push str.BROWSE__s
push edi
call sub.MFC42.DLL_CString::Format
mov edi, dword [edi]
push edi
call fcn.0049f2c0
add esp, 0x10
mov ecx, esi
mov dword [esi + 0xb0], eax
call sub.MFC42.DLL_CDialog::OnInitDialog
push 0
push 0
push 0x40000
mov ecx, esi
call sub.MFC42.DLL_CWnd::ModifyStyle
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax + 0x584]
test ecx, ecx
je 0x4cafb0
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [esi + 0x7c]
mov eax, dword [ecx + 0x584]
and eax, 0xffff
push eax
push 0xe
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [esi + 0x20]
push eax
push 1
push 0x80
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xac09
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
test eax, eax
je 0x4caff8
mov dword [esi + 0xc4], 1
mov eax, dword [eax + 0x20]
lea edi, [esi + 0xe0]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
mov ecx, esi
call sub.MFC42.DLL_CWnd::ScreenToClient
push 0
push 0xac09
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov dword [ebp - 4], 2
push 0
lea ecx, [esi + 0x3fc]
mov byte [ebp - 4], 3
call fcn.00554560
mov dword [esi + 0x150], eax
jmp 0x4cb02f
or ebx, 0xffffffff
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AfxTryCleanup
mov dword [0x63e530], esi
mov eax, dword [esi + 0x98]
cmp eax, 1
jne 0x4cb054
push 3
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
mov edx, dword [esi + 0x7c]
mov eax, dword [edx + 0xcc]
test eax, eax
jne 0x4cb07f
push 0x4b1
push str.Table_file_not_open
call fcn.004c31a0
add esp, 8
mov ecx, esi
call sub.MFC42.DLL_CDialog::OnCancel
jmp 0x4cb3db
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x128]
mov edx, dword [esi + 0x7c]
mov al, byte [edx + 0x549]
test al, al
jne 0x4cb167
mov al, byte [edx + 0x54a]
test al, al
jne 0x4cb167
mov edi, dword [edx + 0x2c]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4cb167
mov ecx, dword [edx + 0x80]
mov eax, dword [edx + 0x7c]
cmp ecx, eax
je 0x4cb0ce
mov byte [edx + 0x547], 1
mov ecx, dword [esi + 0x7c]
xor eax, eax
mov al, byte [ecx + 0x547]
test eax, eax
jne 0x4cb0f5
mov edx, dword [ecx]
call dword [edx + 0x144]
test eax, eax
jne 0x4cb0f5
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax + 0x24]
cmp dword [ecx + 4], 0x32
jge 0x4cb167
mov eax, dword [esi + 0x7c]
mov edx, dword [eax + 0x448]
mov ecx, dword [edx - 8]
test ecx, ecx
je 0x4cb119
mov byte [eax + 0x550], 1
mov ecx, dword [esi + 0x7c]
mov eax, dword [ecx]
call dword [eax + 0x100]
jmp 0x4cb167
mov ecx, dword [esi + 0x120]
mov edx, dword [eax + 0x88]
cmp ecx, edx
push 0
jne 0x4cb14a
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x619640
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x7c]
mov edx, dword [ecx]
call dword [edx + 0x114]
jmp 0x4cb167
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x619640
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x7c]
mov eax, dword [ecx]
call dword [eax + 0x114]
mov eax, dword [esi + 0x7c]
mov cl, byte [eax + 0x4ff]
test cl, cl
je 0x4cb1c6
mov ecx, dword [0x64b2e0]
push 0
push 1
push eax
mov edx, dword [ecx]
call dword [edx + 0x2d0]
mov eax, dword [esi + 0x7c]
push 1
push eax
call fcn.0044e4a0
add esp, 8
test eax, eax
je 0x4cb1ad
mov ecx, dword [0x64b2e0]
mov eax, dword [esi + 0x7c]
push 1
push eax
mov edx, dword [ecx]
call dword [edx + 0x2cc]
mov ecx, dword [esi + 0x7c]
push 0x619640
mov edx, dword [ecx]
call dword [edx + 0x228]
mov ecx, dword [esi + 0x7c]
mov dword [ecx + 0xd0], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x134]
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x84], eax
call dword [edx + 0x150]
test eax, eax
jne 0x4cb1f8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + pe_nt_image_headers32]
mov eax, dword [esi + 0x3a8]
mov ecx, dword [esi + 0x120]
test eax, eax
mov dword [esi + 0x330], ecx
je 0x4cb268
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
lea edx, [ebp - 0x18]
mov ecx, esi
push edx
mov dword [ebp - 4], 5
call sub.MFC42.DLL_CWnd::GetWindowTextA
lea edi, [esi + 0x360]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004a0fe0
push 0
push 0x40b
push esi
mov ecx, edi
call fcn.004a0350
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x4cb281
mov edx, dword [esi]
push 1
push 1
push 0
push 0xc
mov ecx, esi
call dword [edx + 0x144]
mov eax, dword [esi + 0x7c]
mov edx, dword [esi + 0x20]
xor ecx, ecx
push 0
mov cl, byte [eax + 0x4fe]
push edx
mov dword [esi + 0xd0], ecx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
mov edi, eax
test edi, edi
je 0x4cb3db
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuA]
push 0
push 0
push 0x800
push eax
call ebx
mov eax, dword [esi + 0xd0]
push str.Search_similar
test eax, eax
push 0x1b59
je 0x4cb2df
mov ecx, dword [edi + 4]
push 8
push ecx
jmp 0x4cb2e5
mov edx, dword [edi + 4]
push 0
push edx
call ebx
call fcn.0049c470
cmp eax, 0x63
jge 0x4cb304
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x7c]
mov cl, byte [eax + 0x545]
test cl, cl
je 0x4cb3db
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0x7c]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 6
mov edx, dword [ecx + 0x470]
push edx
push str.browse__s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0049f2c0
add esp, 0x10
test eax, eax
jne 0x4cb36b
mov edx, dword [edi + 4]
push eax
push eax
push 0x800
push edx
call ebx
mov eax, dword [edi + 4]
push str.Create_browse_store_procedure
push 0x86a4
push 0
push eax
call ebx
mov ecx, dword [esi + 0x7c]
lea eax, [ebp - 0x14]
mov edx, dword [ecx + 0x470]
push edx
push str.fc__s.rpt
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004924b0
add esp, 0x10
test eax, eax
je 0x4cb3cc
mov edx, dword [esi + 0x7c]
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x470]
push eax
push str.fc__s
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x14]
push edx
call fcn.0049ecc0
add esp, 0x10
test eax, eax
jne 0x4cb3cc
push str.Create_audit_trail
push 0x86a5
push eax
mov eax, dword [edi + 4]
push eax
call ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret