Function at 0x479010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a95cb
push eax
mov eax, dword [0x637760]
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [eax + 8]
push edi
push str.PNRR
call sym.ETermProxy.exe_public:_class_CCSConnection____thiscall_CDBConnCollect::GetConnByName_char__
test eax, eax
jne 0x47904b
xor al, al
jmp 0x479437
mov esi, dword [ebx + 4]
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x30], ecx
je 0x479078
push str.PNRR
mov ecx, eax
call fcn.004db9f0
mov dword [esp + 0x18], eax
jmp 0x47907c
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
mov byte [edi], 0
mov byte [ebp], 0
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x78]
mov byte [esp + 0x30], 2
mov eax, dword [ecx + 0x88]
dec eax
je 0x4790e7
dec eax
je 0x4790d4
dec eax
jne 0x4790fd
mov ecx, dword [ecx + 0x3c]
lea edx, [esp + 0x10]
push ecx
push str._AND_account_s
push edx
jmp 0x4790f5
mov eax, dword [ecx + 0x10c]
lea ecx, [esp + 0x10]
push eax
push str._AND_account_group_d
push ecx
jmp 0x4790f5
mov edx, dword [ecx + 0x3c]
lea eax, [esp + 0x10]
push edx
push str._AND__is_protect0_OR_account_s_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov eax, dword [esp + 0x40]
cmp eax, 1
jne 0x479116
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x20]
push ecx
push edx
push str.select__from__booking_rec__where_pnr__s_AND_state__XX__s_ORDER_BY_rec_time_DESC
jmp 0x479130
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x20]
cmp eax, 2
push ecx
push edx
jne 0x47912b
push str.select__from__booking_rec__where_pnr__s_AND_stateXX__s_ORDER_BY_rec_time_DESC
jmp 0x479130
push str.select__from__etdz_rec__where_pnr__s__s_ORDER_BY_rec_time_DESC
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
add esp, 0x10
push 3
push 3
push 1
push ecx
mov ecx, ebx
call fcn.004dba80
test eax, eax
jne 0x47935c
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x61184c
mov dword [esi + 0x7c], eax
call dword [edx + 0x90]
mov eax, dword [0x637760]
test eax, eax
je 0x4791dd
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4791dd
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x611834
push str._RX_
push 0
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637760]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c4d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x47922b
push 0x611834
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0x40], 3
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov byte [esp + 0x3c], 2
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x47932a
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x47932a
mov bl, 4
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x47931a
mov cl, byte [edi + 0x88]
test cl, cl
je 0x47931a
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x479315
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x479315
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x38]
mov byte [esp + 0x30], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x479307
mov al, byte [edi + 0x80]
test al, al
jne 0x479307
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x479307
push 0x611834
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x3c], bl
call fcn.00402490
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x479247
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x479336
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x479437
mov ecx, ebx
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x47940a
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 6
push ecx
push str.account
mov ecx, ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea edx, [esp + 0x1c]
mov ecx, ebx
push edx
push str.rec_time
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_COleDateTime__
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
push 0x6120f0
push edi
call esi
add esp, 0xc
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_COleDateTime::GetMinute
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_COleDateTime::GetHour
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
push 0x6040a0
push ebp
call esi
add esp, 0x18
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
test ebx, ebx
je 0x479416
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0xc