Function at 0x4b93a0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5b2193
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x3c]
xor ebp, ebp
mov dword [esp + 0x30], ebp
cmp dword [eax - 8], 6
jne 0x4b94b1
mov ebx, dword [esp + 0x38]
cmp ebx, ebp
je 0x4b94b1
mov eax, dword [ebx + 0x7c]
cmp eax, ebp
je 0x4b94b1
mov cl, byte [eax + 0x85]
test cl, cl
je 0x4b94b1
mov eax, dword [eax + 0x88]
cmp eax, 1
jl 0x4b94b1
cmp eax, 3
jg 0x4b94b1
mov ecx, dword [0x63ac20]
push str.PNRR
mov ecx, dword [ecx + 8]
call sym.ETermProxy.exe_public:_class_CCSConnection____thiscall_CDBConnCollect::GetConnByName_char__
test eax, eax
je 0x4b94b1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
push 0x40
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebp
mov byte [esp + 0x30], 2
je 0x4b9463
push str.PNRR
mov ecx, eax
call fcn.004dcfd0
mov esi, eax
jmp 0x4b9465
xor esi, esi
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x10]
push edx
push str.SELECT_account__account_group__is_protect_FROM_booking_rec_WHERE_pnr_s_ORDER_BY_rec_time_ASC
push eax
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 3
push 3
push 1
push ecx
mov ecx, esi
call fcn.004dd060
cmp eax, ebp
jne 0x4b94d9
cmp esi, ebp
je 0x4b94a3
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
cmp eax, ebp
mov dword [esp + 0x1c], eax
jne 0x4b9519
cmp esi, ebp
je 0x4b94f4
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ecx + 0x88]
cmp eax, 1
je 0x4b94a3
cmp eax, 2
je 0x4b95fa
cmp eax, 3
jne 0x4b9519
mov byte [edi + 0xd8], 1
jmp 0x4b94a3
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x30], 3
mov dword [esp + 0x18], ebp
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x4b959c
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea edx, [esp + 0x14]
mov ecx, esi
push edx
push str.account
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push str.is_protect
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea ecx, [esp + 0x24]
push ecx
push str.account_group
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov edx, dword [ebx + 0x7c]
mov eax, dword [edx + 0x3c]
push eax
mov eax, dword [esp + 0x18]
push eax
call edi
add esp, 8
test eax, eax
je 0x4b9597
mov ecx, esi
inc ebp
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
cmp ebp, eax
jl 0x4b9541
jmp 0x4b959c
mov byte [esp + 0x38], 1
test esi, esi
je 0x4b95a8
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov al, byte [esp + 0x38]
test al, al
jne 0x4b95d9
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax + 0x88]
dec ecx
je 0x4b9663
dec ecx
je 0x4b9620
dec ecx
jne 0x4b95d9
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4b95ec
mov eax, dword [esp + 0x20]
mov byte [eax + 0xd8], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
jmp 0x4b94a3
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4b94c4
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 0x10c]
cmp ecx, edx
lea ecx, [esp + 0x14]
sete bl
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, bl
jmp 0x4b94c4
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
test eax, eax
sete bl
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, bl
jmp 0x4b94c4