Function at 0x5138420
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x522ab1c
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push edi
mov ecx, 0x53f4cc8
call fcn.050674e0
test al, al
jne 0x51384d8
push str._ERROR:
push 0xff
push 0xfce
push str..FunctionPlatformInit.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov dword [esp + 0x100], 0
mov ecx, dword [0x56bc0f0]
push 0x52921e0
push edi
push str.__d___s__:_invalid_handle_
push ecx
push eax
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.051ae2c0
mov eax, 0xd
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x5138563
push str._ERROR:
push 0xff
push 0xfd4
push str..FunctionPlatformInit.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov esi, eax
mov dword [esp + 0x100], 1
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0
push 0x52921e0
push edi
push str.__d___s__:_invalid_arguments__req_0x_08X_.
push eax
push esi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.051ae2c0
mov eax, 0xa
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push edi
mov ecx, 0x53f4cc8
lea ebx, [esi + 4]
call fcn.05065960
mov edx, dword [esi]
mov dword [eax + 0x354], edx
mov eax, dword [ebp + 8]
mov ecx, 0x32
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x53f4cc8
call fcn.05065960
mov edi, eax
add edi, 0x358
mov ecx, 0x32
lea esi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xa0]
mov edx, dword [ebx + 0x98]
mov eax, dword [ebx]
mov edi, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ecx]
push eax
mov eax, dword [ebx + 0x94]
push edx
push eax
push edi
call fcn.051379d0
add esp, 0x18
test eax, eax
je 0x51385f0
mov eax, 1
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx + 0x98]
cmp ecx, dword [ebx + 0x80]
je 0x5138667
cmp dword [ebx + 0x9c], 0
jne 0x5138667
push str._ERROR:
push 0xff
push 0xfe0
push str..FunctionPlatformInit.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov esi, eax
mov dword [esp + 0x100], 2
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x98]
mov eax, dword [eax + 8]
push edx
push ecx
push 0x52921e0
push edi
push str.__d___s__:_Invalid_argument__req__usb_enable_0x_2x____req__boot_meta_arg.m_usb_enable_0x_2x_.
push eax
push esi
call fcn.051ae2d0
add esp, 0x1c
jmp 0x5138532
mov esi, dword [ebp + 0x10]
cmp esi, 0xc8
jae 0x513870c
push str._WARNING:
push 0xd2
push 0xfe5
push str..FunctionPlatformInit.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov dword [esp + 0x14], eax
mov dword [esp + 0x100], 3
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x98]
mov eax, dword [eax + 8]
push edx
mov edx, dword [esp + 0x18]
push ecx
push 0xc4
push esi
push 0x52921e0
push edi
push str.__d___s__:_The_requestLength__d____META_Connect_Ex_Req_structure_size__d___reset_additional_parameter.
push eax
push edx
call fcn.051ae2d0
add esp, 0x24
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.051ae2c0
mov eax, 0xc8
sub eax, esi
imul esi, esi, 0xc4
push eax
push 0
add esi, ebx
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [ebx + 0x98], 0
jne 0x51387d7
push 0x98
lea ecx, [esp + 0x30]
push 0
push ecx
call sub.MSVCR90.dll_memset
mov edx, dword [ebx]
mov eax, dword [ebx + 0x34]
add esp, 0xc
cmp dword [ebx + 0xa0], 0
push 0
lea esi, [ebx + 4]
mov ecx, 0xc
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x38]
mov ecx, 0x17
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x94]
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0xb8]
push edx
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0xb4]
push eax
mov dword [esp + 0xcc], ecx
setne dl
cmp dword [ebx + 0xa4], 0
lea ecx, [ebx + 0xa8]
push ecx
movzx eax, dl
push eax
mov eax, dword [ebp + 0x18]
setne cl
cmp dword [ebx + 0x9c], 0
movzx edx, cl
mov ecx, dword [ebp + 0x14]
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [esp + 0x4c]
push edx
setne cl
movzx edx, cl
push eax
push edx
push 0x52921e0
call fcn.05134640
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x64
lea eax, [esp + 0x30]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebx + 0xb8]
mov edx, dword [ebx + 0x94]
add esp, 0xc
cmp dword [ebx + 0xa4], 0
push 0
push eax
lea esi, [ebx + 0x38]
mov ecx, 0x17
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx + 0xb4]
push ecx
mov dword [esp + 0x98], edx
setne al
movzx ecx, al
mov eax, dword [ebp + 0x14]
lea edx, [ebx + 0xa8]
push edx
mov edx, dword [ebp + 0x18]
push 1
push ecx
add edx, 4
cmp dword [ebx + 0x9c], 0
push edx
mov edx, dword [ebp + 8]
push eax
lea ecx, [esp + 0x4c]
push ecx
setne al
movzx ecx, al
push edx
push ecx
push 0x52921e0
call fcn.051334b0
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14