Function at 0x47c710
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5a9983
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
add eax, 3
push edi
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString_1
push 0x20
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::Find_2
mov edi, eax
cmp edi, 0xffffffff
jle 0x47cb08
lea ecx, [esp + 0x1c]
push edi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
sub eax, edi
push eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 8]
cmp ecx, 8
jne 0x47cb08
xor edi, edi
test ecx, ecx
jle 0x47c877
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
cmp byte [edi + eax], 0x30
jl 0x47cb08
push 1
push 0x39
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
push ecx
push edx
call ebp
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setg bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x47cb08
mov eax, dword [esp + 0x40]
inc edi
cmp edi, dword [eax - 8]
jl 0x47c831
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, eax
mov eax, 0x68db8bad
imul ecx
sar edx, 0xc
mov eax, edx
mov edi, 0x2710
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov ebx, edx
add esp, 4
cdq
idiv edi
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov ebp, edx
mov ecx, 0x64
cdq
idiv ecx
cmp ebx, 0x7d7
mov dword [esp + 0x1c], edx
jle 0x47cb08
cmp ebx, 0x7f5
jge 0x47cb08
cmp ebp, 1
jl 0x47cb08
cmp ebp, 0xc
jg 0x47cb08
cmp edx, 1
jl 0x47cb08
cmp edx, 0x1f
jg 0x47cb08
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x20]
mov byte [esp + 0x38], 5
mov al, byte [edx + 0x20]
test al, al
je 0x47c95a
mov ecx, dword [0x637760]
lea eax, [esp + 0x20]
push eax
call fcn.0058f7e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x78]
push ecx
mov byte [esp + 0x3c], 6
mov ecx, dword [edx + 0x10c]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x24]
push str.select__expire_date__from__s_where__delflag_0_and__group____d_and__account____s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov byte [esp + 0x38], 5
lea ecx, [esp + 0x20]
jmp 0x47c992
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [0x637760]
call fcn.0058f7e0
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x20]
push str.select__expire_date__from__s_where__delflag_0_and__account____s
push ecx
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [esp + 0x38], 5
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x38], 8
je 0x47c9be
push str.XGSP
mov ecx, eax
call fcn.004db9f0
mov edi, eax
jmp 0x47c9c0
xor edi, edi
mov edx, dword [esp + 0x18]
push 3
push 3
push 1
push edx
mov ecx, edi
mov byte [esp + 0x48], 5
call fcn.004dba80
test eax, eax
je 0x47cad0
mov ecx, edi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
je 0x47cad0
mov eax, dword [esp + 0x1c]
push 0x3b
push 0x3b
push 0x17
push eax
push ebp
push ebx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_COleDateTime::SetDateTime
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_COleDateTime::GetDay
or ebx, 0xffffffff
cmp eax, ebx
jne 0x47ca60
mov edx, dword [esi + 0x7c]
mov ecx, esi
inc edx
mov eax, edx
mov dword [esi + 0x7c], edx
mov edx, dword [esi]
push eax
push 0x612704
call dword [edx + 0x90]
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x38], ebx
jmp 0x47ccf9
lea eax, [esp + 0x24]
mov ecx, edi
push eax
push str.expire_date
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::PutCollect_char_const___class_COleDateTime_const__
mov ecx, edi
call fcn.004dbc50
test edi, edi
je 0x47ca84
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov edx, dword [esi + 0x7c]
mov ecx, esi
inc edx
mov eax, edx
mov dword [esi + 0x7c], edx
mov edx, dword [esi]
push eax
push 0x6126ec
call dword [edx + 0x90]
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x38], ebx
jmp 0x47ccf9
mov ebp, dword [esi + 0x7c]
mov edx, dword [esi]
inc ebp
mov ecx, esi
mov eax, ebp
mov dword [esi + 0x7c], ebp
push eax
push 0x61248c
call dword [edx + 0x90]
test edi, edi
je 0x47caf5
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
jmp 0x47ccd5
mov ebp, dword [esi + 0x7c]
mov edx, dword [esi]
inc ebp
mov ecx, esi
mov eax, ebp
mov dword [esi + 0x7c], ebp
push eax
push 0x6126b4
call dword [edx + 0x90]
mov eax, dword [0x637760]
test eax, eax
je 0x47cb8c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x47cb8c
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push str.PARAM_ERROR_
push str._RX_
push 0
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x30], 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 0x47cbda
push str.PARAM_ERROR_
push ecx
mov ecx, esp
mov dword [esp + 0x28], 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 + 0x28], esp
push edx
mov byte [esp + 0x48], 9
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov byte [esp + 0x44], 2
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x47ccd5
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x47ccd5
mov bl, 0xa
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x47ccc9
mov cl, byte [edi + 0x88]
test cl, cl
je 0x47ccc9
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x47ccc4
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47ccc4
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x38], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x47ccb6
mov al, byte [edi + 0x80]
test al, al
jne 0x47ccb6
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 0x47ccb6
push str.PARAM_ERROR_
push ecx
mov ecx, esp
mov dword [esp + 0x28], 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 + 0x24], esp
push edx
mov byte [esp + 0x48], 0xb
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x44], bl
call fcn.00402490
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x47cbf6
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 4