Function at 0x4a5340
Capabilities:
Get number of processors
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5b53c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x641030]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
cmp eax, edi
mov dword [esp + 0x30], ebp
je 0x4a57e7
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x4a57e7
mov eax, dword [eax + 4]
cmp eax, edi
je 0x4a57e7
mov cl, byte [eax + 0x340]
test cl, cl
je 0x4a57e7
cmp dword [ebp + 0x2c], edi
je 0x4a57e7
mov eax, dword [ebp + 0x28]
mov byte [esp + 0x13], 0
mov esi, dword [eax]
cmp esi, edi
jne 0x4a53ca
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x28]
dec eax
je 0x4a57e4
lea edx, [eax*4]
lea eax, [ecx + 4]
push edx
push eax
jmp 0x4a57da
cmp byte [esi], 0
je 0x4a5649
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 8]
lea ebx, [esi + 8]
push ecx
lea edx, [esp + 0x18]
push str.SELECT_TOP_1_pnr_FROM__pnr_rec__WHERE_pnr_s
push edx
mov dword [esp + 0x48], edi
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x2c], eax
cmp eax, edi
mov byte [esp + 0x3c], 1
je 0x4a541b
push str.PNRR
mov ecx, eax
call fcn.004ddd00
mov edi, eax
mov eax, dword [esp + 0x14]
push 3
push 3
push 1
push eax
mov ecx, edi
mov byte [esp + 0x4c], 0
call fcn.004ddd90
test eax, eax
je 0x4a54a3
mov ecx, edi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x4a54a3
test edi, edi
je 0x4a544d
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov ecx, esi
call fcn.00458d00
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x28]
add esp, 4
dec eax
je 0x4a5478
shl eax, 2
lea edx, [ecx + 4]
push eax
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, dword [ebp + 0x2c]
lea ecx, [esp + 0x14]
dec eax
mov dword [esp + 0x3c], 0xffffffff
mov dword [ebp + 0x2c], eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
test edi, edi
je 0x4a54af
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea edi, [ebp + 0x58]
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push ebx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esi + 0x24]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x48], 0
call fcn.004a6100
test al, al
je 0x4a562e
push edi
mov ecx, esi
call fcn.004a6580
test al, al
je 0x4a562e
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea edi, [esi + 0x5c]
push 0
mov ecx, edi
mov byte [esp + 0x40], 3
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax]
push 0
mov dword [esp + 0x20], ecx
mov ecx, edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 4]
push 0
mov ecx, edi
mov dword [esp + 0x24], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 8]
push 0
mov ecx, edi
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 0xc]
push 0
mov dword [esp + 0x2c], ecx
mov ecx, edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 0x10]
push 0
mov ecx, edi
inc ebp
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
push edx
mov edx, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 0x40]
push edx
mov edx, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x3c]
push edx
mov edx, dword [esi + 0x38]
push ecx
mov ecx, dword [esi + 0x34]
push edx
mov edx, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x30]
mov eax, dword [eax + 0x14]
push edx
mov edx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0x50]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esi + 0x20]
add eax, 0x76c
push ecx
mov ecx, dword [esi + 0x18]
push ebp
push eax
mov eax, dword [esi + 0x1c]
push edx
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [esi + 0x28]
push ecx
mov ecx, dword [esi + 0x24]
push edx
push eax
push ecx
mov edx, dword [ebx]
lea eax, [esp + 0x78]
push edx
push str.INSERT_INTO_pnr_rec_pnr__account__contact_way__role_id__role_name__group_id__group_name__action_state__mark_state__rec_time_tktl_line__pnr_state__passenger_count__passenger__carrier__flight_no__class__voyage_count__voyage__bpnr__departure_time__arrival_time__VALUES__s___s___s___d___s___d___s__
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x84]
mov eax, dword [0x641030]
add esp, 0x6c
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [eax + 8]
push str.PNRR
push edx
call sym.ETermProxy.exe_public:_class__com_ptr_t_class__com_IIID_struct_ADODB::_Recordset__struct___s_GUID__GUID_00000556_0000_0010_8000_00aa006d2ea4_____thiscall_CDBConnCollect::Execute_char___char_const__
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4a5608
mov byte [esp + 0x13], 1
jmp 0x4a560b
inc dword [esi + 0x58]
test eax, eax
mov byte [esp + 0x3c], 3
je 0x4a561a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x30]
jmp 0x4a5631
inc dword [esi + 0x58]
cmp dword [esi + 0x58], 3
jl 0x4a563c
mov byte [esp + 0x13], 1
or edi, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], edi
jmp 0x4a56c0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
lea ebx, [esi + 8]
push edx
push eax
lea ecx, [esp + 0x20]
push str.UPDATE_pnr_rec_SET_action_state___s_WHERE_pnr_s
push ecx
mov dword [esp + 0x4c], 5
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
mov ecx, dword [0x641030]
add esp, 0x10
lea eax, [esp + 0x30]
mov ecx, dword [ecx + 8]
push edx
push str.PNRR
push eax
call sym.ETermProxy.exe_public:_class__com_ptr_t_class__com_IIID_struct_ADODB::_Recordset__struct___s_GUID__GUID_00000556_0000_0010_8000_00aa006d2ea4_____thiscall_CDBConnCollect::Execute_char___char_const__
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x4a56a3
mov byte [esp + 0x13], 1
jmp 0x4a56a6
inc dword [esi + 0x58]
cmp eax, edi
mov byte [esp + 0x3c], 5
je 0x4a56b5
mov edx, dword [eax]
push eax
call dword [edx + 8]
or edi, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edi
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x4a57e7
mov dword [esp + 0x2c], esi
lea ecx, [esi + 0x64]
mov dword [esp + 0x3c], 0x17
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x60]
mov byte [esp + 0x3c], 0x16
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x54]
mov byte [esp + 0x3c], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x50]
mov byte [esp + 0x3c], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x4c]
mov byte [esp + 0x3c], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [esp + 0x3c], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [esp + 0x3c], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x3c], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x3c], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x3c], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [esp + 0x3c], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x3c], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x3c], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x3c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x3c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [esp + 0x3c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x3c], 7
call sub.MFC42.DLL_CString::CString
mov ecx, ebx
mov dword [esp + 0x3c], edi
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x28]
add esp, 4
dec eax
je 0x4a57e4
shl eax, 2
lea edx, [ecx + 4]
push eax
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
dec dword [ebp + 0x2c]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret