Function at 0x4536c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463385
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
mov dword [ebp - 0xe8], ecx
mov eax, dword [0x47cd7c]
and eax, 1
jne 0x453722
mov ecx, dword [0x47cd7c]
or ecx, 1
mov dword [0x47cd7c], ecx
mov dword [ebp - 4], 0
mov ecx, 0x47cd68
call fcn.00454030
push 0x463880
call fcn.00458f8c
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x47cd68
mov ecx, dword [0x47cd40]
call fcn.00403cd0
mov ecx, 0x47cd68
call fcn.00454080
cmp eax, 1
jge 0x453746
jmp 0x453caf
lea edx, [ebp - 0x28]
push edx
call fcn.00435540
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.0043eb20
push eax
lea ecx, [ebp - 0x28]
call fcn.0043eae0
push eax
lea ecx, [ebp - 0x28]
call fcn.0043eaa0
push eax
lea ecx, [ebp - 0x18]
call fcn.00435600
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], 0
jmp 0x45379a
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, 0x47cd68
call fcn.00454080
cmp dword [ebp - 0x2c], eax
jge 0x453c9f
cmp dword [0x47cd60], 0
jne 0x453c9f
lea ecx, [ebp - 0x64]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, 0x47cd68
call fcn.004540a0
fld qword [eax + 0xa0]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0x48]
call fcn.00435590
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, 0x47cd68
call fcn.004540a0
fld qword [eax + 0xa8]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0x38]
call fcn.00435590
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, 0x47cd68
call fcn.004540a0
fld qword [eax + 0xb0]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0x70]
call fcn.00435590
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004358a0
movzx edx, al
test edx, edx
je 0x453852
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0x3c
lea ecx, [ebp - 0x7c]
call fcn.00435400
sub esp, 0xc
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004359a0
mov ecx, eax
call fcn.004358a0
movzx edx, al
test edx, edx
je 0x4538e0
push 0
push 0
push 0
push 0x3c
lea ecx, [ebp - 0x94]
call fcn.00435400
sub esp, 0xc
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00435a00
mov edx, dword [eax]
mov dword [ebp - 0x48], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x44], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x38]
call fcn.004358a0
movzx ecx, al
test ecx, ecx
je 0x453938
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, 0x47cd68
call fcn.004540a0
add eax, 4
push eax
push 0x472a50
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [0x47cd40]
call fcn.00402790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x453791
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [ebp - 4], 3
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, 0x47cd68
call fcn.004540a0
push eax
mov ecx, dword [0x47cd40]
call fcn.00404950
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.0043eb20
push eax
lea ecx, [ebp - 0x48]
call fcn.0043eae0
push eax
lea ecx, [ebp - 0x48]
call fcn.0043eaa0
push eax
lea ecx, [ebp - 0x60]
call fcn.00435600
push 0
push 0
push 0
lea ecx, [ebp - 0x38]
call fcn.0043eb20
push eax
lea ecx, [ebp - 0x38]
call fcn.0043eae0
push eax
lea ecx, [ebp - 0x38]
call fcn.0043eaa0
push eax
lea ecx, [ebp - 0x54]
call fcn.00435600
jmp 0x4539e7
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0xac]
call fcn.00435400
sub esp, 0xc
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x60]
call fcn.00454360
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00454310
movzx edx, al
test edx, edx
je 0x453c4d
cmp dword [0x47cd60], 0
jne 0x453c4d
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x60]
call fcn.00435830
movzx ecx, al
test ecx, ecx
je 0x453a31
push str.NDHistoryLogBak
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
jmp 0x453b07
lea edx, [ebp - 0x60]
push edx
mov ecx, dword [ebp - 0xe8]
call fcn.00453cc0
test eax, eax
jne 0x453af9
push 0x472aa4
lea eax, [ebp - 0xc8]
push eax
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.00435400
sub esp, 0xc
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0xc4]
push ecx
lea ecx, [ebp - 0x60]
call fcn.004359a0
mov ecx, eax
call fcn.00435b50
mov dword [ebp - 0xec], eax
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, 0x47cd68
call fcn.004540a0
add eax, 4
push eax
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ecx]
push edx
push 0x472ab8
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [0x47cd40]
call fcn.00402790
jmp 0x4539b7
push str.QueryDB
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, 0x47cd68
call fcn.004540a0
add eax, 4
push eax
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, 0x47cd68
call fcn.004540a0
mov eax, dword [eax + 0xbc]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, 0x47cd68
call fcn.004540a0
mov edx, dword [eax + 0xb8]
push edx
push str.INSERT_INTO_tSpecCompanyLog_nCenterFlag__sTransPolicyID_sUserID__sUserName__sIDCode__sIDNo__sCardOutNum__sComputerIP__sComputerNo__sComputerMac__sComputerName__sComputerPort__iVlanId__sRemoteIP__sRemoteMac__sRemotePort__iPacketLength__bTransProType__iOrientation__dtVisitTime__sServiceType__sKeyWord1__sKeyWord2__sKeyWord3__dtMemoTime__sMemoChar__bHasSent__n_t_t_t_____________SELECT___top__d____d___.24s_sUserID__sUserName__sIDCode__sIDNo__sCardOutNum__sComputerIP__sComputerNo__sComputerMac__sComputerName__sComputerPort__iVlanId__sRemoteIP__sRemoteMac__sRemotePort__iPacketLength__bTransProType__iOrientation__dtVisitTime__sServiceType__sKeyWord1__sKeyWord2__sKeyWord3__dtMemoTime__sMemoChar__bHasSent__n_t_t_t_____________FROM_______s.dbo.tHistoryLog__n_t_t_t_t_t_t___s__n_ORDER_BY__lLogID
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x1c
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [0x47cd40]
call fcn.00402790
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x60]
call fcn.004478f0
movzx eax, al
test eax, eax
je 0x453b9c
push 0x472e30
lea ecx, [ebp - 0x64]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [0x47cd40]
call fcn.00402790
push str._Y__m__d__H:_M:_S
lea edx, [ebp - 0xe4]
push edx
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0xd4]
call fcn.00435400
sub esp, 0xc
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0x60]
call fcn.004359a0
mov ecx, eax
call fcn.00435b50
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, 0x47cd68
call fcn.004540a0
add eax, 4
push eax
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ecx]
push edx
push str.UPDATE_tSpecTransPolicy_SET_iStatus_1__dtCurrentTime_s__WHERE_sTransPolicyID_.24s
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [0x47cd40]
call fcn.00402790
jmp 0x4539b7
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, 0x47cd68
call fcn.004540a0
add eax, 4
push eax
push str.UPDATE_tSpecTransPolicy_SET_iStatus2_WHERE_sTransPolicyID_.24s
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [0x47cd40]
call fcn.00402790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x453791
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret