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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a7fab
push eax
mov eax, dword [0x635490]
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 0x47915b
xor al, al
jmp 0x479547
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 0x479188
push str.PNRR
mov ecx, eax
call fcn.004dc2a0
mov dword [esp + 0x18], eax
jmp 0x47918c
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 0x4791f7
dec eax
je 0x4791e4
dec eax
jne 0x47920d
mov ecx, dword [ecx + 0x3c]
lea edx, [esp + 0x10]
push ecx
push str._AND_account_s
push edx
jmp 0x479205
mov eax, dword [ecx + 0x10c]
lea ecx, [esp + 0x10]
push eax
push str._AND_account_group_d
push ecx
jmp 0x479205
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 0x479226
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 0x479240
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x20]
cmp eax, 2
push ecx
push edx
jne 0x47923b
push str.select__from__booking_rec__where_pnr__s_AND_stateXX__s_ORDER_BY_rec_time_DESC
jmp 0x479240
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.004dc330
test eax, eax
jne 0x47946c
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x60f884
mov dword [esi + 0x7c], eax
call dword [edx + 0x90]
mov eax, dword [0x635490]
test eax, eax
je 0x4792ed
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4792ed
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x60f86c
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 [0x635490]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eba10
mov eax, dword [0x635490]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c560
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x47933b
push 0x60f86c
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 [0x62fce8]
mov byte [esp + 0x3c], 2
call fcn.00401140
mov eax, dword [0x62fcf0]
test eax, eax
je 0x47943a
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x47943a
mov bl, 4
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x47942a
mov cl, byte [edi + 0x88]
test cl, cl
je 0x47942a
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x479425
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x479425
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 0x479417
mov al, byte [edi + 0x80]
test al, al
jne 0x479417
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 0x479417
push 0x60f86c
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.004024b0
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x479357
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x479446
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 0x479547
mov ecx, ebx
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x47951a
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 0x610128
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 0x6020a0
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 0x479526
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