Function at 0x404180
Capabilities:
Access peb ldr_data
Get common file path
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42b30c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x474
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x2c]
call dword [sym.imp.inNet.dll_public:_void___thiscall_CWebWorld::constructor_void_]
mov dword [esp + 0x48c], 0
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
mov byte [esp + 0x280], 0
mov ecx, 0x7f
lea edi, [esp + 0x281]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x80], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [esp + 0x48c], 1
stosb byte es:[edi], al
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x48c], 2
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x48c], 3
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x48c], 4
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
mov byte [esp + 0x48c], 5
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x30], ebp
mov byte [esp + 0x48c], 6
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov bl, 7
lea eax, [esp + 0x80]
mov byte [esp + 0x48c], bl
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, 0x64
jbe 0x404312
lea eax, [esi - 0x10]
mov byte [esp + 0x48c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x48c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40430a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
jmp 0x404491
lea eax, [esp + 0x80]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404320
sub eax, edx
push eax
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x2c]
call fcn.004018e0
lea edi, [esp + 0x80]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404343
mov ecx, dword [str.cclib.ini]
mov edx, dword [0x42c8c8]
mov ax, word [0x42c8cc]
mov dword [edi], ecx
mov cl, byte [0x42c8ce]
mov dword [edi + 4], edx
lea edx, [esp + 0x80]
mov word [edi + 8], ax
push edx
mov byte [edi + 0xa], cl
call fcn.00403fa0
add esp, 4
test eax, eax
je 0x404442
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x80]
push eax
push 0x200
lea ecx, [esp + 0x288]
push ecx
push 0x42c6e9
push str.version
push str.cclib
call esi
lea eax, [esp + 0x280]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4043c0
sub eax, edx
cmp eax, 5
jge 0x4043ec
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x48c], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40445e
lea eax, [esp + 0x280]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402580
lea ecx, [esp + 0x80]
push ecx
push 0x200
lea edx, [esp + 0x288]
push edx
push str.http:__www.cclib.com.cn_client_clientconfig.xml
push str.UpdateURL
push str.cclib
call esi
lea eax, [esp + 0x280]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404430
sub eax, edx
cmp eax, 5
jge 0x404558
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x48c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404468
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x48c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40448a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x48c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x48c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x48c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x48c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x48c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404548
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x48c], 0xffffffff
jmp 0x404829
lea eax, [esp + 0x280]
push eax
lea ecx, [esp + 0x24]
call fcn.00402580
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x34]
call dword [sym.imp.inNet.dll_public:_int___thiscall_CWebWorld::GetWebPage_char_const___class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.inNet.dll_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char______cdecl_XMLFind_char_const___char_const__]
push str.version
push eax
lea ecx, [esp + 0x3c]
push ecx
call esi
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x490], 8
call fcn.00401e60
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or ebp, 0xffffffff
mov byte [esp + 0x48c], bl
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4045d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.004016a0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0x498], 9
call fcn.004016a0
mov byte [esp + 0x494], bl
call dword [sym.imp.inNet.dll_int___cdecl_VersionCompare_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char____]
add esp, 8
test eax, eax
jge 0x4047e3
mov eax, dword [esp + 0x14]
push str.UpdateFileUrl
push eax
lea ecx, [esp + 0x3c]
push ecx
call esi
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x490], 0xa
call fcn.00401e60
lea ecx, [esp + 0x34]
mov byte [esp + 0x48c], bl
call fcn.00401500
mov edx, dword [esp + 0x14]
push str.UpdateFileName
push edx
lea eax, [esp + 0x3c]
push eax
call esi
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x490], 0xb
call fcn.00401e60
lea ecx, [esp + 0x34]
mov byte [esp + 0x48c], bl
call fcn.00401500
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4047e3
mov edi, dword [esp + 0x30]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x4047e3
push 0x42c85c
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004040c0
lea ecx, [esp + 0x3c]
push ecx
push eax
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x4a4], 0xc
call fcn.00401fb0
add esp, 0x18
mov bl, 0xe
lea ecx, [esp + 0x40]
mov byte [esp + 0x48c], bl
call fcn.00401500
lea ecx, [esp + 0x4c]
call fcn.004016f0
mov eax, dword [esp + 0x3c]
push eax
push esi
lea ecx, [esp + 0x54]
mov byte [esp + 0x494], 0xf
call fcn.00403900
test eax, eax
je 0x4047ca
push 0
push 4
push 0x42c82c
call fcn.00424a21
cmp eax, 6
jne 0x4047c2
lea ecx, [esp + 0x44]
push ecx
push 0x403df0
mov dword [esp + 0x4c], 0
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [esp + 0x34]
call fcn.00401680
push ecx
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x494], 0x10
call fcn.004016a0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.inNet.dll_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char______cdecl_GetFileName_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char____]
add esp, 8
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0xc]
test eax, eax
mov byte [esp + 0x48c], 0x11
jle 0x404789
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x34]
call fcn.00401e60
mov edi, dword [esp + 0x30]
push edi
lea eax, [esp + 0x38]
push str.msiexec__i__s
push eax
call fcn.00401f90
add esp, 0xc
push 1
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x38]
call fcn.00401500
lea ecx, [esp + 0x34]
call fcn.00401500
push 0x12
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x48c], bl
call fcn.00401760
lea ecx, [esp + 0x3c]
call fcn.00401500
lea ecx, [esp + 0x24]
call fcn.00401500
lea ecx, [esp + 0x30]
call fcn.00401500
lea ecx, [esp + 0x28]
call fcn.00401500
lea ecx, [esp + 0x18]
call fcn.00401500
lea ecx, [esp + 0x1c]
call fcn.00401500
lea ecx, [esp + 0x20]
call fcn.00401500
lea ecx, [esp + 0x14]
call fcn.00401500
mov dword [esp + 0x48c], ebp
lea ecx, [esp + 0x2c]
call dword [sym.imp.inNet.dll_public_virtual:_void___thiscall_CWebWorld::destructor_void_]
mov ecx, dword [esp + 0x484]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret