Function at 0x4a2aa0
Capabilities:
Get process heap flags
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5b0396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor bl, bl
mov esi, ecx
push 0xc
mov byte [esp + 0x17], bl
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x30], ebp
je 0x4a2ae5
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CAdoConnection::constructor_void_
jmp 0x4a2ae7
xor eax, eax
or edi, 0xffffffff
mov dword [esi + 0x14], eax
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x63547c
mov dword [esp + 0x3c], edi
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x3c], 1
mov ecx, esp
mov dword [esp + 0x30], esp
push str..dbibsp.mdb
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x3c], edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoConnection::ConnectAccess_class_CString__class_CString__long_int_
cmp eax, ebp
je 0x4a2c39
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
push str.SELECT__FROM__sys_param__WHERE_item_nameflow_task_day
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov ebx, 2
push 0x38
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x30], 3
je 0x4a2b77
mov ecx, dword [esi + 0x14]
push ecx
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CAdoRecordSet::constructor_class_CAdoConnection__
mov edi, eax
jmp 0x4a2b79
xor edi, edi
mov edx, dword [esp + 0x14]
push 3
push 3
push 1
push edx
mov ecx, edi
mov byte [esp + 0x40], bl
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::Open_char_const___long_int__enum_ADODB::CursorTypeEnum__enum_ADODB::LockTypeEnum_
cmp eax, 1
jne 0x4a2bce
mov ecx, edi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x4a2bce
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push str.item_value
mov dword [esp + 0x20], ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
push ebp
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x4a2bce
mov byte [esp + 0x13], 1
cmp edi, ebp
je 0x4a2bda
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov al, byte [esp + 0x13]
test al, al
je 0x4a2c24
push ebp
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push eax
lea eax, [esp + 0x18]
push str.UPDATE__sys_param__SET_item_value_d_WHERE_item_nameflow_task_day
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x18]
push 1
push ecx
mov ecx, dword [esi + 0x14]
push edx
call sym.ETermProxy.exe_public:_class__com_ptr_t_class__com_IIID_struct_ADODB::_Recordset__struct___s_GUID__GUID_00000556_0000_0010_8000_00aa006d2ea4_____thiscall_CAdoConnection::Execute_char_const___long_int_
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4a2c24
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov bl, byte [esp + 0x13]
mov ecx, dword [esi + 0x14]
cmp ecx, ebp
je 0x4a2c46
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x14], ebp
pop edi
pop esi
mov al, bl
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret