Function at 0x4b8e00
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5b1f76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov ebp, dword [esp + 0x5c]
xor esi, esi
cmp ebp, esi
mov dword [esp + 0x50], esi
je 0x4b8f31
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x19
jb 0x4b8f31
mov eax, dword [esp + 0x58]
cmp eax, esi
je 0x4b8f31
cmp dword [eax + 0x7c], esi
je 0x4b8f31
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
push ebp
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x20]
push 6
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString_1
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
xor bl, bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x50], 3
je 0x4b8ee4
mov al, byte [esi + ebp]
cmp al, 0x2f
jne 0x4b8ec5
test bl, bl
jne 0x4b8ee4
mov bl, 1
jmp 0x4b8ed3
test bl, bl
je 0x4b8ed3
push eax
lea ecx, [esp + 0x18]
call fcn.00596ca0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x4b8eb6
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
cmp eax, 0xd
je 0x4b8f59
cmp eax, 0xe
je 0x4b8f59
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 0xc
xor ebp, ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString_1
push ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 7
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0xc]
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push ebp
lea ecx, [esp + 0x14]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
push edi
add eax, 0x76c
push esi
push eax
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push str.SELECT_TOP_1__FROM_etdz_rec_WHERE_pnr___s_AND_rec_time____d__d__d_00:00:00
push ecx
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x1c
mov dword [esp + 0x30], eax
cmp eax, ebp
mov byte [esp + 0x50], 8
je 0x4b900a
push str.PNRR
mov ecx, eax
call fcn.004dd020
mov esi, eax
jmp 0x4b900c
xor esi, esi
mov edx, dword [esp + 0x18]
push 3
push 3
push 1
push edx
mov ecx, esi
mov byte [esp + 0x60], 7
call fcn.004dd0b0
cmp eax, ebp
jne 0x4b9070
cmp esi, ebp
je 0x4b9033
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::CString
jmp 0x4b8f07
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x4b90ae
lea ecx, [esp + 0x1c]
push ecx
push str.account
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea edx, [esp + 0x3c]
mov ecx, esi
push edx
push str.account_group
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push str.group_name
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
cmp esi, ebp
je 0x4b90ba
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov edi, dword [esp + 0x58]
mov eax, dword [edi + 0x7c]
add eax, 0x3c
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4b90f2
mov ecx, dword [edi + 0x7c]
xor edx, edx
mov al, byte [ecx + 0x80]
test al, al
setne dl
mov dword [esp + 0x34], edx
jmp 0x4b91a0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push eax
mov bl, 9
push str.SELECT_fund_enable__bill_mode_FROM__client_config__WHERE_account___s
push ecx
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x44], eax
cmp eax, ebp
mov byte [esp + 0x50], 0xa
je 0x4b913c
push str.PNRR
mov ecx, eax
call fcn.004dd020
mov esi, eax
jmp 0x4b913e
xor esi, esi
mov edx, dword [esp + 0x30]
push 3
push 3
push 1
push edx
mov ecx, esi
mov byte [esp + 0x60], bl
call fcn.004dd0b0
cmp eax, 1
jne 0x4b9186
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x4b9186
lea eax, [esp + 0x34]
mov ecx, esi
push eax
push str.fund_enable
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea ecx, [esp + 0x28]
push ecx
push str.bill_mode
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
cmp esi, ebp
je 0x4b9192
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::CString
cmp dword [esp + 0x28], ebp
jne 0x4b91b3
mov eax, dword [edi + 0x7c]
mov ecx, dword [eax + 0x174]
mov dword [esp + 0x28], ecx
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax]
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 4]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 8]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x3c]
push 0x613fb4
push edx
mov edx, dword [esp + 0x38]
mov ecx, dword [ecx + 0x7c]
push edx
mov edx, dword [esp + 0x34]
push 0
push edx
mov edx, dword [esp + 0x38]
mov eax, dword [eax + 0x14]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x60]
push edx
mov edx, dword [ecx + 0x3c]
push edx
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10c]
push edx
mov edx, dword [esp + 0x60]
push ecx
push edi
push ebp
push ebx
add eax, 0x76c
push edx
push esi
push eax
lea eax, [esp + 0x64]
push str.INSERT_INTO_etdz_rec_rec_time__account_group__group_name__account__account_group_bak__group_name_bak__account_bak__pnr__price__bill_mode__fund_mode__bill_retry_count__opration__remark__tickets__VALUES__02d__02d__02d__02d:_02d:_02d___d___s___s___d___s___s___s___d___d___d__0___s___s___s_
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x6c]
mov eax, dword [0x63ac10]
add esp, 0x54
lea edx, [esp + 0x5c]
push ecx
mov ecx, dword [eax + 8]
push str.PNRR
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_CDBConnCollect::Execute_char___char_const__
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4b9299
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x40]
push str.vt:_s__s
push ecx
mov byte [esp + 0x60], 0xb
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x38]
push 0
call fcn.0041a990
mov edx, dword [esp + 0x5c]
push eax
push 0
mov ecx, dword [edx + 0x7c]
add ecx, 0x3c
call fcn.0041a990
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x63ac10]
push str.etdz
mov ecx, dword [eax + 0x90]
mov edx, dword [eax + 0xc0]
push ecx
push edx
call fcn.004ec730
add esp, 0x1c
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
jmp 0x4b8f44