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

Disassembly:
push 0xffffffffffffffff
push 0x5a9096
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.00455e70
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 0x4564dd
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 0x45661e
cmp eax, 1
jne 0x456597
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.0042e8d0
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 0x45661e
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.00596f3a
mov eax, dword [esi + 0x30]
xor edi, edi
cmp eax, edi
jle 0x456656
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.00596f3a
mov eax, dword [esi + 0x34]
cmp eax, edi
jle 0x45667e
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.00596f3a
mov eax, dword [esi + 0x2c]
cmp eax, edi
jle 0x4566a6
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.00596f3a
mov eax, dword [esi + 0x28]
cmp eax, edi
jle 0x4566ce
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.00596f3a
cmp dword [esi + 8], 4
jne 0x4566f4
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.00596f3a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov al, byte [esi + 0x44]
test al, al
je 0x456730
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x456714
push 0x606ce8
jmp 0x456719
push 0x606ca8
lea ecx, [esp + 0x14]
call fcn.00596c9a
push 0x613770
lea ecx, [esp + 0x14]
call fcn.00596c9a
mov al, byte [esi + 0x45]
test al, al
je 0x456763
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], edi
je 0x456747
push 0x606ce8
jmp 0x45674c
push 0x606ca8
lea ecx, [esp + 0x14]
call fcn.00596c9a
push 0x613768
lea ecx, [esp + 0x14]
call fcn.00596c9a
mov al, byte [esi + 0x46]
test al, al
je 0x456796
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x45677a
push 0x606ce8
jmp 0x45677f
push 0x606ca8
lea ecx, [esp + 0x14]
call fcn.00596c9a
push 0x613760
lea ecx, [esp + 0x14]
call fcn.00596c9a
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x4567c9
push 0x606ca0
lea ecx, [esp + 0x14]
call fcn.00596c9a
push str._AND_action_state_IN
lea ecx, [esp + 0x18]
call fcn.00596c9a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.00596f3a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov al, byte [esi + 0x48]
test al, al
je 0x456805
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x4567e9
push 0x606ce8
jmp 0x4567ee
push 0x606ca8
lea ecx, [esp + 0x14]
call fcn.00596c9a
push 0x613740
lea ecx, [esp + 0x14]
call fcn.00596c9a
mov al, byte [esi + 0x49]
test al, al
je 0x456838
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x45681c
push 0x606ce8
jmp 0x456821
push 0x606ca8
lea ecx, [esp + 0x14]
call fcn.00596c9a
push 0x613738
lea ecx, [esp + 0x14]
call fcn.00596c9a
mov al, byte [esi + 0x4a]
test al, al
je 0x45686b
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], edi
je 0x45684f
push 0x606ce8
jmp 0x456854
push 0x606ca8
lea ecx, [esp + 0x14]
call fcn.00596c9a
push 0x613730
lea ecx, [esp + 0x14]
call fcn.00596c9a
mov al, byte [esi + 0x4b]
test al, al
je 0x45689e
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x456882
push 0x606ce8
jmp 0x456887
push 0x606ca8
lea ecx, [esp + 0x14]
call fcn.00596c9a
push 0x613728
lea ecx, [esp + 0x14]
call fcn.00596c9a
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
je 0x4568d1
push 0x606ca0
lea ecx, [esp + 0x14]
call fcn.00596c9a
push str._AND_mark_state_IN
lea ecx, [esp + 0x18]
call fcn.00596c9a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.00596f3a
mov ecx, dword [esp + 0x14]
push edi
push edi
push ecx
mov ecx, dword [0x63ac10]
push str.PNRR
call fcn.00593a10
mov ebp, eax
cmp ebp, edi
je 0x456da8
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 0x456da8
jmp 0x456919
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 0x456a29
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 0x456a2b
xor ebx, ebx
lea edx, [ebx + 4]
mov ecx, ebp
push edx
push 0x606170
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 0x606d50
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 0x456c3f
mov esi, ecx
mov eax, dword [esi + 0x160]
test eax, eax
je 0x456c2c
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 0x456d8c
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x160]
test eax, eax
jne 0x456c93
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 0x456d88
mov ecx, dword [edi + 0x168]
cmp esi, ecx
jg 0x456cd0
cmp edx, esi
jge 0x456cbd
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 0x456d88
jle 0x456cc5
sub edx, esi
mov dword [esp + 0x58], edx
mov dword [edi + 0x164], esi
jmp 0x456d88
mov eax, dword [edi + 0x16c]
test eax, eax
jne 0x456cfd
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x456cf1
mov eax, 4
jmp 0x456cfd
cmp eax, 0x400
jle 0x456cfd
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x58], eax
jl 0x456d0b
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 0x456917
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