Function at 0x4fd7c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8a4
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4016d8
mov ecx, 0x10a
xor eax, eax
lea edi, [ebp - 0x44c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x89
lea edi, [ebp - 0x68c]
rep stosd dword es:[edi], eax
mov ecx, 0x89
lea edi, [ebp - 0x8b0]
push ebx
push ebx
rep stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x20]
push 8
push eax
push 4
push 0x180
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x454], ebx
mov dword [ebp - 0x458], ebx
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x460], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov eax, dword [ebp + 8]
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x4fd86a
call fcn.004f0238
mov esi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp + 8], esi
mov ecx, dword [ebp + 8]
push ecx
push 8
call fcn.004efde0
mov esi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp esi, ebx
mov dword [ebp - 0x24], esi
je 0x4fda8d
lea edx, [ebp - 0x44c]
lea eax, [ebp - 0x68c]
push edx
push eax
push 0x4f00d4
mov dword [ebp - 0x44c], 0x224
call dword [sym.imp.MSVBVM60.DLL___vbaRecUniToAnsi]
push eax
push esi
call fcn.004f017c
mov edi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea ecx, [ebp - 0x68c]
lea edx, [ebp - 0x44c]
push ecx
push edx
push 0x4f00d4
call dword [sym.imp.MSVBVM60.DLL___vbaRecAnsiToUni]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrFixstr]
test edi, edi
je 0x4fda7c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x444]
cmp ecx, eax
jne 0x4fda33
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
add edi, 1
push ecx
jo 0x4fdb1c
push 1
mov dword [ebp - 0x18], edi
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
cmp edi, eax
jle 0x4fd93d
mov edx, edi
push 0
add edx, 0x64
lea eax, [ebp - 0x20]
jo 0x4fdb1c
push edx
push 1
push 8
push eax
push 4
push 0x180
call dword [sym.imp.MSVBVM60.DLL___vbaRedimPreserve]
add esp, 0x1c
lea ecx, [ebp - 0x22c]
push 1
push ecx
push 0x104
call ebx
mov edx, eax
lea ecx, [ebp - 0x454]
call esi
push eax
push 0x4f1650
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x458]
call esi
push eax
push 0x4f1650
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaInStr]
sub eax, 1
lea edx, [ebp - 0x22c]
jo 0x4fdb1c
push eax
push edx
push 0x104
call ebx
mov edx, eax
lea ecx, [ebp - 0x45c]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharBstr]
mov edx, eax
lea ecx, [ebp - 0x460]
call esi
mov eax, dword [ebp - 0x45c]
lea ecx, [ebp - 0x22c]
push eax
push ecx
push 0x104
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4fd9f2
cmp word [ecx], 1
jne 0x4fd9f2
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub edi, edx
cmp edi, eax
jb 0x4fd9e9
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x20]
lea eax, [edi*4]
jmp 0x4fd9fb
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ebp - 0x460]
add ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea edx, [ebp - 0x460]
lea eax, [ebp - 0x45c]
push edx
lea ecx, [ebp - 0x458]
push eax
lea edx, [ebp - 0x454]
push ecx
push edx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x14
lea eax, [ebp - 0x44c]
lea ecx, [ebp - 0x8b0]
push eax
push ecx
push 0x4f00d4
call dword [sym.imp.MSVBVM60.DLL___vbaRecUniToAnsi]
mov edx, dword [ebp - 0x24]
push eax
push edx
call fcn.004f01c4
mov edi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x8b0]
lea ecx, [ebp - 0x44c]
push eax
push ecx
push 0x4f00d4
call dword [sym.imp.MSVBVM60.DLL___vbaRecAnsiToUni]
jmp 0x4fd8df
mov edx, dword [ebp - 0x24]
push edx
call fcn.004efed8
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor ebx, ebx
mov eax, dword [ebp - 0x18]
push ebx
push eax
push 1
lea ecx, [ebp - 0x20]
push 8
push ecx
push 4
push 0x180
call dword [sym.imp.MSVBVM60.DLL___vbaRedimPreserve]
add esp, 0x1c
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryMove]
push 0x4fdb06
jmp 0x4fdaf9
lea eax, [ebp - 0x20]
push eax
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop