Function at 0x5007b0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x567ef6
mov eax, dword fs:[0]
push eax
sub esp, 0x8c4
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 0x8c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x8d8]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x2c]
xor esi, esi
mov dword [esp + 0x30], edi
test eax, eax
je 0x500804
mov esi, dword [eax + 0x114]
test esi, esi
jne 0x50082e
mov ecx, dword [0x5f9648]
mov eax, dword [ecx]
mov edx, dword [eax + 0xa8]
call edx
test eax, eax
je 0x50082e
mov ecx, dword [0x5f9648]
mov eax, dword [ecx]
mov edx, dword [eax + 0xa8]
call edx
mov esi, dword [eax + 0x114]
xor eax, eax
mov word [0x5fe658], ax
mov eax, dword [edi + 0xcc]
mov edx, eax
xor ecx, ecx
shr edx, 4
mov word [esp + 0xc8], cx
mov dword [esp + 0x1c], 4
test dl, 1
je 0x500860
mov dword [esp + 0x1c], 0x1804
cmp byte [edi + 0x1c8], 0
je 0x500871
or dword [esp + 0x1c], 0x880020
mov ecx, eax
shr ecx, 5
test cl, 1
je 0x500883
or dword [esp + 0x1c], 0x80200
mov edx, eax
shr edx, 7
test dl, 1
jne 0x500892
or dword [esp + 0x1c], 8
shr eax, 2
test al, 1
je 0x50089e
or dword [esp + 0x1c], 2
push 0x64
lea eax, [esp + 0x48]
push 0
push eax
call fcn.00507370
mov ecx, dword [0x5ef868]
mov edx, dword [edi + 0x1a0]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x5e9844]
lea eax, [esp + 0xd4]
add esp, 0xc
mov dword [esp + 0x48], esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0x406
mov dword [esp + 0x3c], ecx
mov edx, dword [edi + 0x1a4]
mov ebp, dword [edx - 8]
add edi, 0x1a4
push ebp
lea ecx, [esp + 0x40]
mov dword [esp + 0x8e4], 0
mov dword [esp + 0x2c], edi
call fcn.0045f000
xor esi, esi
test ebp, ebp
jbe 0x50097a
jmp 0x500918
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.0045ef20
mov eax, dword [edi]
movzx ebx, word [eax + esi*2]
movzx eax, bx
cmp eax, 0x2f
je 0x500934
cmp eax, 0x5c
je 0x500939
jmp 0x500969
mov ebx, 0x5c
lea edi, [ebp - 1]
cmp esi, edi
jae 0x500969
mov ecx, dword [esp + 0x28]
call fcn.0045ef20
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
movzx eax, word [edx + esi*2 + 2]
cmp ax, 0x5c
je 0x500960
cmp ax, 0x2f
jne 0x500969
test esi, esi
jbe 0x500969
inc esi
cmp esi, edi
jb 0x500940
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.0045fc10
inc esi
cmp esi, ebp
jb 0x500914
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x78], ecx
push 0
lea ecx, [esp + 0xac]
mov dword [esp + 0x74], eax
mov dword [esp + 0x8c], 0x5004c0
call fcn.0045ece0
push 0
lea ecx, [esp + 0xbc]
mov byte [esp + 0x8e4], 1
call fcn.0045ece0
mov ebx, dword [esp + 0x30]
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0xac]
push eax
lea ecx, [ebx + 0x1b0]
push ecx
mov byte [esp + 0x8ec], 2
call fcn.0047ca00
mov edi, eax
mov eax, dword [0x5e9844]
add esp, 0xc
mov dword [esp + 0x20], eax
xor esi, esi
mov byte [esp + 0x8e0], 3
test edi, edi
jbe 0x500a5f
lea ecx, [ecx]
mov edx, dword [esp + 0xb0]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00460080
push 1
push 0x599630
push 1
lea ecx, [esp + 0x2c]
call fcn.00460080
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00460080
push 1
push 0x599630
push 1
lea ecx, [esp + 0x2c]
call fcn.00460080
inc esi
cmp esi, edi
jb 0x500a00
mov eax, dword [esp + 0x20]
xor esi, esi
cmp dword [eax - 8], esi
jbe 0x500a8d
movzx ecx, word [eax + esi*2]
cmp cx, 0x7c
jne 0x500a87
lea ecx, [esp + 0x20]
call fcn.0045ef20
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [esp + 0x20]
inc esi
cmp esi, dword [eax - 8]
jb 0x500a66
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x1b4]
inc eax
lea ebp, [ebx + 0x1ac]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp]
push 0xfffd
push eax
push 0x5fe658
mov dword [esp + 0x44], ebp
call fcn.0050f890
mov edx, dword [0x5e9844]
xor ecx, ecx
add esp, 0xc
mov word [0x61e652], cx
mov dword [esp + 0x60], 0x5fe658
mov dword [esp + 0x64], 0xfffe
mov dword [esp + 0x34], edx
mov eax, dword [ebx + 0xcc]
shr eax, 1
mov byte [esp + 0x8e0], 4
test al, 1
je 0x500c7f
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
lea eax, [eax + eax - 1]
test eax, eax
jle 0x500b3c
mov edi, eax
lea esp, [esp]
test edx, edx
je 0x500b31
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x500b20
sub eax, esi
sar eax, 1
jmp 0x500b33
xor eax, eax
sub edi, 1
lea edx, [edx + eax*2 + 2]
jne 0x500b10
test edx, edx
jne 0x500b45
mov edx, 0x5bb970
mov ecx, dword [0x576324]
push ecx
push 0
push edx
lea ecx, [esp + 0x24]
call fcn.0045fb60
mov edx, dword [0x576324]
push edx
push 0
push 0x5b0a5c
lea ecx, [esp + 0x30]
mov byte [esp + 0x8ec], 5
call fcn.0045fb60
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
mov bl, 6
push edx
mov byte [esp + 0x8ec], bl
call fcn.004f62e0
add esp, 0xc
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x8e4], 7
call fcn.0045f4a0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], bl
cmp eax, 0xffffffff
je 0x500bcb
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x500bcb
call fcn.0045ea90
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], 5
cmp eax, 0xffffffff
je 0x500bee
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x500bee
call fcn.0045ea90
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], 4
cmp eax, 0xffffffff
je 0x500c11
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x500c11
call fcn.0045ea90
push 0
push 0x599628
lea ecx, [esp + 0x3c]
call fcn.00460400
test al, al
je 0x500c7b
mov eax, dword [0x576324]
push eax
push 2
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x40]
call fcn.00460340
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x8e4], 8
call fcn.0045f4a0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], 4
cmp eax, 0xffffffff
je 0x500c70
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x500c70
call fcn.0045ea90
mov edx, dword [esp + 0x34]
mov dword [esp + 0x80], edx
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x40]
push eax
call fcn.0047c970
mov ecx, dword [ebx + 0xcc]
push ecx
lea esi, [esp + 0x2c]
lea eax, [esp + 0x4c]
mov byte [esp + 0x8e8], 9
call fcn.005003c0
add esp, 8
mov byte [esp + 0x17], al
test al, al
jne 0x500d52
cmp dword [esp + 0x24], 0x3002
jne 0x500cf0
mov eax, dword [esp + 0x60]
cmp word [eax], 0
je 0x50116a
mov ebx, dword [esp + 0x30]
xor edx, edx
mov word [eax], dx
mov eax, dword [ebx + 0xcc]
push eax
lea eax, [esp + 0x48]
call fcn.005003c0
add esp, 4
mov byte [esp + 0x17], al
test al, al
jne 0x500d4e
cmp dword [esp + 0x24], 1
jne 0x50116a
mov eax, 0x4c
cmp dword [esp + 0x44], eax
je 0x50116a
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebx + 0xcc]
mov dword [esp + 0x44], eax
push ecx
lea esi, [esp + 0x28]
lea eax, [esp + 0x48]
call fcn.005003c0
add esp, 4
mov byte [esp + 0x17], al
test al, al
jne 0x500d3c
cmp dword [esp + 0x24], 0
jne 0x50116a
mov edx, dword [esp + 0x44]
mov dword [0x5ef868], edx
test al, al
je 0x50116a
mov ebp, dword [esp + 0x38]
test byte [esp + 0x1c], 8
je 0x500d66
lea eax, [esp + 0x40]
push eax
call fcn.0047c400
add esp, 4
lea ecx, [ebx + 0x1b8]
mov dword [esp + 0x24], ecx
call fcn.0045f940
mov ecx, dword [ebx + 0xcc]
shr ecx, 5
test cl, 1
je 0x500f35
movzx edx, word [esp + 0x7c]
cmp word [edx*2 + 0x5fe656], 0
jne 0x500f35
mov ebp, dword [esp + 0x28]
push 0x5fe658
mov ecx, ebp
call fcn.0045fc90
movzx esi, word [esp + 0x7c]
mov edi, dword [esp + 0x38]
lea eax, [esi*2 + 0x5fe658]
push eax
mov ecx, edi
call fcn.0045fc90
mov ebx, dword [esp + 0x24]
push 1
push edi
mov ecx, ebx
call fcn.0045fec0
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
lea edi, [esi + eax + 1]
cmp word [edi*2 + 0x5fe658], 0
lea esi, [edi*2 + 0x5fe658]
je 0x500e7d
mov eax, esi
test esi, esi
jne 0x500dfb
mov eax, 0x5bb970
mov edx, dword [0x576324]
push edx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.0045fb60
push 1
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
mov byte [esp + 0x8e8], 0xa
call fcn.0045fec0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], 9
cmp eax, 0xffffffff
je 0x500e47
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x500e47
call fcn.0045ea90
test esi, esi
je 0x500e61
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x500e50
sub eax, edx
sar eax, 1
jmp 0x500e63
xor eax, eax
lea edi, [edi + eax + 1]
cmp word [edi*2 + 0x5fe658], 0
lea esi, [edi*2 + 0x5fe658]
jne 0x500df0
mov eax, dword [ebp]
cmp dword [eax - 8], 0
jne 0x500e92
mov ecx, dword [0x5e9844]
mov dword [esp + 0x28], ecx
jmp 0x500ea2
mov dword [esp + 0x28], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x500ea2
inc ecx
mov dword [eax - 0xc], ecx
mov edx, dword [ebp]
mov esi, dword [edx - 8]
mov bl, 0xb
mov ecx, ebp
mov byte [esp + 0x8e0], bl
call fcn.0045ef20
mov eax, dword [ebp]
cmp word [eax + esi*2 - 2], 0x5c
je 0x500ed0
push 0x5c
push 1
lea ecx, [esp + 0x30]
call fcn.0045fc10
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.004609c0
add esp, 0xc
mov esi, dword [esp + 0x30]
lea ecx, [esi + 0x1a8]
push eax
mov byte [esp + 0x8e4], 0xc
call fcn.0045f4a0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], bl
cmp eax, 0xffffffff
je 0x500f21
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x500f21
call fcn.0045ea90
mov ecx, dword [esp + 0x5c]
dec ecx
mov dword [esi + 0x1b4], ecx
mov ecx, dword [esp + 0x28]
jmp 0x50114b
mov eax, dword [esp + 0x5c]
mov cx, word [esp + 0x7e]
lea edx, [eax - 1]
mov dword [ebx + 0x1b4], edx
test cx, cx
je 0x500f5e
movzx ecx, cx
cmp word [ecx*2 + 0x5fe658], 0
jne 0x5010ac
mov edx, dword [esp + 0x20]
lea eax, [eax + eax - 1]
test eax, eax
jle 0x500f9c
mov edi, eax
lea esp, [esp]
test edx, edx
je 0x500f91
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x500f80
sub eax, esi
sar eax, 1
jmp 0x500f93
xor eax, eax
sub edi, 1
lea edx, [edx + eax*2 + 2]
jne 0x500f70
test edx, edx
jne 0x500fa5
mov edx, 0x5bb970
mov eax, dword [0x576324]
push eax
push 0
push edx
lea ecx, [esp + 0x44]
call fcn.0045fb60
mov ecx, dword [0x576324]
push ecx
push 0
push 0x5fe658
lea ecx, [esp + 0x24]
mov byte [esp + 0x8ec], 0xd
call fcn.0045fb60
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
mov bl, 0xe
push ecx
mov byte [esp + 0x8ec], bl
call fcn.004f62e0
add esp, 0xc
push eax
mov ecx, ebp
mov byte [esp + 0x8e4], 0xf
call fcn.0045f4a0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], bl
cmp eax, 0xffffffff
je 0x501028
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x501028
call fcn.0045ea90
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], 0xd
cmp eax, 0xffffffff
je 0x50104b
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x50104b
call fcn.0045ea90
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], 9
cmp eax, 0xffffffff
je 0x50106e
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x50106e
call fcn.0045ea90
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
cmp ecx, 0xfffd
jb 0x501081
mov ecx, 0xfffd
push ecx
push eax
push 0x5fe658
call fcn.0050f890
mov edx, dword [ebp]
mov eax, dword [edx - 8]
add esp, 0xc
cmp eax, 0xfffd
jb 0x5010a2
mov eax, 0xfffd
xor ecx, ecx
mov word [eax*2 + 0x5fe658], cx
mov ecx, dword [esp + 0x30]
push 0x5fe658
add ecx, 0x1a8
call fcn.0045fc90
push 0x5fe658
call fcn.0047cfb0
add esp, 4
push eax
mov ecx, ebp
call fcn.0045fc90
mov ecx, dword [esp + 0x24]
push 1
push ebp
call fcn.0045fec0
mov edx, dword [0x576324]
push edx
push 0
push 0x5fe658
lea ecx, [esp + 0x24]
call fcn.0045fb60
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
mov bl, 0x10
push ecx
mov byte [esp + 0x8e8], bl
call fcn.0047c190
add esp, 8
mov ecx, dword [esp + 0x28]
push eax
mov byte [esp + 0x8e4], 0x11
call fcn.0045f4a0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], bl
cmp eax, 0xffffffff
je 0x501147
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x501147
call fcn.0045ea90
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], 9
cmp eax, 0xffffffff
je 0x50116a
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x50116a
call fcn.0045ea90
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx - 0xc]
xor edx, edx
cmp byte [esp + 0x17], dl
mov byte [esp + 0x8e0], 4
sete dl
add ecx, 0xfffffff4
add edx, 0x13ec
mov esi, edx
cmp eax, 0xffffffff
je 0x50119e
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x50119e
call fcn.0045ea90
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], 3
cmp eax, 0xffffffff
je 0x5011c1
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5011c1
call fcn.0045ea90
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x8e0], 2
cmp eax, 0xffffffff
je 0x5011e4
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5011e4
call fcn.0045ea90
lea ecx, [esp + 0xb8]
mov byte [esp + 0x8e0], 1
call fcn.0045f990
lea ecx, [esp + 0xa8]
mov byte [esp + 0x8e0], 0
call fcn.0045f990
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x8e0], 0xffffffff
cmp eax, 0xffffffff
je 0x501232
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x501232
call fcn.0045ea90
mov eax, esi
mov ecx, dword [esp + 0x8d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c0]
xor ecx, esp
call fcn.0050a9d0
add esp, 0x8d0
ret