Function at 0x406910
Capabilities:
Get common file path
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41603e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov eax, dword [0x41b0e0]
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0xa8]
mov dword [esp + 0x254], eax
call fcn.0040afd0
push 0xb
xor edi, edi
push str.Option2.ini
lea ecx, [esp + 0x1c]
mov dword [esp + 0x26c], edi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.00402370
lea eax, [esp + 0x14]
push eax
lea esi, [ebx + 0x1954]
push esi
lea ecx, [esp + 0xb0]
mov byte [esp + 0x26c], 1
call fcn.0040b040
cmp dword [esp + 0x2c], 0x10
mov byte [esp + 0x264], 0
jb 0x4069b4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040c1b1
add esp, 4
xor edx, edx
xor eax, eax
mov dword [esp + 0x89], edx
mov dword [esp + 0x69], eax
mov dword [esp + 0x8d], edx
mov dword [esp + 0x6d], eax
mov dword [esp + 0x91], edx
mov dword [esp + 0x71], eax
mov dword [esp + 0x95], edx
mov dword [esp + 0x75], eax
mov dword [esp + 0x99], edx
mov dword [esp + 0x79], eax
push 0x20
mov dword [esp + 0xa1], edx
mov dword [esp + 0x81], eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0xa9], edx
mov dword [esp + 0x89], eax
mov word [esp + 0xad], dx
push str.COUNT
mov word [esp + 0x91], ax
push str.LIST
lea ecx, [esp + 0xb8]
mov byte [esp + 0x98], 0
mov byte [esp + 0xb7], dl
mov byte [esp + 0x78], dl
mov byte [esp + 0x97], al
call fcn.0040af70
lea edx, [esp + 0x68]
push edx
call fcn.0040c6e8
add esp, 4
push 0x20
mov dword [ebx + 0xcdc4], eax
lea eax, [esp + 0x6c]
push eax
push str.YOUNGSM
push str.SPONSOR
lea ecx, [esp + 0xb8]
call fcn.0040af70
lea ecx, [esp + 0x68]
push ecx
call fcn.0040c6e8
add esp, 4
push 0x20
lea edx, [esp + 0x6c]
push edx
push str.PLUSUP
push str.SPONSOR
lea ecx, [esp + 0xb8]
mov dword [ebx + 0x1595c8], eax
call fcn.0040af70
lea eax, [esp + 0x68]
push eax
call fcn.0040c6e8
add esp, 4
push 0x20
lea ecx, [esp + 0x6c]
push ecx
push 0x41747c
push 0x417478
lea ecx, [esp + 0xb8]
mov dword [ebx + 0x159fe0], eax
call fcn.0040af70
lea edx, [esp + 0x68]
push edx
call fcn.0040c6e8
add esp, 4
test eax, eax
setne al
lea ecx, [esp + 0x108]
mov byte [ebx + 0x15a9c8], al
call fcn.0040afd0
push 8
mov byte [esp + 0x268], 2
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], edi
mov byte [esp + 0x1c], 0
push str.User.ini
lea ecx, [esp + 0x1c]
call fcn.00402370
lea ecx, [esp + 0x14]
push ecx
push esi
lea ecx, [esp + 0x110]
mov byte [esp + 0x26c], 3
call fcn.0040b040
cmp dword [esp + 0x2c], 0x10
mov byte [esp + 0x264], 2
jb 0x406b65
mov edx, dword [esp + 0x18]
push edx
call fcn.0040c1b1
add esp, 4
push 0x20
lea eax, [esp + 0x6c]
push eax
push str.Portal
push str.LIST
lea ecx, [esp + 0x118]
call fcn.0040af70
lea ecx, [esp + 0x68]
push ecx
call fcn.0040c6e8
add esp, 4
push 0x20
lea edx, [esp + 0x6c]
push edx
push str.Finance
push str.LIST
lea ecx, [esp + 0x118]
mov word [ebx + 0x158768], ax
call fcn.0040af70
lea eax, [esp + 0x68]
push eax
call fcn.0040c6e8
add esp, 4
push 0x20
lea ecx, [esp + 0x6c]
push ecx
push str.Market
push str.LIST
lea ecx, [esp + 0x118]
mov word [ebx + 0x15876a], ax
call fcn.0040af70
lea edx, [esp + 0x68]
push edx
call fcn.0040c6e8
add esp, 4
push 0x20
mov word [ebx + 0x15876c], ax
lea eax, [esp + 0x6c]
push eax
push str.SocialCommerce
push str.LIST
lea ecx, [esp + 0x118]
call fcn.0040af70
lea ecx, [esp + 0x68]
push ecx
call fcn.0040c6e8
mov word [ebx + 0x15876e], ax
mov eax, dword [ebx + 0xcdc4]
add esp, 4
cmp eax, edi
mov dword [esp + 0x10], edi
jle 0x406da9
lea esi, [ebx + 0xcde8]
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x8c]
push str.LIST__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push pe_nt_image_headers32
lea ecx, [esi + 0x400]
push ecx
push str.ToolTip
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0xb8]
call fcn.0040af70
push 0x20
lea edi, [esi - 0x20]
push edi
push 0x4176a4
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xb8]
call fcn.0040af70
push 0x400
push esi
push 0x41739c
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0xb8]
call fcn.0040af70
push 0x400
lea edx, [esi + 0x614]
push edx
push str.O_URL
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xb8]
call fcn.0040af70
push 0x20
lea ecx, [esp + 0x6c]
push ecx
push str.Group
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0xb8]
call fcn.0040af70
lea eax, [esp + 0x68]
push eax
call fcn.0040c6e8
add esp, 4
push 0x20
lea ecx, [esp + 0x6c]
push ecx
push str.Define
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0xb8]
mov byte [esi + 0x600], al
call fcn.0040af70
lea eax, [esp + 0x68]
push eax
call fcn.0040c6e8
mov dword [esi + 0x604], eax
mov al, byte [esi + 0x600]
add esp, 4
cmp al, 0x63
mov dword [esi + 0x60c], 0
jne 0x406d8a
push 0x20
lea ecx, [esp + 0x6c]
push ecx
push str.NOAD
push edi
lea ecx, [esp + 0x118]
call fcn.0040af70
lea edx, [esp + 0x68]
push edx
call fcn.0040c6e8
add esp, 4
mov dword [esi + 0x60c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0xcdc4]
inc eax
add esi, 0xa34
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x406c41
xor edi, edi
push 0x20
lea eax, [esp + 0x6c]
push eax
push str.COUNT
push str.SPONSOR
lea ecx, [esp + 0xb8]
call fcn.0040af70
lea ecx, [esp + 0x68]
push ecx
call fcn.0040c6e8
add esp, 4
cmp eax, edi
mov dword [ebx + 0x24c8], eax
mov dword [esp + 0x10], edi
jle 0x406f58
lea esi, [ebx + 0x14bb78]
jmp 0x406df0
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x8c]
push str.SPONSOR__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push pe_nt_image_headers32
lea ecx, [esi + 0x400]
push ecx
push str.ToolTip
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0xb8]
call fcn.0040af70
push 0x20
lea edi, [esi - 0x20]
push edi
push 0x4176a4
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xb8]
call fcn.0040af70
push 0x400
push esi
push 0x41739c
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0xb8]
call fcn.0040af70
push 0x400
lea edx, [esi + 0x614]
push edx
push str.O_URL
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xb8]
call fcn.0040af70
push 0x20
lea ecx, [esp + 0x6c]
push ecx
push str.Group
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0xb8]
call fcn.0040af70
lea eax, [esp + 0x68]
push eax
call fcn.0040c6e8
add esp, 4
push 0x20
lea ecx, [esp + 0x6c]
push ecx
push str.Define
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0xb8]
mov byte [esi + 0x600], al
call fcn.0040af70
lea eax, [esp + 0x68]
push eax
call fcn.0040c6e8
mov dword [esi + 0x604], eax
mov al, byte [esi + 0x600]
add esp, 4
cmp al, 0x64
mov dword [esi + 0x60c], 0
jne 0x406f39
push 0x20
lea ecx, [esp + 0x6c]
push ecx
push str.NOAD
push edi
lea ecx, [esp + 0x118]
call fcn.0040af70
lea edx, [esp + 0x68]
push edx
call fcn.0040c6e8
add esp, 4
mov dword [esi + 0x60c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x24c8]
inc eax
add esi, 0xa34
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x406df0
xor edi, edi
cmp dword [ebx + 0x24c8], edi
jle 0x406f74
call fcn.0040c737
cdq
idiv dword [ebx + 0x24c8]
mov dword [ebx + 0x24c4], edx
jmp 0x406f7a
mov dword [ebx + 0x24c4], edi
xor eax, eax
mov byte [esp + 0x148], 0
mov ecx, 0x40
lea edi, [esp + 0x149]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x148]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov al, byte [ebx + 0x1591be]
test al, al
je 0x407311
lea ecx, [esp + 0x30]
push ecx
mov byte [ebx + 0x1591be], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x32]
movzx ecx, word [esp + 0x30]
xor edx, edx
mov dword [esp + 0xe9], edx
mov dword [esp + 0xed], edx
mov dword [esp + 0xf1], edx
mov dword [esp + 0xf5], edx
mov dword [esp + 0xf9], edx
mov dword [esp + 0xfd], edx
mov dword [esp + 0x101], edx
push eax
mov word [esp + 0x109], dx
push ecx
mov byte [esp + 0x10f], dl
lea edx, [esp + 0xf0]
push str._04d_02d.con
push edx
mov byte [esp + 0xf8], 0
call dword [sym.imp.USER32.dll_wsprintfA]
xor eax, eax
mov dword [esp + 0xd9], eax
mov dword [esp + 0xdd], eax
mov dword [esp + 0xe1], eax
mov dword [esp + 0xe5], eax
mov dword [esp + 0xe9], eax
mov dword [esp + 0xed], eax
mov dword [esp + 0xf1], eax
mov word [esp + 0xf5], ax
add esp, 0x10
lea ecx, [esp + 0x128]
mov byte [esp + 0xc8], 0
mov byte [esp + 0xe7], al
call fcn.0040afd0
mov esi, 0xf
xor edi, edi
lea eax, [esp + 0xe8]
mov byte [esp + 0x264], 4
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov byte [esp + 0x50], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4070b0
sub eax, edx
push eax
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x54]
call fcn.00402370
lea eax, [esp + 0x148]
mov byte [esp + 0x264], 5
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4070f0
sub eax, edx
push eax
lea edx, [esp + 0x14c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402370
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x130]
mov byte [esp + 0x26c], 6
call fcn.0040b040
mov eax, dword [esp + 0x2c]
mov esi, 0x10
cmp eax, esi
jb 0x407143
mov edx, dword [esp + 0x18]
push edx
call fcn.0040c1b1
add esp, 4
cmp dword [esp + 0x64], esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
mov byte [esp + 0x264], 4
jb 0x40716f
mov eax, dword [esp + 0x50]
push eax
call fcn.0040c1b1
add esp, 4
push 0x20
lea ecx, [esp + 0xcc]
push ecx
push str.SHOW
push str.INFO
lea ecx, [esp + 0x138]
call fcn.0040af70
lea edx, [esp + 0xc8]
push edx
call fcn.0040c6e8
add esp, 4
test eax, eax
jne 0x40729b
push pe_nt_image_headers32
push 0x4177d4
push str.SHOW
push str.INFO
lea ecx, [esp + 0x138]
call fcn.0040afb0
push 0x20
lea eax, [esp + 0x6c]
push eax
push 0x41747c
push str.SETUP_AD
lea ecx, [esp + 0xb8]
call fcn.0040af70
lea ecx, [esp + 0x68]
push ecx
call fcn.0040c6e8
add esp, 4
test eax, eax
je 0x40729b
push 0x20
lea edx, [esp + 0x6c]
push edx
push str.NUMBER
push str.SETUP_AD
lea ecx, [esp + 0xb8]
call fcn.0040af70
lea eax, [esp + 0x68]
push eax
call fcn.0040c6e8
add esp, 4
push 0x20
lea ecx, [ebx + 0x158788]
push ecx
push 0x4176a4
push str.SETUP_AD
lea ecx, [esp + 0xb8]
mov word [ebx + 0x1591bc], ax
call fcn.0040af70
push 0x20
lea edx, [esp + 0x6c]
push edx
push str.Group
push str.SETUP_AD
lea ecx, [esp + 0xb8]
call fcn.0040af70
lea eax, [esp + 0x68]
push eax
call fcn.0040c6e8
add esp, 4
cmp al, 1
mov byte [ebx + 0x158da8], al
jne 0x4072b1
mov cx, word [ebx + 0x158768]
cmp cx, word [ebx + 0x1591bc]
je 0x4072ed
mov byte [ebx + 0x158786], 1
mov byte [ebx + 0x158785], 1
lea ecx, [esp + 0x128]
mov byte [esp + 0x264], 2
call fcn.0040aff0
jmp 0x407313
cmp al, 2
jne 0x4072c5
mov dx, word [ebx + 0x15876a]
cmp dx, word [ebx + 0x1591bc]
jmp 0x40728b
cmp al, 3
jne 0x4072d9
mov ax, word [ebx + 0x15876c]
cmp ax, word [ebx + 0x1591bc]
jmp 0x40728b
cmp al, 4
jne 0x40728d
mov cx, word [ebx + 0x15876e]
cmp cx, word [ebx + 0x1591bc]
jne 0x40728d
lea ecx, [esp + 0x128]
mov byte [ebx + 0x158786], 0
mov byte [ebx + 0x158785], 0
mov byte [esp + 0x264], 2
call fcn.0040aff0
jmp 0x407313
xor edi, edi
push 0x200
lea esi, [ebx + 0x1595cc]
push esi
push str.NAME
push str.SITE
lea ecx, [esp + 0x118]
call fcn.0040af70
push 8
lea edx, [esp + 0x6c]
push edx
push 0x41747c
push esi
lea ecx, [esp + 0x118]
call fcn.0040af70
lea eax, [esp + 0x68]
push eax
call fcn.0040c6e8
add esp, 4
cmp eax, 1
mov dword [ebx + 0x1597cc], eax
jne 0x4074d7
lea ecx, [esp + 0xc8]
mov dword [ebx + 0x24c4], edi
call fcn.0040afd0
push 0xc
push str.icondata.ini
lea ecx, [esp + 0x38]
mov byte [esp + 0x26c], 7
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
call fcn.00402370
lea eax, [esp + 0x148]
mov byte [esp + 0x264], 8
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4073c8
sub eax, edx
push eax
lea ecx, [esp + 0x14c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402370
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x26c], 9
call fcn.0040b040
cmp dword [esp + 0x2c], 0x10
jb 0x407415
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040c1b1
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
mov byte [esp + 0x264], 7
jb 0x407442
mov edx, dword [esp + 0x34]
push edx
call fcn.0040c1b1
add esp, 4
push pe_nt_image_headers32
lea eax, [ebx + 0x14bf78]
push eax
push str.NAME
push esi
lea ecx, [esp + 0xd8]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
call fcn.0040af70
push pe_nt_image_headers32
lea ecx, [ebx + 0x14bb78]
push ecx
push 0x4177bc
push esi
lea ecx, [esp + 0xd8]
call fcn.0040af70
push pe_nt_image_headers32
lea edx, [ebx + 0x14c18c]
push edx
push 0x4177bc
push esi
lea ecx, [esp + 0xd8]
call fcn.0040af70
push esi
lea eax, [ebx + 0x14bb58]
push 0x417374
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0xc8]
mov byte [esp + 0x264], 2
call fcn.0040aff0
push 0x3e7
mov ecx, ebx
call fcn.00406680
lea ecx, [esp + 0x108]
mov byte [esp + 0x264], 0
call fcn.0040aff0
lea ecx, [esp + 0xa8]
mov dword [esp + 0x264], 0xffffffff
call fcn.0040aff0
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x254]
call fcn.0040c0d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret