Function at 0x40f297
Capabilities:
Check for peb beingdebugged flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41dc6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
push 1
xor ebx, ebx
push ebx
push ebx
lea eax, [esp + 0x48]
push eax
push ebx
push dword [ebp + 0xc]
call dword [0x42c5dc]
test eax, eax
je 0x40f4f3
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40f4f3
cmp dword [eax + 0xc], 0x4b434957
jne 0x40f4f3
mov edi, dword [eax]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
add ecx, edi
add ecx, edx
cmp dword [esp + 0x30], ecx
jb 0x40f4e8
add edi, edx
lea edx, [eax + 0x14]
add edi, eax
test dword [edx], 0xfffffffe
lea ecx, [eax + 0x24]
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x2c], edx
jbe 0x40f4e8
jmp 0x40f347
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
add eax, edi
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x10]
add eax, edi
add ecx, 0x20
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
call fcn.004046cc
lea esi, [esp + 0x40]
mov dword [esp + 0x28], eax
call fcn.00405d11
mov dword [esp + 0x5c], ebx
cmp dword [esp + 0x10], ebx
jne 0x40f390
cmp dword [esp + 0x14], ebx
jne 0x40f390
or dword [esp + 0x5c], 0xffffffff
call fcn.00405f2c
jmp 0x40f4ce
push ebx
lea eax, [esp + 0x24]
push eax
push 4
pop edi
mov eax, edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], 0x77010101
call fcn.004060be
push str.INTERNET_EXPLORER_7.x_8.x_AUTOCOMPLETE
lea eax, [esp + 0x44]
push eax
call fcn.004025f0
push ebx
lea eax, [esp + 0x44]
push eax
call fcn.004025f0
push dword [ebp + 8]
lea eax, [esp + 0x44]
push eax
call fcn.004025f0
push dword [esp + 0x10]
lea eax, [esp + 0x44]
push eax
call fcn.004025f0
push dword [esp + 0x14]
lea eax, [esp + 0x44]
push eax
call fcn.004025f0
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], ebx
call fcn.004060be
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], ebx
call fcn.004060be
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], ebx
call fcn.004060be
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [esp + 0x24], eax
push ebx
lea eax, [esp + 0x28]
push eax
mov eax, edi
lea ecx, [esp + 0x48]
call fcn.004060be
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], 3
call fcn.004060be
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], ebx
call fcn.004060be
push ebx
lea eax, [esp + 0x44]
push eax
call fcn.004025f0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44]
call fcn.00406173
push dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
push ebx
push 0x64
push esi
call fcn.00403aef
push eax
push 0xff0f8211
push dword [esp + 0x58]
push dword [esp + 0x58]
call fcn.0040242d
or dword [esp + 0x5c], 0xffffffff
lea esi, [esp + 0x40]
call fcn.00405f2c
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
inc dword [esp + 0xc]
shr eax, 1
cmp dword [esp + 0xc], eax
jb 0x40f343
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
jmp 0x40f4f5
xor al, al
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret