Function at 0x4d5100
Capabilities:
Check for peb beingdebugged flag
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5fc9c0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov edi, edx
xor ebx, ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebx
push 1
lea edx, [esp + 0x28]
push edx
lea edx, [ebx + 2]
lea eax, [ebx + 1]
mov dword [esp + 0x88], ebx
call fcn.0050e580
mov esi, eax
cmp esi, ebx
jge 0x4d5189
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4d5182
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4d579a
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
fld dword [0x640918]
fstp dword [esp + 0x40]
lea ecx, [esp + 0x34]
fld dword [0x640914]
mov dword [esp + 0x34], ebx
fstp dword [esp + 0x44]
mov dword [esp + 0x38], ebx
fld dword [0x640910]
mov dword [esp + 0x3c], 0x11
fstp dword [esp + 0x48]
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 0xa
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.004da950
mov byte [esp + 0x80], 2
xor eax, eax
cmp dword [edi + 4], ebx
je 0x4d5220
mov edx, dword [edi + 8]
cmp edx, ebx
jbe 0x4d521e
mov edi, dword [edi]
mov ecx, edi
cmp dword [ecx], ebx
jne 0x4d523c
add eax, 1
add ecx, 4
cmp eax, edx
jb 0x4d5210
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4d544e
lea esp, [esp]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jne 0x4d5241
xor ecx, ecx
jmp 0x4d5278
mov eax, dword [edi + eax*4]
jmp 0x4d5220
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4d5278
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebx + 8]
xor edx, edx
div edi
add edx, 1
lea esp, [esp]
cmp edx, edi
jae 0x4d5278
mov eax, dword [ebx]
cmp dword [eax + edx*4], 0
lea eax, [eax + edx*4]
je 0x4d5271
mov ecx, dword [eax]
add edx, 1
test ecx, ecx
je 0x4d5260
mov eax, dword [ebp]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x4d52d5
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4d52c4
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4d52c4
call fcn.0040a210
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4d52bb
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x4d52d5
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004037a0
mov esi, dword [esp + 0x14]
mov ebx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x4d52fb
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.00403540
mov esi, dword [esp + 0x14]
test edi, edi
mov word [esi + ebx*2], 0x20
jl 0x4d5490
cmp edi, dword [esi - 8]
jg 0x4d5490
mov dword [esi - 0xc], edi
mov word [esi + edi*2], 0
mov ecx, dword [ebp + 4]
push ecx
push 0x626af8
lea edi, [esp + 0x1c]
call fcn.0040e190
mov esi, dword [esp + 0x1c]
mov ebx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebx + 1]
sub eax, edi
add esp, 8
or eax, ecx
jge 0x4d535a
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.00403540
mov esi, dword [esp + 0x14]
test edi, edi
mov word [esi + ebx*2], 0x20
jl 0x4d5490
cmp edi, dword [esi - 8]
jg 0x4d5490
mov dword [esi - 0xc], edi
mov word [esi + edi*2], 0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4d53c9
mov ebx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x4d53a7
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.00403540
mov esi, dword [esp + 0x14]
test edi, edi
mov word [esi + ebx*2], 0x5a
jl 0x4d5490
cmp edi, dword [esi - 8]
jg 0x4d5490
mov dword [esi - 0xc], edi
mov word [esi + edi*2], 0
jmp 0x4d5430
test al, 0x10
je 0x4d53dc
push 0x53
lea edi, [esp + 0x18]
call fcn.0040af90
mov esi, dword [esp + 0x14]
test byte [ebp + 8], 0x80
je 0x4d53f1
push 0x49
lea edi, [esp + 0x18]
call fcn.0040af90
mov esi, dword [esp + 0x14]
test byte [ebp + 8], 4
je 0x4d5406
push 0x54
lea edi, [esp + 0x18]
call fcn.0040af90
mov esi, dword [esp + 0x14]
test byte [ebp + 8], 0x20
je 0x4d541b
push 0x4e
lea edi, [esp + 0x18]
call fcn.0040af90
mov esi, dword [esp + 0x14]
test byte [ebp + 8], 0x40
je 0x4d5430
push 0x46
lea edi, [esp + 0x18]
call fcn.0040af90
mov esi, dword [esp + 0x14]
push esi
lea edx, [esp + 0x38]
push edx
mov ecx, ebp
call fcn.004d96f0
cmp dword [esp + 0x20], 0
jne 0x4d5230
mov ebp, dword [esp + 0x18]
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 4], ebx
je 0x4d5471
mov edx, dword [ebp + 8]
cmp edx, ebx
jbe 0x4d546f
mov esi, dword [ebp]
mov ecx, esi
cmp dword [ecx], ebx
jne 0x4d549a
add eax, 1
add ecx, 4
cmp eax, edx
jb 0x4d5461
xor eax, eax
test eax, eax
mov ebp, eax
je 0x4d55a1
mov ebx, dword [esp + 0x18]
nop
test ebp, ebp
mov edi, ebp
mov dword [esp + 0x20], edi
jne 0x4d549f
mov dword [esp + 0x1c], ebp
jmp 0x4d54cf
push 0x80070057
call fcn.00403650
mov eax, dword [esi + eax*4]
jmp 0x4d5471
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4d54cb
mov eax, dword [ebp + 0x10]
mov esi, dword [ebx + 8]
xor edx, edx
div esi
add edx, 1
cmp edx, esi
jae 0x4d54cb
mov eax, dword [ebx]
cmp dword [eax + edx*4], 0
lea eax, [eax + edx*4]
je 0x4d54c4
mov ecx, dword [eax]
add edx, 1
test ecx, ecx
je 0x4d54b3
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi]
mov ebp, dword [esp + 0x1c]
xor edx, edx
mov eax, ecx
div dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4d5596
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4d5596
cmp dword [eax + 0xc], ecx
jne 0x4d54fd
cmp dword [eax], ecx
je 0x4d5509
mov eax, dword [eax + 8]
test eax, eax
jne 0x4d54f4
jmp 0x4d5596
test eax, eax
je 0x4d5596
push 2
lea edi, [eax + 4]
push 0x627d48
push edi
call fcn.0040aee0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.0040aee0
mov eax, dword [edi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebx + 1]
sub eax, esi
or eax, ecx
jge 0x4d5557
mov ecx, esi
mov eax, edi
call fcn.00403540
test esi, esi
mov eax, dword [edi]
mov word [eax + ebx*2], 0x20
jl 0x4d5490
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x4d5490
mov dword [eax - 0xc], esi
mov edx, dword [edi]
mov eax, dword [esp + 0x20]
mov word [edx + esi*2], 0
mov ecx, dword [eax + 8]
push ecx
push 0x626af8
call fcn.0040e190
mov ebx, dword [esp + 0x20]
add esp, 8
cmp dword [esp + 0x1c], 0
jne 0x4d5480
push str.User_Dictionary_2
mov ecx, 0x11
lea esi, [esp + 0x28]
call fcn.0050e710
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
push str.Identity:
mov ebx, 0xa
lea eax, [esp + 0x18]
call fcn.004037a0
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x80], 3
xor esi, esi
movzx eax, byte [esp + esi + 0x64]
push eax
push 0x630890
lea edi, [esp + 0x20]
call fcn.0040e190
add esi, 1
add esp, 8
cmp esi, 8
jb 0x4d55f2
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040aee0
mov edi, dword [esp + 0x30]
test edi, edi
je 0x4d5635
lea eax, [esp + 0x18]
call fcn.0040ab90
mov edx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d5640
sub eax, esi
sar eax, 1
push edx
mov ecx, eax
lea esi, [esp + 0x28]
call fcn.0050e710
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
push eax
push str.Count:__u
lea edi, [esp + 0x1c]
call fcn.0040ac80
mov esi, dword [esp + 0x1c]
mov eax, esi
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d5680
sub eax, edx
sar eax, 1
push esi
mov ecx, eax
lea esi, [esp + 0x28]
call fcn.0050e710
push str.Records:
mov ecx, 8
call fcn.0050e710
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
xor eax, eax
cmp dword [esp + 0x38], eax
je 0x4d56cf
test ebp, ebp
jbe 0x4d56cd
mov edi, edi
cmp dword [ebx + eax*4], 0
jne 0x4d56dd
add eax, 1
cmp eax, ebp
jb 0x4d56c0
xor eax, eax
test eax, eax
mov edi, eax
je 0x4d5730
test edi, edi
mov esi, edi
jne 0x4d56e2
jmp 0x4d5709
mov eax, dword [ebx + eax*4]
jmp 0x4d56cf
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x4d5707
mov eax, dword [edi + 0xc]
xor edx, edx
div ebp
add edx, 1
cmp edx, ebp
jae 0x4d5707
cmp dword [ebx + edx*4], 0
je 0x4d5700
mov ecx, dword [ebx + edx*4]
add edx, 1
test ecx, ecx
je 0x4d56f3
mov edi, ecx
mov edx, dword [esi + 4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d5711
sub eax, esi
sar eax, 1
push edx
mov ecx, eax
lea esi, [esp + 0x28]
call fcn.0050e710
test edi, edi
jne 0x4d56d5
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5758
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
call fcn.004d97f0
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5789
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4d5798
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005d28b3
add esp, 0x70
ret