Function at 0x529fe0
Capabilities:
Check os version
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x408da6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x406818
xor edi, edi
xor esi, esi
cmp word [ebp + 8], di
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xc0], edi
je 0x52a534
cmp word [ebp + 0xc], di
je 0x52a534
mov ebx, 0x571a84
push ebx
push 1
call sub.MSVBVM60.DLL___vbaUbound
movsx ecx, word [ebp + 8]
cmp ecx, eax
jg 0x52a534
push ebx
push 1
pop ebx
push ebx
call sub.MSVBVM60.DLL___vbaUbound
movsx ecx, word [ebp + 0xc]
cmp ecx, eax
jg 0x52a534
add esi, ebx
jo 0x52a5bf
cmp esi, dword [0x5721b0]
jg 0x52a096
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
cmp dword [eax + 0x18], edi
jle 0x52a0b0
jmp 0x52a073
push ebx
push esi
push ebx
push edi
push 0x5721b4
push 0x34
push edi
mov dword [0x5721b0], esi
call sub.MSVBVM60.DLL___vbaRedimPreserve
add esp, 0x1c
push dword [ebp + 8]
call fcn.0056b662
push dword [ebp + 8]
mov ebx, eax
call fcn.0056b68a
push dword [ebp + 0xc]
mov dword [ebp - 0xc8], eax
call fcn.0056b662
push dword [ebp + 0xc]
mov dword [ebp - 0xcc], eax
call fcn.0056b68a
push eax
push dword [ebp - 0xcc]
push dword [ebp - 0xc8]
push ebx
call fcn.0056ba89
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
fstp dword [eax + 0x14]
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
fld dword [eax + 0x14]
fcomp dword [0x406810]
fnstsw ax
sahf
jbe 0x52a148
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
fld dword [eax + 0x14]
fsub dword [0x40680c]
push esi
push dword [0x5721b4]
fnstsw ax
test al, 0xd
jne 0x52a5ba
call sub.MSVBVM60.DLL___vbaDerefAry1
fstp dword [eax + 0x14]
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
push esi
mov word [eax + 0x30], di
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
push 2
mov word [eax + 0x32], di
pop edi
push edi
push 0xfffffffffffffffe
call fcn.00496310
push dword [ebp + 0xc]
mov ebx, eax
call fcn.0056b662
and dword [ebp - 0x38], 0
mov word [ebp - 0xa8], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x30]
xor ebx, ebx
cmp word [ebp + 0x18], 0xffff
push eax
lea eax, [ebp - 0x80]
sete bl
push eax
lea eax, [ebp - 0x50]
neg ebx
push eax
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x30], 3
mov word [ebp - 0x78], bx
mov dword [ebp - 0x80], 0xb
call sub.MSVBVM60.DLL_rtcImmediateIf
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb8], 0x20
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0xc0], edi
call sub.MSVBVM60.DLL___vbaVarAdd
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x70]
push eax
call sub.MSVBVM60.DLL___vbaVarMul
push eax
call sub.MSVBVM60.DLL___vbaR4Var
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
fstp dword [eax + 8]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push 5
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0x18
push 0
push 0xfffffffffffffffe
call fcn.00496310
push dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
call fcn.0056b68a
and dword [ebp - 0x38], 0
mov word [ebp - 0xa8], ax
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x40], edi
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x50]
push eax
mov word [ebp - 0x78], bx
mov dword [ebp - 0x80], 0xb
call sub.MSVBVM60.DLL_rtcImmediateIf
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb8], 0x20
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0xc0], edi
call sub.MSVBVM60.DLL___vbaVarAdd
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x70]
push eax
call sub.MSVBVM60.DLL___vbaVarMul
push eax
call sub.MSVBVM60.DLL___vbaR4Var
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
fstp dword [eax + 0xc]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push 5
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0x18
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov cl, byte [ebp + 0x14]
push dword [ebp + 8]
mov byte [eax + 0x10], cl
call fcn.0056b662
push dword [ebp + 8]
mov ebx, eax
call fcn.0056b68a
cmp bx, 0x11
mov dword [ebp - 0x18], eax
jg case.default.0x52a332
movsx eax, bx
add eax, 0xfffffff7
cmp eax, 8
ja case.default.0x52a332
jmp dword [eax*4 + 0x52a576]
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x30], 0x120
jmp case.default.0x52a332
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x30], 0x10c
jmp case.default.0x52a332
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x30], 0xe4
jmp case.default.0x52a332
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x30], 0xc6
jmp case.default.0x52a332
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x30], 0x94
jmp case.default.0x52a332
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x30], 0x80
jmp case.default.0x52a332
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x30], 0x62
jmp case.default.0x52a332
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x30], 0x44
jmp case.default.0x52a332
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x30], 0x26
cmp word [ebp - 0x18], 0xf
jg case.default.0x52a40c
movsx eax, word [ebp - 0x18]
add eax, 0xfffffff8
cmp eax, 7
ja case.default.0x52a40c
jmp dword [eax*4 + 0x52a59a]
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x32], 0x102
jmp case.default.0x52a40c
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x32], 0xe4
jmp case.default.0x52a40c
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x32], 0xc6
jmp case.default.0x52a40c
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x32], 0x94
jmp case.default.0x52a40c
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x32], 0x80
jmp case.default.0x52a40c
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x32], 0x62
jmp case.default.0x52a40c
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x32], 0x44
jmp case.default.0x52a40c
push esi
push dword [0x5721b4]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov word [eax + 0x32], 0x26
imul bx, bx, 0x20
jo 0x52a5bf
movsx eax, bx
push esi
mov dword [ebp - 0xe0], eax
push dword [0x5721b4]
fild dword [ebp - 0xe0]
call sub.MSVBVM60.DLL___vbaDerefAry1
push esi
fstp dword [eax]
mov eax, dword [ebp - 0x18]
push dword [0x5721b4]
imul ax, ax, 0x20
jo 0x52a5bf
movsx eax, ax
mov dword [ebp - 0xe4], eax
fild dword [ebp - 0xe4]
call sub.MSVBVM60.DLL___vbaDerefAry1
fstp dword [eax + 4]
push dword [0x5721b4]
lea eax, [ebp - 0x20]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push edi
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaDerefAry1
add eax, 0x18
push eax
call fcn.0049db01
lea eax, [ebp - 0x20]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
wait
push 0x52a565
jmp 0x52a564
ret
jmp fcn.00408dac
call sub.MSVBVM60.DLL___vbaErrorOverflow