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

Disassembly:
push 0xffffffffffffffff
push 0x5a65f6
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.00455bd0
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 0x4561ad
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 0x4562ee
cmp eax, 1
jne 0x456267
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.0042e740
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 0x4562ee
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.0059453a
mov eax, dword [esi + 0x30]
xor edi, edi
cmp eax, edi
jle 0x456326
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.0059453a
mov eax, dword [esi + 0x34]
cmp eax, edi
jle 0x45634e
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.0059453a
mov eax, dword [esi + 0x2c]
cmp eax, edi
jle 0x456376
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.0059453a
mov eax, dword [esi + 0x28]
cmp eax, edi
jle 0x45639e
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.0059453a
cmp dword [esi + 8], 4
jne 0x4563c4
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.0059453a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov al, byte [esi + 0x44]
test al, al
je 0x456400
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x4563e4
push 0x603cd0
jmp 0x4563e9
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.0059429a
push 0x610684
lea ecx, [esp + 0x14]
call fcn.0059429a
mov al, byte [esi + 0x45]
test al, al
je 0x456433
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], edi
je 0x456417
push 0x603cd0
jmp 0x45641c
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.0059429a
push 0x61067c
lea ecx, [esp + 0x14]
call fcn.0059429a
mov al, byte [esi + 0x46]
test al, al
je 0x456466
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x45644a
push 0x603cd0
jmp 0x45644f
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.0059429a
push 0x610674
lea ecx, [esp + 0x14]
call fcn.0059429a
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x456499
push 0x603c84
lea ecx, [esp + 0x14]
call fcn.0059429a
push str._AND_action_state_IN
lea ecx, [esp + 0x18]
call fcn.0059429a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.0059453a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov al, byte [esi + 0x48]
test al, al
je 0x4564d5
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x4564b9
push 0x603cd0
jmp 0x4564be
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.0059429a
push 0x610654
lea ecx, [esp + 0x14]
call fcn.0059429a
mov al, byte [esi + 0x49]
test al, al
je 0x456508
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x4564ec
push 0x603cd0
jmp 0x4564f1
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.0059429a
push 0x61064c
lea ecx, [esp + 0x14]
call fcn.0059429a
mov al, byte [esi + 0x4a]
test al, al
je 0x45653b
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], edi
je 0x45651f
push 0x603cd0
jmp 0x456524
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.0059429a
push 0x610644
lea ecx, [esp + 0x14]
call fcn.0059429a
mov al, byte [esi + 0x4b]
test al, al
je 0x45656e
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x456552
push 0x603cd0
jmp 0x456557
push 0x603c8c
lea ecx, [esp + 0x14]
call fcn.0059429a
push 0x61063c
lea ecx, [esp + 0x14]
call fcn.0059429a
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x4565a1
push 0x603c84
lea ecx, [esp + 0x14]
call fcn.0059429a
push str._AND_mark_state_IN
lea ecx, [esp + 0x18]
call fcn.0059429a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.0059453a
mov ecx, dword [esp + 0x14]
push edi
push edi
push ecx
mov ecx, dword [0x637760]
push str.PNRR
call fcn.0058fec0
mov ebp, eax
cmp ebp, edi
je 0x456a78
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 0x456a78
jmp 0x4565e9
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 0x4566f9
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 0x4566fb
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 0x45690f
mov esi, ecx
mov eax, dword [esi + 0x160]
test eax, eax
je 0x4568fc
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 0x456a5c
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x160]
test eax, eax
jne 0x456963
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 0x456a58
mov ecx, dword [edi + 0x168]
cmp esi, ecx
jg 0x4569a0
cmp edx, esi
jge 0x45698d
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 0x456a58
jle 0x456995
sub edx, esi
mov dword [esp + 0x58], edx
mov dword [edi + 0x164], esi
jmp 0x456a58
mov eax, dword [edi + 0x16c]
test eax, eax
jne 0x4569cd
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4569c1
mov eax, 4
jmp 0x4569cd
cmp eax, 0x400
jle 0x4569cd
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x58], eax
jl 0x4569db
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 0x4565e7
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