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

Disassembly:
push 0xffffffffffffffff
push 0x5b1ca5
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 [0x63ac10]
test esi, esi
mov dword [esp + 0x44], 6
jne 0x4b5378
test eax, eax
je 0x4b5224
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b5224
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 0x63546c
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x63ac10]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec730
mov edx, dword [0x63ac10]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c8d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b5273
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 0x63546c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x635468]
mov byte [esp + 0x50], 6
call fcn.00401150
mov eax, dword [0x635470]
test eax, eax
je 0x4b6550
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4b6550
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 0x4b5367
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4b5367
call fcn.0044c8d0
mov eax, dword [eax + 0xd0]
mov cl, byte [eax + 2]
test cl, cl
je 0x4b5362
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4b5362
push 0x63546c
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 0x4b5351
mov al, byte [esi + 0x80]
test al, al
jne 0x4b5351
mov eax, dword [esi + 0x84]
push 0x63546c
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b5351
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 0x63546c
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.004024d0
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635470]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4b5295
jmp 0x4b6550
test eax, eax
je 0x4b6401
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4b639e
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4b61e7
mov edi, dword [edx + 4]
test edi, edi
je 0x4b61e7
mov eax, dword [esi + 0x7c]
mov edi, dword [esp + 0x50]
test eax, eax
je 0x4b6164
mov dl, byte [eax + 0x247]
test dl, dl
jne 0x4b6164
push str.PNRR
call sym.ETermProxy.exe_public:_class_CCSConnection____thiscall_CDBConnCollect::GetConnByName_char__
test eax, eax
je 0x4b6164
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 0x4b5a87
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x63ac10]
mov byte [esp + 0x44], 0x12
mov eax, dword [ecx + 0x1d4]
test eax, eax
je 0x4b54fc
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4b54fc
mov eax, dword [eax + 4]
test eax, eax
je 0x4b54fc
mov dl, byte [eax + 0x340]
test dl, dl
je 0x4b54fc
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4b54fc
mov dl, byte [eax + 0x20b]
test dl, dl
je 0x4b54fc
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 + 0x7c]
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 + 0x7c]
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 + 0x7c]
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 + 0x7c]
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 [0x63ac10]
mov byte [esp + 0x60], 0x12
mov ecx, dword [ecx + 0x1d4]
call fcn.004a4db0
mov ecx, dword [0x63ac10]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4b56d7
mov eax, dword [eax + 4]
test eax, eax
je 0x4b56d7
mov cl, byte [eax + 0x2e0]
test cl, cl
je 0x4b56d7
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.0042e8d0
push 1
push 2
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x1220]
lea edi, [esi + 0x1220]
push ecx
push eax
mov byte [esp + 0x4c], 0x17
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jle 0x4b558f
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 0x4b5595
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 + 0x7c]
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 0x4b56c9
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x44], 0x12
lea ecx, [esp + 0x1c]
jmp 0x4b5874
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.0042e8d0
push 1
push 2
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0x54]
mov eax, dword [esi + 0x1220]
lea edi, [esi + 0x1220]
push edx
push eax
mov byte [esp + 0x4c], 0x19
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jle 0x4b574c
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 0x4b5752
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 + 0x7c]
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 0x4b586b
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 [0x63ac10]
mov ecx, dword [eax + 0x1d4]
call fcn.004a5ae0
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 [0x63ac10]
add esp, 0xc
test eax, eax
je 0x4b5925
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b5925
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.0041a990
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 [0x63ac10]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec730
mov edx, dword [0x63ac10]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c8d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b5974
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 [0x635468]
mov byte [esp + 0x50], 0x12
call fcn.00401150
mov eax, dword [0x635470]
test eax, eax
je 0x4b5a74
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4b5a74
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 0x4b5a68
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4b5a68
call fcn.0044c8d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b5a63
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b5a63
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 0x4b5a52
mov al, byte [esi + 0x80]
test al, al
jne 0x4b5a52
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi + 0x84]
push ecx
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b5a52
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.004024d0
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 0x12
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635470]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4b5996
lea ecx, [esp + 0x38]
mov byte [esp + 0x44], 0x11
call sub.MFC42.DLL_CString::CString
jmp 0x4b6144
cmp edi, 2
jne 0x4b5dc5
push 1
push edi
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x70]
mov eax, dword [esi + 0x1220]
lea edi, [esi + 0x1220]
push ecx
push eax
mov byte [esp + 0x4c], 0x1e
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jle 0x4b5ae6
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 0x4b5aef
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 + 0x7c]
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 0x4b5bb7
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 [0x63ac10]
mov ecx, dword [eax + 0x1d4]
call fcn.004a5ae0
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x10]
push ecx
push 0x61cf20
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x63ac10]
add esp, 0xc
test eax, eax
je 0x4b5c71
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b5c71
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.0041a990
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 [0x63ac10]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec730
mov edx, dword [0x63ac10]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c8d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b5cc0
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 [0x635468]
mov byte [esp + 0x50], 0x11
call fcn.00401150
mov eax, dword [0x635470]
test eax, eax
je 0x4b6144
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4b6144
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 0x4b5db4
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4b5db4
call fcn.0044c8d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b5daf
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b5daf
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 0x4b5d9e
mov al, byte [esi + 0x80]
test al, al
jne 0x4b5d9e
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi + 0x84]
push ecx
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b5d9e
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.004024d0
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 0x11
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635470]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4b5ce2
jmp 0x4b6144
mov eax, dword [0x63ac10]
mov ecx, dword [eax + 0x1d4]
test ecx, ecx
je 0x4b5e34
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 4]
mov al, byte [ecx + 0x340]
test al, al
je 0x4b5e34
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4b5e34
mov cl, byte [eax + 0x20b]
test cl, cl
je 0x4b5e34
push ecx
mov ecx, esp
mov dword [esp + 0x84], esp
push 0x61cf18
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 [0x63ac10]
mov byte [esp + 0x4c], 0x11
mov ecx, dword [eax + 0x1d4]
call fcn.004a5000
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 [0x63ac10]
mov ecx, dword [ecx + 0x1d4]
call fcn.004a5ae0
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 + 0x7c]
mov ecx, dword [esp + 0x54]
mov eax, dword [eax + 0x14]
push ecx
mov cl, byte [esi + 0x83]
add eax, 0x76c
xor edx, edx
push 0x614040
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 [0x63ac10]
mov ecx, dword [eax + 0x1d4]
call fcn.004a5ae0
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 [0x63ac10]
add esp, 0xc
test eax, eax
je 0x4b5ff5
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b5ff5
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.0041a990
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 [0x63ac10]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec730
mov edx, dword [0x63ac10]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c8d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b6044
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 [0x635468]
mov byte [esp + 0x50], 0x11
call fcn.00401150
mov eax, dword [0x635470]
test eax, eax
je 0x4b6144
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4b6144
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 0x4b6138
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4b6138
call fcn.0044c8d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4b6133
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b6133
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 0x4b6122
mov al, byte [esi + 0x80]
test al, al
jne 0x4b6122
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi + 0x84]
push ecx
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b6122
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.004024d0
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 0x11
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635470]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4b6066
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 0x4b6177
push 0x613da0
lea ecx, [esp + 0x68]
call fcn.00596c9a
push 0x610c74
lea ecx, [esp + 0x68]
call fcn.00596c9a
lea eax, [esp + 0x60]
lea ecx, [esp + 0x64]
push eax
call fcn.00596f3a
cmp edi, 1
mov esi, str.etdz
je 0x4b61a2
mov esi, 0x61ca6c
push 0
lea ecx, [esp + 0x68]
call fcn.0041a990
push eax
push 0
lea ecx, [esp + 0x68]
call fcn.0041a990
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x63ac10]
push esi
mov ecx, dword [eax + 0x90]
mov edx, dword [eax + 0xc0]
push ecx
push edx
call fcn.004ec730
add esp, 0x1c
jmp 0x4b6550
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b624a
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 0x63546c
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x63ac10]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec730
mov edx, dword [0x63ac10]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c8d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b6299
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 0x63546c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x635468]
mov byte [esp + 0x50], 6
call fcn.00401150
mov eax, dword [0x635470]
test eax, eax
je 0x4b6550
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4b6550
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 0x4b638d
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4b638d
call fcn.0044c8d0
mov eax, dword [eax + 0xd0]
mov cl, byte [eax + 2]
test cl, cl
je 0x4b6388
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4b6388
push 0x63546c
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 0x4b6377
mov al, byte [esi + 0x80]
test al, al
jne 0x4b6377
mov eax, dword [esi + 0x84]
push 0x63546c
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b6377
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 0x63546c
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.004024d0
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635470]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4b62bb
jmp 0x4b6550
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4b6401
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 0x63546c
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x63ac10]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec730
mov edx, dword [0x63ac10]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c8d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4b6450
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 0x63546c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x635468]
mov byte [esp + 0x50], 6
call fcn.00401150
mov eax, dword [0x635470]
test eax, eax
je 0x4b6550
mov ecx, dword [eax + 0x50]
xor edi, edi
test ecx, ecx
jle 0x4b6550
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 0x4b6544
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4b6544
call fcn.0044c8d0
mov eax, dword [eax + 0xd0]
mov cl, byte [eax + 2]
test cl, cl
je 0x4b653f
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4b653f
push 0x63546c
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 0x4b652e
mov al, byte [esi + 0x80]
test al, al
jne 0x4b652e
mov eax, dword [esi + 0x84]
push 0x63546c
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4b652e
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 0x63546c
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.004024d0
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635470]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
jl 0x4b6472
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