Function at 0x4b9370
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5b6b93
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 0x4b9481
mov ebx, dword [esp + 0x38]
cmp ebx, ebp
je 0x4b9481
mov eax, dword [ebx + 0x7c]
cmp eax, ebp
je 0x4b9481
mov cl, byte [eax + 0x85]
test cl, cl
je 0x4b9481
mov eax, dword [eax + 0x88]
cmp eax, 1
jl 0x4b9481
cmp eax, 3
jg 0x4b9481
mov ecx, dword [0x641030]
push str.PNRR
mov ecx, dword [ecx + 8]
call sym.ETermProxy.exe_public:_class_CCSConnection____thiscall_CDBConnCollect::GetConnByName_char__
test eax, eax
je 0x4b9481
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 0x4b9433
push str.PNRR
mov ecx, eax
call fcn.004ddd00
mov esi, eax
jmp 0x4b9435
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.004ddd90
cmp eax, ebp
jne 0x4b94a9
cmp esi, ebp
je 0x4b9473
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 0x4b94e9
cmp esi, ebp
je 0x4b94c4
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 0x4b9473
cmp eax, 2
je 0x4b95ca
cmp eax, 3
jne 0x4b94e9
mov byte [edi + 0xd8], 1
jmp 0x4b9473
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 0x4b956c
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 0x4b9567
mov ecx, esi
inc ebp
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
cmp ebp, eax
jl 0x4b9511
jmp 0x4b956c
mov byte [esp + 0x38], 1
test esi, esi
je 0x4b9578
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov al, byte [esp + 0x38]
test al, al
jne 0x4b95a9
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax + 0x88]
dec ecx
je 0x4b9633
dec ecx
je 0x4b95f0
dec ecx
jne 0x4b95a9
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4b95bc
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 0x4b9473
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 0x4b9494
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 0x4b9494
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 0x4b9494