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

Disassembly:
push 0xffffffffffffffff
push 0x5a4fa6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
call fcn.00455ad0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
push str.SELECT__FROM__pnr_rec__WHERE_11
push eax
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x60]
add esp, 8
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x45615d
lea ecx, [esp + 0x58]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
push 0
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x5c]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 0x14]
push 0
lea ecx, [esp + 0x5c]
add ebx, 0x76c
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x5c]
inc ebp
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x20]
push ecx
push edi
push ebx
add eax, 0x76c
push edx
push ebp
push eax
lea eax, [esp + 0x28]
push str._AND_rec_time___04d__02d__02d_00:00:00_AND_rec_time___04d__02d__02d_23:59:59
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x20
jmp 0x45629e
cmp eax, 1
jne 0x456217
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], esp
mov eax, esp
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [eax], 0x15180
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.0042e7c0
push 0
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x5c]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 0x14]
push 0
lea ecx, [esp + 0x5c]
add ebx, 0x76c
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 0xc]
push 0
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x5c]
inc ebp
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
push edi
push ebx
add eax, 0x76c
push ecx
push ebp
push eax
lea edx, [esp + 0x28]
push str._AND_rec_time___04d__02d__02d_00:00:00_AND_rec_time___04d__02d__02d_23:59:59
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x20
jmp 0x45629e
lea edi, [esi + 0x14]
push 0
mov ecx, edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
mov ecx, edi
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 0x10]
push 0
mov ecx, edi
inc ebx
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x14]
lea ebp, [esi + 0x10]
push 0
mov ecx, ebp
add edi, 0x76c
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 0xc]
push 0
mov dword [esp + 0x20], ecx
mov ecx, ebp
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
mov ecx, ebp
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
push ebx
push edi
add eax, 0x76c
push ecx
push esi
push eax
lea edx, [esp + 0x28]
push str._AND_rec_time___04d__02d__02d_00:00:00_AND_rec_time___04d__02d__02d_23:59:59
push edx
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x78]
add esp, 0x20
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.00592f4a
mov eax, dword [esi + 0x30]
xor edi, edi
cmp eax, edi
jle 0x4562d6
push eax
lea ecx, [esp + 0x14]
push str._AND_passenger_count____d
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call fcn.00592f4a
mov eax, dword [esi + 0x34]
cmp eax, edi
jle 0x4562fe
push eax
lea eax, [esp + 0x14]
push str._AND_voyage_count____d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00592f4a
mov eax, dword [esi + 0x2c]
cmp eax, edi
jle 0x456326
push eax
lea edx, [esp + 0x14]
push str._AND_role_id___d
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.00592f4a
mov eax, dword [esi + 0x28]
cmp eax, edi
jle 0x45634e
push eax
lea ecx, [esp + 0x14]
push str._AND_group_id___d
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call fcn.00592f4a
cmp dword [esi + 8], 4
jne 0x456374
lea eax, [esp + 0x10]
push str._AND_isnull_passenger_count_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00592f4a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov al, byte [esi + 0x44]
test al, al
je 0x4563b0
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x456394
push 0x601cd0
jmp 0x456399
push 0x601c8c
lea ecx, [esp + 0x14]
call fcn.00592caa
push 0x60e6b4
lea ecx, [esp + 0x14]
call fcn.00592caa
mov al, byte [esi + 0x45]
test al, al
je 0x4563e3
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], edi
je 0x4563c7
push 0x601cd0
jmp 0x4563cc
push 0x601c8c
lea ecx, [esp + 0x14]
call fcn.00592caa
push 0x60e6ac
lea ecx, [esp + 0x14]
call fcn.00592caa
mov al, byte [esi + 0x46]
test al, al
je 0x456416
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x4563fa
push 0x601cd0
jmp 0x4563ff
push 0x601c8c
lea ecx, [esp + 0x14]
call fcn.00592caa
push 0x60e6a4
lea ecx, [esp + 0x14]
call fcn.00592caa
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x456449
push 0x601c84
lea ecx, [esp + 0x14]
call fcn.00592caa
push str._AND_action_state_IN
lea ecx, [esp + 0x18]
call fcn.00592caa
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.00592f4a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov al, byte [esi + 0x48]
test al, al
je 0x456485
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x456469
push 0x601cd0
jmp 0x45646e
push 0x601c8c
lea ecx, [esp + 0x14]
call fcn.00592caa
push 0x60e684
lea ecx, [esp + 0x14]
call fcn.00592caa
mov al, byte [esi + 0x49]
test al, al
je 0x4564b8
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x45649c
push 0x601cd0
jmp 0x4564a1
push 0x601c8c
lea ecx, [esp + 0x14]
call fcn.00592caa
push 0x60e67c
lea ecx, [esp + 0x14]
call fcn.00592caa
mov al, byte [esi + 0x4a]
test al, al
je 0x4564eb
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], edi
je 0x4564cf
push 0x601cd0
jmp 0x4564d4
push 0x601c8c
lea ecx, [esp + 0x14]
call fcn.00592caa
push 0x60e674
lea ecx, [esp + 0x14]
call fcn.00592caa
mov al, byte [esi + 0x4b]
test al, al
je 0x45651e
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x456502
push 0x601cd0
jmp 0x456507
push 0x601c8c
lea ecx, [esp + 0x14]
call fcn.00592caa
push 0x60e66c
lea ecx, [esp + 0x14]
call fcn.00592caa
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x456551
push 0x601c84
lea ecx, [esp + 0x14]
call fcn.00592caa
push str._AND_mark_state_IN
lea ecx, [esp + 0x18]
call fcn.00592caa
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.00592f4a
mov ecx, dword [esp + 0x14]
push edi
push edi
push ecx
mov ecx, dword [0x635490]
push str.PNRR
call fcn.0058fa20
mov ebp, eax
cmp ebp, edi
je 0x456a28
mov ecx, ebp
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x456a28
jmp 0x456599
xor edi, edi
push 0x68
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x58], ebx
cmp ebx, edi
mov byte [esp + 0x50], 2
je 0x4566a9
lea ecx, [ebx + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0xc]
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x10]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x18]
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x20]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x24]
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x28]
mov byte [esp + 0x50], 8
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x2c]
mov byte [esp + 0x50], 9
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x34]
mov byte [esp + 0x50], 0xa
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x38]
mov byte [esp + 0x50], 0xb
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x3c]
mov byte [esp + 0x50], 0xc
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x40]
mov byte [esp + 0x50], 0xd
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x48]
mov byte [esp + 0x50], 0xe
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x4c]
mov byte [esp + 0x50], 0xf
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x50]
mov byte [esp + 0x50], 0x10
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x54]
mov byte [esp + 0x50], 0x11
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x60]
mov byte [esp + 0x50], 0x12
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + 0x64]
mov byte [esp + 0x50], 0x13
call sub.MFC42.DLL_CString::CString_1
mov dword [ebx + 0x58], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x44], edi
jmp 0x4566ab
xor ebx, ebx
lea edx, [ebx + 4]
mov ecx, ebp
push edx
push 0x601170
mov byte [esp + 0x58], 1
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea eax, [ebx + 8]
mov ecx, ebp
push eax
push 0x601d38
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea edi, [ebx + 0x10]
mov ecx, ebp
push edi
push str.pnr_state
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea edi, [ebx + 0x54]
mov ecx, ebp
push edi
push str.action_state
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea edi, [ebx + 0x64]
mov ecx, ebp
push edi
push str.mark_state
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea edi, [ebx + 0x24]
mov ecx, ebp
push edi
push str.account
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x2c]
push ecx
push str.rec_time
mov ecx, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_COleDateTime__
lea edx, [esp + 0x38]
lea ecx, [esp + 0x2c]
push edx
call sub.MFC42.DLL_COleDateTime::GetAsSystemTime
lea eax, [esp + 0x38]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CTime::CTime
mov ecx, dword [eax]
lea edi, [ebx + 0x28]
mov dword [ebx + 0x5c], ecx
push edi
push str.contact_way
mov ecx, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea edi, [ebx + 0x20]
mov ecx, ebp
push edi
push str.group_name
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea edx, [ebx + 0x30]
mov ecx, ebp
push edx
push str.passenger_count
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edi, [ebx + 0x2c]
mov ecx, ebp
push edi
push str.passenger
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea eax, [ebx + 0x44]
mov ecx, ebp
push eax
push str.voyage_count
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edi, [ebx + 0x40]
mov ecx, ebp
push edi
push str.voyage
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea edi, [ebx + 0x34]
mov ecx, ebp
push edi
push str.carrier
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea edi, [ebx + 0x3c]
mov ecx, ebp
push edi
push str.class
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea edi, [ebx + 0x38]
mov ecx, ebp
push edi
push str.flight_no
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea edi, [ebx + 0x48]
mov ecx, ebp
push edi
push str.departure_time
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea edi, [ebx + 0x4c]
mov ecx, ebp
push edi
push str.arrival_time
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea edi, [ebx + 0x50]
mov ecx, ebp
push edi
push str.tktl_line
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
mov ecx, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x164]
mov esi, edx
mov dword [esp + 0x1c], esi
inc esi
test esi, esi
jne 0x4568bf
mov esi, ecx
mov eax, dword [esi + 0x160]
test eax, eax
je 0x4568ac
push eax
mov dword [esp + 0x5c], edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x160], 0
xor eax, eax
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], eax
jmp 0x456a0c
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x160]
test eax, eax
jne 0x456913
lea eax, [esi*4]
push eax
call sub.MFC42.DLL_operatornew
mov edx, eax
lea ecx, [esi*4]
mov dword [edi + 0x160], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov dword [eax + 0x168], esi
mov dword [eax + 0x164], esi
jmp 0x456a08
mov ecx, dword [edi + 0x168]
cmp esi, ecx
jg 0x456950
cmp edx, esi
jge 0x45693d
mov ecx, esi
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
mov dword [edi + 0x164], esi
jmp 0x456a08
jle 0x456945
sub edx, esi
mov dword [esp + 0x58], edx
mov dword [edi + 0x164], esi
jmp 0x456a08
mov eax, dword [edi + 0x16c]
test eax, eax
jne 0x45697d
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x456971
mov eax, 4
jmp 0x45697d
cmp eax, 0x400
jle 0x45697d
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x58], eax
jl 0x45698b
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x58]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [edi + 0x164]
mov esi, dword [edi + 0x160]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x24], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc ecx
mov edx, dword [esi + 0x164]
mov dword [esp + 0x28], ecx
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x160]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x60]
add esp, 8
mov dword [esi + 0x160], edx
mov dword [esi + 0x164], eax
mov dword [esi + 0x168], ecx
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 0x160]
mov eax, dword [esp + 0x1c]
mov ecx, ebp
mov dword [edx + eax*4], ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x456597
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 4