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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c26fa
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4f4fa0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], esi
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov dword [esi], vtable.SProtect.0
mov dword [esi + 0x38], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 7
mov word [esi + 0x38], ax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
push 0x104
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], 1
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x74]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
xor eax, eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x74]
mov edx, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4643f2
sub edx, edi
lea ecx, [ebp - 0x28]
sar edx, 1
push edx
push eax
call fcn.004b41a0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xd0]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00461d90
mov eax, dword [ebp - 0xbc]
mov ebx, eax
shr ebx, 0x10
movzx ecx, ax
test eax, eax
jne 0x4644b3
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov edi, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x7c], edx
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x46446f
mov eax, dword [ebp - 0x38]
add eax, 0x76c
jmp 0x464471
xor eax, eax
movzx ebx, ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x4c]
push eax
call edi
add esp, 8
test eax, eax
jne 0x46448e
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x74], eax
jmp 0x464495
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
call edi
xor ecx, ecx
add esp, 8
test eax, eax
cmove ecx, dword [ebp - 0x64]
imul eax, dword [ebp - 0x74], 0x64
add eax, ecx
movzx ecx, ax
mov word [esi + 0x36], cx
lea ecx, [ebp - 0xd0]
mov word [esi + 0x34], bx
call fcn.00465640
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x464502
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4644f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4644f8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bec24
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bf1dd
mov esp, ebp
pop ebp
ret