Function at 0x40f100
Capabilities:
Contain obfuscated stackstrings
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x48f76a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esp + 0x34]
push str._d__B__Y_0:0:0
push eax
lea ecx, [esi + 0x1cc]
call sub.MFC42.DLL_COleDateTime::Format
lea ecx, [esp + 0x3c]
push str._d__B__Y_23:59:59
xor ebp, ebp
push ecx
lea ecx, [esi + 0x1d8]
mov dword [esp + 0x29c], ebp
call sub.MFC42.DLL_COleDateTime::Format
mov edx, dword [0x4f1a84]
lea eax, [esp + 0x80]
push edx
push 0x4ad1d8
push eax
mov byte [esp + 0x2a0], 1
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x48]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x10], eax
push ebp
push ebp
push 0xffffffffffffffff
push eax
push ebp
push ebp
call edi
mov ebx, eax
dec ebx
push ebx
push ebp
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40f1b0
mov ecx, dword [esp + 0x10]
push ebx
push eax
push 0xffffffffffffffff
push ecx
push ebp
push ebp
call edi
mov eax, dword [esp + 0x34]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
mov dword [esp + 0x28], eax
call edi
mov ebx, eax
dec ebx
push ebx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
mov dword [esp + 0x18], eax
je 0x40f1e8
mov edx, dword [esp + 0x10]
push ebx
push eax
push 0xffffffffffffffff
push edx
push 0
push 0
call edi
push 0
push 0
lea eax, [esp + 0x88]
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
dec eax
push eax
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x40f226
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x80]
push ecx
push ebx
push 0xffffffffffffffff
push edx
push 0
push 0
call edi
mov eax, dword [esi + 0x1ec]
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
push edx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
jne 0x40f60c
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x4c]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0xb0]
push 0
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x1ec]
mov eax, dword [ecx]
push eax
mov edx, dword [eax]
call dword [edx + 0xec]
cmp eax, 1
jne 0x40f5f5
push 0x4f11f4
push ebp
lea ecx, [esi + 0x90]
call fcn.004278d0
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x4c]
lea edx, [esp + 0x44]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x1ec]
push edx
push 0
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf8]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x294], 2
push ecx
call ebx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push edx
push 0x4ad1d4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
push 0
push ebp
lea ecx, [esi + 0x90]
call fcn.00427900
mov edx, dword [esi + 0x1ec]
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [edx]
lea edx, [esp + 0x14]
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf8]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x294], 3
push ecx
call ebx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push edx
push 0x4ad1d4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
push 1
push ebp
lea ecx, [esi + 0x90]
call fcn.00427900
mov edx, dword [esi + 0x1ec]
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [edx]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push 2
push eax
call dword [ecx + 0xf8]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x294], 4
push ecx
call ebx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push edx
push 0x4ad1d4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x4c]
lea edi, [esi + 0x90]
push ecx
push 2
push ebp
mov ecx, edi
call fcn.00427900
mov edx, dword [esi + 0x1ec]
mov eax, dword [edx]
lea edx, [esp + 0x14]
push edx
push 3
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf8]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [eax]
mov ecx, edi
push eax
push 3
push ebp
mov byte [esp + 0x2a0], 5
call fcn.00427900
lea ecx, [esp + 0x38]
mov byte [esp + 0x294], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov edx, dword [esi + 0x1ec]
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [edx]
lea edx, [esp + 0x48]
push edx
push 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf8]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x2c]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x294], 6
push ecx
call ebx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x4c]
push edx
push 0x4ad1d4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x4c]
lea edi, [esi + 0x90]
push ecx
push 4
push ebp
mov ecx, edi
call fcn.00427900
mov edx, dword [esi + 0x1ec]
mov eax, dword [edx]
lea edx, [esp + 0x24]
push edx
push 5
mov ecx, dword [eax]
push eax
call dword [ecx + 0xfc]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x294], 7
push ecx
call ebx
mov edx, dword [esp + 0x30]
mov ecx, edi
push edx
push 5
push ebp
call fcn.00427900
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x4c]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x1ec]
push edx
push 6
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf8]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x294], 8
push ecx
call ebx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x4c]
push edx
push 0x4ad1d4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
push 6
push ebp
lea ecx, [esi + 0x90]
call fcn.00427900
mov edx, dword [esi + 0x1ec]
mov eax, dword [edx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe8]
lea ecx, [esp + 0x20]
inc ebp
mov byte [esp + 0x294], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x294], 6
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x294], 4
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x294], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x294], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x1ec]
mov eax, dword [edx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xec]
cmp eax, 1
je 0x40f28c
mov edx, dword [esi + 0x1ec]
mov eax, dword [edx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x94]
push str.SELECT_Machine_ID___User_ID__SiteCode__EventTime__EventName_FROM_T_EventLog_T_EventType_WHERE___User_ID__OR_T_EventLog.Event_ID16__AND_T_EventLog.Event_ID__T_EventType.Event_ID_AND_EventTime____s_AND_EventTime____s_ORDER_BY_EventTime
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x8c]
push 0
push 0
push 0xffffffffffffffff
push edx
push 0
push 0
call edi
dec eax
push eax
push 0
mov dword [esp + 0x40], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40f670
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x8c]
push ecx
push eax
push 0xffffffffffffffff
push edx
push 0
push 0
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1ec]
push eax
mov ecx, dword [ecx]
push ecx
mov edx, dword [ecx]
call dword [edx + 0xe0]
test eax, eax
jne 0x40f89d
mov eax, dword [esi + 0x1ec]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xec]
cmp eax, 1
jne 0x40f88c
lea edi, [esi + 0x90]
push 0x4f11f4
push ebp
mov ecx, edi
call fcn.004278d0
mov edx, dword [esi + 0x1ec]
mov eax, dword [edx]
lea edx, [esp + 0x10]
push edx
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf8]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x294], 9
push ecx
call ebx
mov edx, dword [esp + 0x24]
mov ecx, edi
push edx
push 0
push ebp
call fcn.00427900
mov eax, dword [esi + 0x1ec]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf8]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x294], 0xa
push ecx
call ebx
mov edx, dword [esp + 0x28]
mov ecx, edi
push edx
push 3
push ebp
call fcn.00427900
mov eax, dword [esi + 0x1ec]
lea edx, [esp + 0x14]
push edx
push 2
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf8]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x294], 0xb
push ecx
call ebx
mov edx, dword [esp + 0x20]
mov ecx, edi
push edx
push 4
push ebp
call fcn.00427900
mov eax, dword [esi + 0x1ec]
lea edx, [esp + 0x1c]
push edx
push 3
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xfc]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x294], 0xc
push ecx
call ebx
mov edx, dword [esp + 0x30]
mov ecx, edi
push edx
push 5
push ebp
call fcn.00427900
mov eax, dword [esi + 0x1ec]
lea edx, [esp + 0x18]
push edx
push 4
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf8]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x294], 0xd
push ecx
call ebx
mov edx, dword [esp + 0x2c]
mov ecx, edi
push edx
push 6
push ebp
call fcn.00427900
mov eax, dword [esi + 0x1ec]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe8]
lea ecx, [esp + 0x2c]
inc ebp
mov byte [esp + 0x294], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x294], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x294], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x294], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x294], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x1ec]
mov eax, dword [edx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xec]
cmp eax, 1
je 0x40f6aa
mov edx, dword [esi + 0x1ec]
mov eax, dword [edx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov edx, dword [esi + 0x1e4]
push 0xffffffffffffffff
push 0
push 0
push 5
lea ecx, [esi + 0x90]
mov byte [edx], 1
call fcn.00427bb0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x294], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x294], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x288
ret