Function at 0x50c820
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x403fe6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401ea0
mov ecx, dword [0x5430ec]
xor edi, edi
mov eax, ecx
mov dword [ebp - 0x14], edi
and eax, 0x8000003f
mov dword [ebp - 0x34], edi
jns 0x50c865
dec eax
or eax, 0xffffffc0
inc eax
mov ebx, 0x40
mov dword [ebp - 0x2c], eax
sub ebx, eax
mov eax, dword [ebp + 8]
jo 0x50cae9
mov edx, dword [eax]
add edx, ecx
jo 0x50cae9
mov dword [0x5430ec], edx
mov ecx, dword [eax]
cmp ecx, ebx
jl 0x50ca22
mov ecx, ebx
sub ecx, 1
jo 0x50cae9
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov dword [ebp - 0x44], eax
cmp di, word [ebp - 0x44]
jg 0x50c91f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x50c8d5
cmp word [eax], 1
jne 0x50c8d5
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
movsx esi, di
sub esi, edx
cmp esi, ecx
jb 0x50c8d0
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x64], esi
jmp 0x50c8de
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x2c]
movsx esi, di
add esi, ecx
jo 0x50cae9
cmp esi, 0x40
jb 0x50c8f7
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 0xc]
mov dl, byte [eax + ecx]
mov eax, dword [0x54311c]
mov byte [eax + esi], dl
mov eax, 1
add ax, di
jo 0x50cae9
mov edi, eax
jmp 0x50c8a6
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x543110
push ecx
call fcn.0050ccb0
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, ecx
and eax, 0x8000003f
jns 0x50c942
dec eax
or eax, 0xffffffc0
inc eax
movsx edx, di
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
sub ecx, edx
jo 0x50cae9
sub ecx, eax
jo 0x50cae9
call esi
mov ecx, ebx
mov dword [ebp - 0x4c], eax
call esi
mov esi, eax
mov dword [ebp - 0x20], esi
cmp si, word [ebp - 0x4c]
jg 0x50ca19
xor edi, edi
mov eax, 0x3f
cmp di, ax
jg 0x50c9f1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x50c9b3
cmp word [eax], 1
jne 0x50c9b3
mov edx, dword [eax + 0x14]
mov cx, di
add cx, si
jo 0x50cae9
movsx esi, cx
mov ecx, dword [eax + 0x10]
sub esi, edx
cmp esi, ecx
jb 0x50c9af
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebx, esi
jmp 0x50c9bb
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebx, eax
movsx esi, di
cmp esi, 0x40
jb 0x50c9c9
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x54311c]
mov dl, byte [ecx + ebx]
mov byte [eax + esi], dl
mov esi, dword [ebp - 0x20]
mov eax, 1
add ax, di
jo 0x50cae9
mov edi, eax
jmp 0x50c975
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x543110
push ecx
call fcn.0050ccb0
mov eax, 0x40
add ax, si
jo 0x50cae9
mov dword [ebp - 0x20], eax
mov esi, eax
jmp 0x50c969
mov dword [ebp - 0x2c], 0
jmp 0x50ca27
mov dword [ebp - 0x20], edi
mov esi, edi
mov eax, dword [ebp + 8]
movsx edx, si
mov ecx, dword [eax]
sub ecx, edx
jo 0x50cae9
sub ecx, 1
jo 0x50cae9
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov dword [ebp - 0x5c], eax
xor edi, edi
cmp di, word [ebp - 0x5c]
jg 0x50cac1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x50ca7f
cmp word [eax], 1
jne 0x50ca7f
mov dx, di
mov ecx, dword [eax + 0x10]
add dx, si
jo 0x50cae9
movsx esi, dx
sub esi, dword [eax + 0x14]
cmp esi, ecx
jb 0x50ca7b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebx, esi
jmp 0x50ca87
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebx, eax
mov ecx, dword [ebp - 0x2c]
movsx esi, di
add esi, ecx
jo 0x50cae9
cmp esi, 0x40
jb 0x50ca9c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov ecx, dword [0x54311c]
mov al, byte [edx + ebx]
mov byte [ecx + esi], al
mov esi, dword [ebp - 0x20]
mov eax, 1
add ax, di
jo 0x50cae9
mov edi, eax
jmp 0x50ca4b
push 0x50cad3
jmp 0x50cad2
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop