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

Disassembly:
push 0xffffffffffffffff
push 0x5adc96
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.004561d0
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 0x4567ad
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 0x4568ee
cmp eax, 1
jne 0x456867
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.0042e750
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 0x4568ee
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.0059ba4c
mov eax, dword [esi + 0x30]
xor edi, edi
cmp eax, edi
jle 0x456926
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.0059ba4c
mov eax, dword [esi + 0x34]
cmp eax, edi
jle 0x45694e
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.0059ba4c
mov eax, dword [esi + 0x2c]
cmp eax, edi
jle 0x456976
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.0059ba4c
mov eax, dword [esi + 0x28]
cmp eax, edi
jle 0x45699e
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.0059ba4c
cmp dword [esi + 8], 4
jne 0x4569c4
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.0059ba4c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov al, byte [esi + 0x44]
test al, al
je 0x456a00
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x4569e4
push 0x60cce8
jmp 0x4569e9
push 0x60cca8
lea ecx, [esp + 0x14]
call fcn.0059b7ac
push 0x619790
lea ecx, [esp + 0x14]
call fcn.0059b7ac
mov al, byte [esi + 0x45]
test al, al
je 0x456a33
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], edi
je 0x456a17
push 0x60cce8
jmp 0x456a1c
push 0x60cca8
lea ecx, [esp + 0x14]
call fcn.0059b7ac
push 0x619788
lea ecx, [esp + 0x14]
call fcn.0059b7ac
mov al, byte [esi + 0x46]
test al, al
je 0x456a66
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x456a4a
push 0x60cce8
jmp 0x456a4f
push 0x60cca8
lea ecx, [esp + 0x14]
call fcn.0059b7ac
push 0x619780
lea ecx, [esp + 0x14]
call fcn.0059b7ac
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x456a99
push 0x60cca0
lea ecx, [esp + 0x14]
call fcn.0059b7ac
push str._AND_action_state_IN
lea ecx, [esp + 0x18]
call fcn.0059b7ac
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.0059ba4c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov al, byte [esi + 0x48]
test al, al
je 0x456ad5
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x456ab9
push 0x60cce8
jmp 0x456abe
push 0x60cca8
lea ecx, [esp + 0x14]
call fcn.0059b7ac
push 0x619760
lea ecx, [esp + 0x14]
call fcn.0059b7ac
mov al, byte [esi + 0x49]
test al, al
je 0x456b08
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x456aec
push 0x60cce8
jmp 0x456af1
push 0x60cca8
lea ecx, [esp + 0x14]
call fcn.0059b7ac
push 0x619758
lea ecx, [esp + 0x14]
call fcn.0059b7ac
mov al, byte [esi + 0x4a]
test al, al
je 0x456b3b
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], edi
je 0x456b1f
push 0x60cce8
jmp 0x456b24
push 0x60cca8
lea ecx, [esp + 0x14]
call fcn.0059b7ac
push 0x619750
lea ecx, [esp + 0x14]
call fcn.0059b7ac
mov al, byte [esi + 0x4b]
test al, al
je 0x456b6e
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x456b52
push 0x60cce8
jmp 0x456b57
push 0x60cca8
lea ecx, [esp + 0x14]
call fcn.0059b7ac
push 0x619748
lea ecx, [esp + 0x14]
call fcn.0059b7ac
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x456ba1
push 0x60cca0
lea ecx, [esp + 0x14]
call fcn.0059b7ac
push str._AND_mark_state_IN
lea ecx, [esp + 0x18]
call fcn.0059b7ac
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.0059ba4c
mov ecx, dword [esp + 0x14]
push edi
push edi
push ecx
mov ecx, dword [0x641030]
push str.PNRR
call fcn.00598520
mov ebp, eax
cmp ebp, edi
je 0x457078
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 0x457078
jmp 0x456be9
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 0x456cf9
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 0x456cfb
xor ebx, ebx
lea edx, [ebx + 4]
mov ecx, ebp
push edx
push 0x60c170
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 0x60cd50
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 0x456f0f
mov esi, ecx
mov eax, dword [esi + 0x160]
test eax, eax
je 0x456efc
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 0x45705c
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x160]
test eax, eax
jne 0x456f63
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 0x457058
mov ecx, dword [edi + 0x168]
cmp esi, ecx
jg 0x456fa0
cmp edx, esi
jge 0x456f8d
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 0x457058
jle 0x456f95
sub edx, esi
mov dword [esp + 0x58], edx
mov dword [edi + 0x164], esi
jmp 0x457058
mov eax, dword [edi + 0x16c]
test eax, eax
jne 0x456fcd
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x456fc1
mov eax, 4
jmp 0x456fcd
cmp eax, 0x400
jle 0x456fcd
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x58], eax
jl 0x456fdb
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 0x456be7
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