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

Disassembly:
push 0xffffffffffffffff
push 0x5a6906
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.00455c00
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 0x4561dd
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 0x45631e
cmp eax, 1
jne 0x456297
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.0042e7f0
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 0x45631e
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.0059488a
mov eax, dword [esi + 0x30]
xor edi, edi
cmp eax, edi
jle 0x456356
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.0059488a
mov eax, dword [esi + 0x34]
cmp eax, edi
jle 0x45637e
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.0059488a
mov eax, dword [esi + 0x2c]
cmp eax, edi
jle 0x4563a6
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.0059488a
mov eax, dword [esi + 0x28]
cmp eax, edi
jle 0x4563ce
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.0059488a
cmp dword [esi + 8], 4
jne 0x4563f4
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.0059488a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov al, byte [esi + 0x44]
test al, al
je 0x456430
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x456414
push 0x603cd0
jmp 0x456419
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.005945ea
push 0x610684
lea ecx, [esp + 0x14]
call fcn.005945ea
mov al, byte [esi + 0x45]
test al, al
je 0x456463
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], edi
je 0x456447
push 0x603cd0
jmp 0x45644c
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.005945ea
push 0x61067c
lea ecx, [esp + 0x14]
call fcn.005945ea
mov al, byte [esi + 0x46]
test al, al
je 0x456496
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x45647a
push 0x603cd0
jmp 0x45647f
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.005945ea
push 0x610674
lea ecx, [esp + 0x14]
call fcn.005945ea
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x4564c9
push 0x603c84
lea ecx, [esp + 0x14]
call fcn.005945ea
push str._AND_action_state_IN
lea ecx, [esp + 0x18]
call fcn.005945ea
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.0059488a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov al, byte [esi + 0x48]
test al, al
je 0x456505
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x4564e9
push 0x603cd0
jmp 0x4564ee
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.005945ea
push 0x610654
lea ecx, [esp + 0x14]
call fcn.005945ea
mov al, byte [esi + 0x49]
test al, al
je 0x456538
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x45651c
push 0x603cd0
jmp 0x456521
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.005945ea
push 0x61064c
lea ecx, [esp + 0x14]
call fcn.005945ea
mov al, byte [esi + 0x4a]
test al, al
je 0x45656b
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], edi
je 0x45654f
push 0x603cd0
jmp 0x456554
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.005945ea
push 0x610644
lea ecx, [esp + 0x14]
call fcn.005945ea
mov al, byte [esi + 0x4b]
test al, al
je 0x45659e
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x456582
push 0x603cd0
jmp 0x456587
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.005945ea
push 0x61063c
lea ecx, [esp + 0x14]
call fcn.005945ea
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x4565d1
push 0x603c84
lea ecx, [esp + 0x14]
call fcn.005945ea
push str._AND_mark_state_IN
lea ecx, [esp + 0x18]
call fcn.005945ea
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.0059488a
mov ecx, dword [esp + 0x14]
push edi
push edi
push ecx
mov ecx, dword [0x637770]
push str.PNRR
call fcn.00590210
mov ebp, eax
cmp ebp, edi
je 0x456aa8
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 0x456aa8
jmp 0x456619
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 0x456729
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 0x45672b
xor ebx, ebx
lea edx, [ebx + 4]
mov ecx, ebp
push edx
push 0x603170
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 0x603d38
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 0x45693f
mov esi, ecx
mov eax, dword [esi + 0x160]
test eax, eax
je 0x45692c
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 0x456a8c
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x160]
test eax, eax
jne 0x456993
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 0x456a88
mov ecx, dword [edi + 0x168]
cmp esi, ecx
jg 0x4569d0
cmp edx, esi
jge 0x4569bd
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 0x456a88
jle 0x4569c5
sub edx, esi
mov dword [esp + 0x58], edx
mov dword [edi + 0x164], esi
jmp 0x456a88
mov eax, dword [edi + 0x16c]
test eax, eax
jne 0x4569fd
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4569f1
mov eax, 4
jmp 0x4569fd
cmp eax, 0x400
jle 0x4569fd
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x58], eax
jl 0x456a0b
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 0x456617
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