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

Disassembly:
push 0xffffffffffffffff
push 0x5af355
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x4c]
mov eax, dword [0x637770]
test esi, esi
mov dword [esp + 0x44], 6
jne 0x4b4128
test eax, eax
je 0x4b3fd4
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b3fd4
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.pUserClientA__NULL
push str._IF_
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x90], esp
push 0x631fcc
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b4023
push str.pUserClientA__NULL
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 7
mov ecx, esp
mov dword [esp + 0x64], esp
push 0x631fcc
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x631fc8]
mov byte [esp + 0x50], 6
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4b5300
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4b5300
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov bl, 8
mov edx, dword [eax + 0x4c]
mov esi, dword [edx + edi*4]
test esi, esi
je 0x4b4117
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4b4117
call fcn.0044c540
mov eax, dword [eax + 0xd0]
mov cl, byte [eax + 2]
test cl, cl
je 0x4b4112
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4b4112
push 0x631fcc
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x80]
mov byte [esp + 0x44], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x4b4101
mov al, byte [esi + 0x80]
test al, al
jne 0x4b4101
mov eax, dword [esi + 0x84]
push 0x631fcc
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b4101
push str.pUserClientA__NULL
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 9
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x631fcc
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.00402500
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4b4045
jmp 0x4b5300
test eax, eax
je 0x4b51b1
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4b514e
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4b4f97
mov edi, dword [edx + 4]
test edi, edi
je 0x4b4f97
mov eax, dword [esi + 0x78]
mov edi, dword [esp + 0x50]
test eax, eax
je 0x4b4f14
mov dl, byte [eax + 0x247]
test dl, dl
jne 0x4b4f14
push str.PNRR
call sym.ETermProxy.exe_public:_class_CCSConnection____thiscall_CDBConnCollect::GetConnByName_char__
test eax, eax
je 0x4b4f14
lea eax, [esp + 0x4c]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0x10
call sub.MFC42.DLL_CString::CString_1
test edi, edi
mov byte [esp + 0x44], 0x11
jne 0x4b4837
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x637770]
mov byte [esp + 0x44], 0x12
mov eax, dword [ecx + 0x1d4]
test eax, eax
je 0x4b42ac
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4b42ac
mov eax, dword [eax + 4]
test eax, eax
je 0x4b42ac
mov dl, byte [eax + 0x340]
test dl, dl
je 0x4b42ac
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4b42ac
mov dl, byte [eax + 0x20b]
test dl, dl
je 0x4b42ac
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x78]
push ecx
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x74], esp
push eax
mov byte [esp + 0x50], 0x13
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x78]
mov byte [esp + 0x4c], 0x14
mov ecx, dword [eax + 0x10c]
add eax, 0x114
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x78]
mov byte [esp + 0x54], 0x15
mov edx, dword [eax + 0x110]
add eax, 0x1fc
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
mov byte [esp + 0x64], 0x16
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637770]
mov byte [esp + 0x60], 0x12
mov ecx, dword [ecx + 0x1d4]
call fcn.004a3b60
mov ecx, dword [0x637770]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4b4487
mov eax, dword [eax + 4]
test eax, eax
je 0x4b4487
mov cl, byte [eax + 0x2e0]
test cl, cl
je 0x4b4487
push ecx
lea edx, [esp + 0x58]
mov eax, esp
mov dword [esp + 0x58], esp
push edx
lea ecx, [esp + 0x54]
mov dword [eax], 0x93a80
call fcn.0042e7f0
push 1
push 2
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x121c]
lea edi, [esi + 0x121c]
push ecx
push eax
mov byte [esp + 0x4c], 0x17
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jle 0x4b433f
lea edx, [esp + 0x34]
push 2
push edx
mov ecx, edi
call sub.MFC42.DLL_CString::Left
mov dword [esp + 0x18], 1
mov eax, dword [eax]
mov byte [esp + 0x44], 0x18
mov dword [esp + 0x6c], eax
jmp 0x4b4345
mov ecx, dword [edi]
mov dword [esp + 0x6c], ecx
push 0
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 4]
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 8]
push 0
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x30], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x50]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 0x14]
push 0
lea ecx, [esp + 0x58]
add ebp, 0x76c
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x58]
mov dword [esp + 0x34], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x58]
inc ebx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
mov dl, byte [esp + 0x80]
add eax, 0x76c
xor ecx, ecx
test dl, dl
mov edx, dword [esp + 0x7c]
setne cl
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esi + 0x78]
push edx
xor edx, edx
cmp byte [ecx + 0x85], dl
mov ecx, dword [esp + 0x7c]
setne dl
push edx
mov edx, dword [esp + 0x78]
push ecx
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x60]
push edx
push edi
push ebp
mov edx, dword [esp + 0x70]
push 2
push edx
push ebx
push eax
push ecx
push 1
lea eax, [esp + 0x6c]
push str._d:SELECT_TOP_1__FROM_booking_rec_WHERE_pnr_s_AND_rec_time____04d__02d__02d_00:00:00__d:INSERT_INTO_booking_rec_rec_time__account_group__account__pnr__is_cancel__is_protect__state__carrier_passenger_count_voyage_berth_departure_time__is_gj__VALUES__d__02d__02d__02d:_02d:_02d___d___s___s__0___d__HK___s__d__s___s__s___d_
push eax
call sub.MFC42.DLL_CString::Format
mov al, byte [esp + 0x78]
add esp, 0x60
test al, 1
mov dword [esp + 0x44], 0x17
je 0x4b4479
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x44], 0x12
lea ecx, [esp + 0x1c]
jmp 0x4b4624
push ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], esp
mov eax, esp
push ecx
lea ecx, [esp + 0x54]
mov dword [eax], 0x93a80
call fcn.0042e7f0
push 1
push 2
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0x54]
mov eax, dword [esi + 0x121c]
lea edi, [esi + 0x121c]
push edx
push eax
mov byte [esp + 0x4c], 0x19
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jle 0x4b44fc
lea eax, [esp + 0x24]
push 2
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Left
mov dword [esp + 0x18], 2
mov ecx, dword [eax]
mov byte [esp + 0x44], 0x1a
mov dword [esp + 0x70], ecx
jmp 0x4b4502
mov edx, dword [edi]
mov dword [esp + 0x70], edx
push 0
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x70], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 4]
push 0
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 8]
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x34], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x30], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x50]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 0x14]
push 0
lea ecx, [esp + 0x84]
add ebp, 0x76c
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 0xc]
push 0
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x84]
inc ebx
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [esp + 0x70]
mov eax, dword [eax + 0x14]
mov ecx, dword [esi + 0x78]
push edx
xor edx, edx
add eax, 0x76c
cmp byte [ecx + 0x85], dl
mov ecx, dword [esp + 0x68]
setne dl
push edx
mov edx, dword [esp + 0x64]
push ecx
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push edi
push ebp
push 2
push edx
push ebx
push eax
push ecx
push 1
lea eax, [esp + 0x58]
push str._d:SELECT_TOP_1__FROM_booking_rec_WHERE_pnr_s_AND_rec_time____04d__02d__02d_00:00:00__d:INSERT_INTO_booking_rec_rec_time__account_group__account__pnr__is_cancel__is_protect__state__carrier__VALUES__d__02d__02d__02d:_02d:_02d___d___s___s__0___d__HK___s_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x4c
mov dword [esp + 0x44], 0x19
test byte [esp + 0x18], 2
je 0x4b461b
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x44], 0x12
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
mov ecx, dword [eax + 0x1d4]
call fcn.004a4890
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x10]
push ecx
push str._s___
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x637770]
add esp, 0xc
test eax, eax
je 0x4b46d5
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b46d5
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x64]
push eax
call fcn.0041a900
push eax
push 0
push ecx
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x90], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b4724
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x64]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
mov byte [esp + 0x54], 0x1b
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov byte [esp + 0x50], 0x12
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4b4824
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4b4824
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov bl, 0x1c
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x4b4818
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4b4818
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b4813
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b4813
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x80]
mov byte [esp + 0x44], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x4b4802
mov al, byte [esi + 0x80]
test al, al
jne 0x4b4802
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi + 0x84]
push ecx
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b4802
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x64]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x7c], esp
push edx
mov byte [esp + 0x54], 0x1d
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.00402500
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 0x12
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4b4746
lea ecx, [esp + 0x38]
mov byte [esp + 0x44], 0x11
call sub.MFC42.DLL_CString::CString
jmp 0x4b4ef4
cmp edi, 2
jne 0x4b4b75
push 1
push edi
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x70]
mov eax, dword [esi + 0x121c]
lea edi, [esi + 0x121c]
push ecx
push eax
mov byte [esp + 0x4c], 0x1e
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jle 0x4b4896
lea edx, [esp + 0x38]
push 2
push edx
mov ecx, edi
call sub.MFC42.DLL_CString::Left
mov dword [esp + 0x18], 4
mov eax, dword [eax]
mov byte [esp + 0x44], 0x1f
mov dword [esp + 0x80], eax
jmp 0x4b489f
mov ecx, dword [edi]
mov dword [esp + 0x80], ecx
push 0
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax]
push 0
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 4]
push 0
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 8]
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x58], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x70], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x50]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [esp + 0x80]
mov eax, dword [eax + 0x14]
mov edx, dword [esi + 0x78]
push ecx
xor ecx, ecx
add eax, 0x76c
cmp byte [edx + 0x85], cl
mov edx, dword [esp + 0x60]
setne cl
push ecx
mov ecx, dword [esp + 0x6c]
push ecx
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push ebp
push ebx
push edx
mov edx, dword [esp + 0x8c]
push edx
push edi
push eax
push 2
push ecx
push 3
lea eax, [esp + 0x4c]
push str._d:UPDATE_booking_rec_SET_state__HX_WHERE_pnr_s__d:INSERT_INTO_booking_rec_rec_time__account_group__account__pnr__is_cancel__is_protect__state__carrier__VALUES__d__02d__02d__02d:_02d:_02d___d___s___s__0___d__XX___s_
push eax
call sub.MFC42.DLL_CString::Format
mov al, byte [esp + 0x58]
add esp, 0x40
test al, 4
mov dword [esp + 0x44], 0x1e
je 0x4b4967
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x70]
mov byte [esp + 0x44], 0x11
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
mov ecx, dword [eax + 0x1d4]
call fcn.004a4890
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x10]
push ecx
push 0x619d0c
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x637770]
add esp, 0xc
test eax, eax
je 0x4b4a21
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b4a21
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x64]
push eax
call fcn.0041a900
push eax
push 0
push ecx
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x90], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b4a70
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x64]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
mov byte [esp + 0x54], 0x20
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov byte [esp + 0x50], 0x11
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4b4ef4
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4b4ef4
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov bl, 0x21
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x4b4b64
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4b4b64
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b4b5f
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b4b5f
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x80]
mov byte [esp + 0x44], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x4b4b4e
mov al, byte [esi + 0x80]
test al, al
jne 0x4b4b4e
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi + 0x84]
push ecx
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b4b4e
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x64]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x7c], esp
push edx
mov byte [esp + 0x54], 0x22
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.00402500
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 0x11
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4b4a92
jmp 0x4b4ef4
mov eax, dword [0x637770]
mov ecx, dword [eax + 0x1d4]
test ecx, ecx
je 0x4b4be4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 4]
mov al, byte [ecx + 0x340]
test al, al
je 0x4b4be4
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4b4be4
mov cl, byte [eax + 0x20b]
test cl, cl
je 0x4b4be4
push ecx
mov ecx, esp
mov dword [esp + 0x84], esp
push 0x619d04
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x78], esp
push edx
mov byte [esp + 0x50], 0x23
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
mov byte [esp + 0x4c], 0x11
mov ecx, dword [eax + 0x1d4]
call fcn.004a3db0
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x14]
push ecx
push 3
push str._d:UPDATE_booking_rec_SET_state__RR_WHERE_pnr_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x84], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637770]
mov ecx, dword [ecx + 0x1d4]
call fcn.004a4890
push 0
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax]
push 0
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 4]
push 0
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 8]
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x84], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x74], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x50]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [esi + 0x78]
mov ecx, dword [esp + 0x54]
mov eax, dword [eax + 0x14]
push ecx
mov cl, byte [esi + 0x83]
add eax, 0x76c
xor edx, edx
push 0x610e3c
test cl, cl
setne dl
push edx
mov dl, byte [esi + 0x80]
xor ecx, ecx
test dl, dl
mov edx, dword [esi + 0x174]
setne cl
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0x9c]
push ebx
push ebp
push ecx
push edx
push edi
push eax
push 2
lea eax, [esp + 0x5c]
push str._d:INSERT_INTO_etdz_rec_rec_time__account_group__group_name__account___pnr__tickets__price__bill_mode__fund_mode__tkt_count_enable__bill_retry_count__opration__etdz_dev__VALUES__d__02d__02d__02d:_02d:_02d___d___s___s___s___s___d___d___d___d__0___s___d_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x4c
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
mov ecx, dword [eax + 0x1d4]
call fcn.004a4890
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x10]
push ecx
push str._s__
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x637770]
add esp, 0xc
test eax, eax
je 0x4b4da5
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b4da5
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x64]
push eax
call fcn.0041a900
push eax
push 0
push ecx
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x90], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b4df4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x64]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
mov byte [esp + 0x54], 0x24
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov byte [esp + 0x50], 0x11
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4b4ef4
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4b4ef4
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov bl, 0x25
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x4b4ee8
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4b4ee8
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b4ee3
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b4ee3
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x80]
mov byte [esp + 0x44], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x4b4ed2
mov al, byte [esi + 0x80]
test al, al
jne 0x4b4ed2
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi + 0x84]
push ecx
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b4ed2
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x64]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x7c], esp
push edx
mov byte [esp + 0x54], 0x26
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.00402500
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 0x11
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4b4e16
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x50]
cmp edi, 2
jne 0x4b4f27
push 0x610c24
lea ecx, [esp + 0x68]
call fcn.005945ea
push 0x60dba8
lea ecx, [esp + 0x68]
call fcn.005945ea
lea eax, [esp + 0x60]
lea ecx, [esp + 0x64]
push eax
call fcn.0059488a
cmp edi, 1
mov esi, str.etdz
je 0x4b4f52
mov esi, 0x619858
push 0
lea ecx, [esp + 0x68]
call fcn.0041a900
push eax
push 0
lea ecx, [esp + 0x68]
call fcn.0041a900
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x637770]
push esi
mov ecx, dword [eax + 0x90]
mov edx, dword [eax + 0xc0]
push ecx
push edx
call fcn.004eb4c0
add esp, 0x1c
jmp 0x4b5300
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b4ffa
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.g_pSysManager__m_pLicenseCheck__NULL
push str._IF_
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x90], esp
push 0x631fcc
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b5049
push str.g_pSysManager__m_pLicenseCheck__NULL
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 0xd
mov ecx, esp
mov dword [esp + 0x64], esp
push 0x631fcc
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x631fc8]
mov byte [esp + 0x50], 6
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4b5300
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4b5300
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov bl, 0xe
mov edx, dword [eax + 0x4c]
mov esi, dword [edx + edi*4]
test esi, esi
je 0x4b513d
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4b513d
call fcn.0044c540
mov eax, dword [eax + 0xd0]
mov cl, byte [eax + 2]
test cl, cl
je 0x4b5138
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4b5138
push 0x631fcc
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x80]
mov byte [esp + 0x44], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x4b5127
mov al, byte [esi + 0x80]
test al, al
jne 0x4b5127
mov eax, dword [esi + 0x84]
push 0x631fcc
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b5127
push str.g_pSysManager__m_pLicenseCheck__NULL
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 0xf
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x631fcc
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.00402500
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4b506b
jmp 0x4b5300
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b51b1
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.g_pSysManager__m_pDBConnCollect__NULL
push str._IF_
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x90], esp
push 0x631fcc
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b5200
push str.g_pSysManager__m_pDBConnCollect__NULL
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 0xa
mov ecx, esp
mov dword [esp + 0x64], esp
push 0x631fcc
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x631fc8]
mov byte [esp + 0x50], 6
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4b5300
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4b5300
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov bl, 0xb
mov edx, dword [eax + 0x4c]
mov esi, dword [edx + edi*4]
test esi, esi
je 0x4b52f4
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4b52f4
call fcn.0044c540
mov eax, dword [eax + 0xd0]
mov cl, byte [eax + 2]
test cl, cl
je 0x4b52ef
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4b52ef
push 0x631fcc
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x80]
mov byte [esp + 0x44], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x4b52de
mov al, byte [esi + 0x80]
test al, al
jne 0x4b52de
mov eax, dword [esi + 0x84]
push 0x631fcc
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b52de
push str.g_pSysManager__m_pDBConnCollect__NULL
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 0xc
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x631fcc
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.00402500
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4b5222
lea ecx, [esp + 0x5c]
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret