Function at 0x40f670
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42674b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
mov eax, dword [0x431468]
push ebx
mov dword [esp + 0x42c], eax
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [esp + 0x20], bx
mov ecx, 0x81
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00414245
add esp, 8
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [esp + 0x20]
push eax
call fcn.00410a20
push 0x5b
push str..StartMenuBuilderEx.cpp
push str._n__s:__d_
call fcn.0040fe40
lea ecx, [esp + 0x30]
push ecx
push str.Wait_folder__s_update_n
call fcn.004100a0
push 2
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00404cc0
add esp, 0x24
mov dword [esp + 0x444], ebx
mov dword [esp + 0xc], ebx
lea ecx, [ecx]
mov esi, dword [esp + 0x14]
test esi, esi
mov edi, dword [esp + 0x18]
je 0x40f85b
mov ecx, edi
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esp + 0xc]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x40f85b
mov word [esp + 0x228], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x22a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x22c]
push edx
stosw word es:[edi], ax
call fcn.00414245
mov eax, dword [esp + 0x1c]
mov eax, dword [ebx + eax]
push eax
lea ecx, [esp + 0x234]
push ecx
call fcn.00410490
push 0x62
push str..StartMenuBuilderEx.cpp
push str._n__s:__d_
call fcn.0040fe40
lea edx, [esp + 0x244]
push edx
push str.Still:__s_existed_n
call fcn.004100a0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [esp + 0x24c]
push ecx
push eax
call fcn.004137ad
add esp, 0x2c
test eax, eax
je 0x40f7dc
inc dword [esp + 0xc]
add ebx, 0xc
jmp 0x40f720
push 0x65
push str..StartMenuBuilderEx.cpp
push str._n__s:__d_
call fcn.0040fe40
lea edx, [esp + 0x234]
push edx
push 0x428ba8
call fcn.004100a0
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x14]
test esi, esi
mov dword [esp + 0x444], 0xffffffff
je 0x40f857
mov eax, dword [esp + 0x18]
cmp esi, eax
mov edi, eax
je 0x40f84e
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f843
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0xc
cmp esi, edi
jne 0x40f827
mov esi, dword [esp + 0x14]
push esi
call fcn.0041fb67
add esp, 4
xor eax, eax
jmp 0x40f8a5
test esi, esi
mov dword [esp + 0x444], 0xffffffff
je 0x40f8a0
cmp esi, edi
je 0x40f897
mov edi, edi
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f88c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0xc
cmp esi, edi
jne 0x40f870
mov esi, dword [esp + 0x14]
push esi
call fcn.0041fb67
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x434]
call fcn.00412e0b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4