Function at 0x50d640
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5ba7f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x63ac10]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x10], ecx
je 0x50d6ca
cmp byte [eax + 0x40], bl
je 0x50d6ca
add eax, 0x250
push eax
call ebp
push ebx
push 0x6272b4
push 0x60e5d8
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x63ac10]
push str.runtime
push 0x60677c
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]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x6272b4
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x58], ebx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x60e5d8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x5c], 1
mov ecx, esp
mov dword [esp + 0x44], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x60], 2
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x606778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357ec]
or edi, 0xffffffff
mov dword [esp + 0x60], edi
call fcn.004590c0
push 0x30
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov dword [esp + 0x50], 3
je 0x50d753
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CSslClientSocket::constructor_void_
mov esi, eax
jmp 0x50d755
xor esi, esi
mov edx, dword [esi]
push 0x1bb
push str.cs03.eterm.com.cn
mov ecx, esi
mov dword [esp + 0x58], edi
call dword [edx + 0x4c]
cmp eax, 1
jne 0x50d77d
mov eax, dword [esi]
push 0xa
push str.1234567890
mov ecx, esi
call dword [eax + 0x48]
cmp esi, ebx
je 0x50d78a
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [0x63ac10]
cmp eax, ebx
je 0x50d7ec
cmp byte [eax + 0x40], bl
je 0x50d7ec
add eax, 0x250
push eax
call ebp
push ebx
push 0x627280
push 0x60e5d8
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x63ac10]
push str.runtime
push 0x60677c
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]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x627280
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x58], 4
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x60e5d8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x5c], 5
mov ecx, esp
mov dword [esp + 0x44], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x60], 6
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x606778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357ec]
mov dword [esp + 0x60], edi
call fcn.004590c0
call fcn.0044c8d0
cmp byte [eax + 0x218], bl
je 0x50d92e
mov eax, dword [0x63ac10]
cmp eax, ebx
je 0x50d8c4
cmp byte [eax + 0x40], bl
je 0x50d8c4
add eax, 0x250
push eax
call ebp
push ebx
push 0x627264
push 0x60e5d8
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63ac10]
push str.runtime
push 0x60677c
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ec730
mov eax, dword [0x63ac10]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x627264
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x58], 7
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x60e5d8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x5c], 8
mov ecx, esp
mov dword [esp + 0x44], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x60], 9
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x606778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357ec]
mov dword [esp + 0x60], edi
call fcn.004590c0
jmp 0x50e5a8
mov ecx, dword [esp + 0x10]
call fcn.0050e5c0
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov dword [esp + 0x50], 0xa
je 0x50d961
push str.XGSP
mov ecx, eax
call fcn.004dd020
mov edi, eax
jmp 0x50d963
xor edi, edi
or esi, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], edi
mov dword [esp + 0x50], esi
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x63ac10]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x54], 0xb
call fcn.005933b0
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push str.select__from__s_where__delflag_0_and__disable_0_and__group_disable_0_order_by__group_id_
push edx
mov byte [esp + 0x5c], 0xc
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x50], 0xb
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push 3
push 3
push 1
push eax
mov ecx, edi
call fcn.004dd0b0
cmp eax, ebx
jne 0x50dac4
cmp edi, ebx
je 0x50d9dd
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [0x63ac10]
cmp eax, ebx
je 0x50da3f
cmp byte [eax + 0x40], bl
je 0x50da3f
add eax, 0x250
push eax
call ebp
push ebx
push str.ETerm
push 0x606790
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x63ac10]
push str.runtime
push str.tdsms
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]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.ETerm
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x58], 0xd
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x606790
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x5c], 0xe
mov ecx, esp
mov dword [esp + 0x44], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x60], 0xf
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x6132c0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357ec]
mov byte [esp + 0x60], 0xb
call fcn.004590c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], esi
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0x10
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [esp + 0x50], 0x11
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x50e079