Function at 0x5229e0
Capabilities:
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x402cc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401e50
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], eax
mov esi, 1
mov dword [ebp - 4], esi
push 0xc
push 0x40bfe0
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
mov ebx, 2
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
mov dword [ebp - 0xf0], 0x40bfd0
mov dword [ebp - 0xf8], 8
lea edx, [ebp - 0xf8]
mov ecx, dword [ebp - 0x4c]
add ecx, 0x10
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaVarCopy]
call edi
mov dword [ebp - 4], 4
mov dword [ebp - 0xf0], 0x40bfd0
mov dword [ebp - 0xf8], 8
lea edx, [ebp - 0xf8]
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x20]
call edi
mov dword [ebp - 4], 5
mov dword [ebp - 0xf0], 0x40bfd8
mov dword [ebp - 0xf8], 8
lea edx, [ebp - 0xf8]
mov ecx, dword [ebp - 0x4c]
add ecx, 0x30
call edi
mov dword [ebp - 4], 6
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVBVM60.DLL___vbaVarVargNofree]
mov edx, eax
lea ecx, [ebp - 0x40]
call edi
mov dword [ebp - 4], 7
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf8], ebx
lea edx, [ebp - 0xf8]
lea ecx, [ebp - 0x30]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
call edi
mov dword [ebp - 4], 8
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf8], ebx
lea edx, [ebp - 0xf8]
lea ecx, [ebp - 0x80]
call edi
mov dword [ebp - 4], 9
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenVar]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstLe]
test ax, ax
je 0x522f48
mov dword [ebp - 4], 0xa
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xb8], ebx
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0xc8]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xa4]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcAnsiValueBstr]
xor edx, edx
cmp ax, 0xff
sete dl
neg edx
mov word [ebp - 0x130], dx
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xb8]
push ecx
push ebx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
cmp word [ebp - 0x130], 0
je 0x522d5a
mov dword [ebp - 4], 0xb
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf8], ebx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarAdd]
mov edx, eax
lea ecx, [ebp - 0x30]
call edi
mov dword [ebp - 4], 0xc
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xb8], ebx
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0xc8]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xa4]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcAnsiValueBstr]
add ax, 0x17
jo 0x523039
movsx edx, ax
push edx
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
mov edx, eax
lea ecx, [ebp - 0x70]
call edi
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0xb8]
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x10
mov dword [ebp - 4], 0xd
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf8], ebx
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0xf8]
push edx
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarAdd]
mov edx, eax
lea ecx, [ebp - 0x80]
call edi
jmp 0x522f13
mov dword [ebp - 4], 0xe
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xb8], ebx
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
mov dword [ebp - 0x100], 3
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x118], ebx
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarMod]
push eax
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarAdd]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov esi, eax
cmp esi, 0xb
jb 0x522ded
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
shl esi, 4
add esi, dword [ebp - 0x4c]
push esi
lea ecx, [ebp - 0xa8]
push ecx
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcAnsiValueBstr]
mov dx, ax
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xa4]
push ecx
mov word [ebp - 0x146], dx
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcAnsiValueBstr]
mov dx, word [ebp - 0x146]
sub ax, dx
jo 0x523039
mov word [ebp - 0x120], ax
mov dword [ebp - 0x128], ebx
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0xa0]
call edi
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xa4]
push ecx
push ebx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea edx, [ebp - 0xe8]
push edx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xb8]
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x1c
mov dword [ebp - 4], 0xf
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
push eax
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
mov edx, eax
lea ecx, [ebp - 0x70]
call edi
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0x10
mov dword [ebp - 0xf0], 1
mov dword [ebp - 0xf8], ebx
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0xf8]
push edx
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarAdd]
mov edx, eax
lea ecx, [ebp - 0x80]
call edi
mov esi, 1
mov dword [ebp - 4], 0x11
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf8], ebx
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0xf8]
push edx
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarAdd]
mov edx, eax
lea ecx, [ebp - 0x30]
jmp 0x522b77
mov dword [ebp - 4], 0x12
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarCopy]
mov edx, eax
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x523023
jmp 0x522fe0
lea ecx, [ebp - 0x30]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
call esi
lea ecx, [ebp - 0x40]
call esi
lea edx, [ebp - 0x58]
mov dword [ebp - 0x12c], edx
lea eax, [ebp - 0x12c]
push eax
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x70]
call esi
lea ecx, [ebp - 0x80]
call esi
lea ecx, [ebp - 0x90]
call esi
lea ecx, [ebp - 0xa0]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop