Function at 0x4c6620
Capabilities:
Check os version
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4fe283
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], ebx
call sub.MFC42.DLL_CString::CString_4
xor edi, edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14c], edi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x7c]
mov byte [esp + 0x14c], 2
call fcn.0044a000
push edi
lea ecx, [esp + 0x118]
mov byte [esp + 0x150], 3
call fcn.0044e9a0
push edi
lea ecx, [esp + 0x70]
mov byte [esp + 0x150], 4
call fcn.0044e9a0
push edi
lea ecx, [esp + 0x50]
mov byte [esp + 0x150], 5
call fcn.0044e9a0
push edi
lea ecx, [esp + 0x60]
mov byte [esp + 0x150], 6
call fcn.0044e9a0
push edi
lea ecx, [esp + 0x128]
mov byte [esp + 0x150], 7
call fcn.0044e9a0
push edi
lea ecx, [esp + 0x138]
mov byte [esp + 0x150], 8
call fcn.0044e9a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 9
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [sym.imp.MSVCRT.dll_rand]
mov byte [esp + 0x14c], 0xa
mov dword [esp + 0x10], edi
call esi
and eax, 0xffff
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp qword [esp + 0x3c]
call esi
and eax, 0xffff
sub esp, 8
mov dword [esp + 0x1c], eax
mov eax, dword [0x536d10]
fild dword [esp + 0x1c]
mov ecx, dword [eax + 0x278]
lea edx, [esp + 0x38]
fmul qword [esp + 0x44]
fmul qword [0x504730]
fstp qword [esp]
push ecx
push str.http:__appbase.qzone.qq.com_cgi_bin_freegift_freegift_get_frds_appid353uin_ucb1r_.16lf
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
push edi
push edi
push edi
push edi
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x5307a8
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x16c], 0xb
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [0x536d10]
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x16c], 0xa
lea ecx, [edx + 0x17c]
call fcn.00410fa0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 0xc
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 0xa
call sub.MFC42.DLL_CString::CString
push 0x52693c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_1
push 0x29
lea ecx, [esp + 0x20]
mov esi, eax
call sub.MFC42.DLL_CString::ReverseFind
cmp esi, edi
jl 0x4c6de7
test eax, eax
jl 0x4c6de7
sub eax, esi
lea ecx, [esp + 0x1c]
dec eax
inc esi
push eax
lea eax, [esp + 0x18]
push esi
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x150], 0xd
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 0xa
call sub.MFC42.DLL_CString::CString
xor esi, esi
lea ecx, [esp + 0x24]
push esi
call sub.MFC42.DLL_CString::GetBuffer
mov cl, byte [esp + 0x37]
mov edx, eax
mov byte [esp + 0x3c], cl
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea edx, [esp + 0x114]
push 1
lea eax, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x158], 0xe
call fcn.0044a090
and eax, 0xff
mov byte [esp + 0x14c], 0xa
mov edi, eax
mov eax, dword [esp + 0x40]
cmp eax, esi
mov dword [esp + 0x2c], edi
je 0x4c68d5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4c68cc
cmp al, 0xff
je 0x4c68cc
dec al
mov byte [ecx], al
jmp 0x4c68d5
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp edi, esi
je 0x4c6de7
push str.friends
lea ecx, [esp + 0x118]
call fcn.0044fea0
push eax
lea ecx, [esp + 0x70]
call fcn.0044f040
push str.gpnames
lea ecx, [esp + 0x118]
call fcn.0044fea0
push eax
lea ecx, [esp + 0x50]
call fcn.0044f040
lea ecx, [esp + 0x6c]
call fcn.0044f140
cmp eax, 6
jne 0x4c6a00
lea ecx, [esp + 0x4c]
call fcn.0044f140
cmp eax, 6
jne 0x4c6a00
lea ecx, [esp + 0x6c]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x14], 0
call fcn.0044fc80
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
test eax, eax
jbe 0x4c6b51
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x70]
call fcn.0044fd30
push eax
lea ecx, [esp + 0x60]
call fcn.0044f040
lea ecx, [esp + 0x5c]
call fcn.0044f140
cmp eax, 7
jne 0x4c6b37
push str.groupid
lea ecx, [esp + 0x60]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x18]
mov edi, eax
push 0x52696c
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x4c]
xor esi, esi
call fcn.0044fc80
test eax, eax
jbe 0x4c6a54
push str.gpid
push esi
lea ecx, [esp + 0x54]
call fcn.0044fd30
mov ecx, eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
cmp eax, edi
je 0x4c6a0d
lea ecx, [esp + 0x4c]
inc esi
call fcn.0044fc80
cmp esi, eax
jb 0x4c69cd
jmp 0x4c6a54
mov dword [esp + 0x2c], 0
jmp 0x4c6de7
push str.gpname
push esi
lea ecx, [esp + 0x54]
call fcn.0044fd30
mov ecx, eax
call fcn.0044fea0
lea edx, [esp + 0x20]
push eax
push edx
call fcn.0040c8b0
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x150], 0xf
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0xa
call sub.MFC42.DLL_CString::CString
push 0x526278
lea ecx, [esp + 0x60]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
mov esi, eax
mov eax, dword [0x536d10]
push 1
push esi
lea ecx, [eax + 0x17c]
call fcn.0041e6f0
test eax, eax
je 0x4c6b37
push 0x90
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x24
xor eax, eax
mov dword [esp + 0x14], edi
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x14]
add esp, 4
xor ecx, ecx
mov dword [edx + 0xc], ecx
mov eax, dword [esp + 0x10]
mov dword [eax], esi
mov esi, dword [esp + 0x10]
lea eax, [ebx + 0x64]
mov edx, dword [eax]
test edx, edx
je 0x4c6ac4
cmp edx, dword [esi]
je 0x4c6acf
inc ecx
add eax, 4
cmp ecx, 0x32
jb 0x4c6aba
jmp 0x4c6ada
mov dword [esi + 0xc], 1
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push 0x3f
add esi, 0x50
push ecx
push esi
call ebp
add esp, 0xc
lea ecx, [esp + 0x5c]
push str.name
call fcn.0044fea0
lea edx, [esp + 0x28]
push eax
push edx
call fcn.0040c8b0
mov eax, dword [eax]
push 0x3f
push eax
mov eax, dword [esp + 0x20]
add eax, 0x10
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 0x134]
lea edx, [esp + 0x10]
push edx
push 1
lea ecx, [ebx + 0x12c]
push eax
call fcn.0047f0e0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x6c]
inc esi
mov dword [esp + 0x14], esi
call fcn.0044fc80
cmp esi, eax
jb 0x4c6969
push 0x526950
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_3
mov eax, dword [0x536d10]
mov eax, dword [eax + 0x210]
test eax, eax
je 0x4c6de7
jmp 0x4c6b78
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [esi + 0x24]
test edx, edx
je 0x4c6ddb
mov eax, dword [0x536d10]
cmp edx, dword [eax + 0x278]
je 0x4c6ddb
mov ecx, dword [ebx + 0x130]
lea ebp, [ebx + 0x12c]
test ecx, ecx
jne 0x4c6bb1
xor eax, eax
jmp 0x4c6bb9
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
xor ecx, ecx
test eax, eax
jle 0x4c6bd5
mov edi, dword [ebx + 0x130]
mov ebx, dword [edi + ecx*4]
cmp dword [ebx], edx
je 0x4c6bd1
inc ecx
cmp ecx, eax
jl 0x4c6bc5
mov ebx, dword [esp + 0x38]
cmp ecx, eax
jne 0x4c6ddb
push 0x90
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x24
xor eax, eax
mov dword [esp + 0x14], edi
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x14]
add esp, 4
xor ecx, ecx
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x3c]
mov dword [edx + 4], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x24]
mov dword [edx], eax
mov edi, dword [esp + 0x10]
lea eax, [ebx + 0x64]
mov edx, dword [eax]
test edx, edx
je 0x4c6c26
cmp edx, dword [edi]
je 0x4c6c31
inc ecx
add eax, 4
cmp ecx, 0x32
jb 0x4c6c1c
jmp 0x4c6c3c
mov dword [edi + 0xc], 1
mov edi, dword [esp + 0x10]
mov dword [edi + 8], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push 0x3f
add ecx, 0x50
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
push 0x3f
add edx, 0x10
push eax
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebx + 0x134]
sub ecx, eax
sar ecx, 2
add esp, 0x18
cmp ecx, 1
jae 0x4c6d4f
mov edx, dword [ebp + 4]
test edx, edx
je 0x4c6c9c
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4c6ca1
mov ecx, 1
test edx, edx
jne 0x4c6ca9
xor eax, eax
jmp 0x4c6cae
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x20], eax
jge 0x4c6cba
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MFC42.DLL_operatornew
mov edi, dword [ebp + 4]
add esp, 4
cmp edi, esi
mov dword [esp + 0x28], eax
mov ebx, eax
je 0x4c6ceb
push edi
push ebx
call fcn.004b13b0
add edi, 4
add esp, 8
add ebx, 4
cmp edi, esi
jne 0x4c6cd7
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004b13b0
mov edi, dword [ebp + 8]
add esp, 8
cmp esi, edi
je 0x4c6d17
add ebx, 4
push esi
push ebx
call fcn.004b13b0
add esi, 4
add esp, 8
add ebx, 4
cmp esi, edi
jne 0x4c6d03
mov eax, dword [ebp + 4]
push eax
mov dword [esp + 0x40], eax
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esp, 4
lea edx, [esi + ecx*4]
mov ecx, ebp
mov dword [ebp + 0xc], edx
call fcn.004a9270
mov ebx, dword [esp + 0x38]
lea eax, [esi + eax*4 + 4]
mov dword [ebp + 8], eax
mov dword [ebp + 4], esi
jmp 0x4c6ddb
mov ecx, eax
sub ecx, esi
sar ecx, 2
cmp ecx, 1
jae 0x4c6d9d
lea edx, [esi + 4]
mov ecx, ebp
push edx
push eax
push esi
call fcn.004b1440
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
sub edx, esi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, ebp
call fcn.004b1410
mov eax, dword [ebp + 8]
cmp esi, eax
je 0x4c6dd7
mov edx, dword [esp + 0x10]
mov dword [esi], edx
add esi, 4
cmp esi, eax
jne 0x4c6d8e
jmp 0x4c6dd7
push eax
push eax
add eax, 0xfffffffc
mov ecx, ebp
push eax
call fcn.004b1440
mov ecx, dword [ebp + 8]
lea eax, [ecx - 4]
cmp esi, eax
je 0x4c6dc3
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0x4c6db4
lea eax, [esi + 4]
cmp esi, eax
je 0x4c6dd7
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0x4c6dca
add dword [ebp + 8], 4
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4c6b74
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x134]
mov byte [esp + 0x14c], 8
call fcn.0044eec0
lea ecx, [esp + 0x124]
mov byte [esp + 0x14c], 7
call fcn.0044eec0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x14c], 6
call fcn.0044eec0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x14c], 5
call fcn.0044eec0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x14c], 4
call fcn.0044eec0
lea ecx, [esp + 0x114]
mov byte [esp + 0x14c], 3
call fcn.0044eec0
mov eax, dword [esp + 0x104]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x14c], 0x10
je 0x4c6e99
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4c6e90
cmp al, 0xff
je 0x4c6e90
dec al
mov byte [ecx], al
jmp 0x4c6e99
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x104], esi
cmp eax, esi
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], esi
je 0x4c6ed6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4c6ecd
cmp al, 0xff
je 0x4c6ecd
dec al
mov byte [ecx], al
jmp 0x4c6ed6
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xe0], esi
cmp eax, esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe8], esi
je 0x4c6ff0
mov ecx, dword [esp + 0xb8]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xbc], ecx
lea ecx, [eax + 0xc]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0xd8]
dec eax
mov dword [esp + 0xd8], eax
je 0x4c6f3f
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
cmp edx, eax
jne 0x4c6fe3
mov eax, dword [esp + 0xbc]
mov ecx, eax
add eax, 4
mov dword [esp + 0xbc], eax
mov ecx, dword [ecx]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xdc]
add esp, 4
cmp eax, esi
jne 0x4c6fb8
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xd0]
xor edx, edx
push eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4c6fe3
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb8], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0xb4], edx
cmp dword [esp + 0xd8], esi
jne 0x4c6efa
cmp dword [esp + 0xa8], esi
je 0x4c70e0
mov edi, 4
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0xa8]
add ecx, edi
dec eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0xa8], eax
je 0x4c7030
cmp ecx, dword [esp + 0x84]
jne 0x4c70d3
mov ecx, dword [esp + 0x8c]
mov eax, ecx
add ecx, edi
mov dword [esp + 0x8c], ecx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xac]
add esp, 4
cmp eax, esi
jne 0x4c70a8
xor edx, edx
xor eax, eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0xa0]
xor ecx, ecx
push edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0xa0], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4c70d3
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x84], edx
cmp dword [esp + 0xa8], esi
jne 0x4c7002
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x140
ret