Function at 0x4b86c0
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5adde3
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 0x4b87d1
mov ebx, dword [esp + 0x38]
cmp ebx, ebp
je 0x4b87d1
mov eax, dword [ebx + 0x78]
cmp eax, ebp
je 0x4b87d1
mov cl, byte [eax + 0x85]
test cl, cl
je 0x4b87d1
mov eax, dword [eax + 0x88]
cmp eax, 1
jl 0x4b87d1
cmp eax, 3
jg 0x4b87d1
mov ecx, dword [0x635490]
push str.PNRR
mov ecx, dword [ecx + 8]
call sym.ETermProxy.exe_public:_class_CCSConnection____thiscall_CDBConnCollect::GetConnByName_char__
test eax, eax
je 0x4b87d1
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 0x4b8783
push str.PNRR
mov ecx, eax
call fcn.004dc2a0
mov esi, eax
jmp 0x4b8785
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.004dc330
cmp eax, ebp
jne 0x4b87f9
cmp esi, ebp
je 0x4b87c3
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 0x4b8839
cmp esi, ebp
je 0x4b8814
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx + 0x88]
cmp eax, 1
je 0x4b87c3
cmp eax, 2
je 0x4b891a
cmp eax, 3
jne 0x4b8839
mov byte [edi + 0xd8], 1
jmp 0x4b87c3
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 0x4b88bc
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 + 0x78]
mov eax, dword [edx + 0x3c]
push eax
mov eax, dword [esp + 0x18]
push eax
call edi
add esp, 8
test eax, eax
je 0x4b88b7
mov ecx, esi
inc ebp
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
cmp ebp, eax
jl 0x4b8861
jmp 0x4b88bc
mov byte [esp + 0x38], 1
test esi, esi
je 0x4b88c8
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov al, byte [esp + 0x38]
test al, al
jne 0x4b88f9
mov eax, dword [ebx + 0x78]
mov ecx, dword [eax + 0x88]
dec ecx
je 0x4b8983
dec ecx
je 0x4b8940
dec ecx
jne 0x4b88f9
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4b890c
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 0x4b87c3
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 0x4b87e4
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 0x4b87e4
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 0x4b87e4