Function at 0x4a4d10
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x402596
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x401c58
xor edi, edi
lea edx, [ebp + 8]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xd4], edi
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
push 8
lea eax, [ebp - 0x44]
push 0x419330
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
mov ecx, dword [ebp - 0x38]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x414230
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x414dcc
add ecx, 4
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x414de0
lea ecx, [eax + 8]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x414df4
add ecx, 0xc
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x414f18
lea ecx, [eax + 0x10]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x4179bc
add ecx, 0x14
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x4179c4
lea ecx, [eax + 0x18]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x4191c4
add ecx, 0x1c
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x4191cc
lea ecx, [eax + 0x20]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x4192c4
add ecx, 0x24
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x417990
lea ecx, [eax + 0x28]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x4177d8
add ecx, 0x2c
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x417888
lea ecx, [eax + 0x30]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x417988
add ecx, 0x34
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x417998
lea ecx, [eax + 0x38]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x4177e0
add ecx, 0x3c
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x4192cc
lea ecx, [eax + 0x44]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x4192d8
add ecx, 0x48
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x418c24
lea ecx, [eax + 0x4c]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x418ef8
add ecx, 0x50
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x418d08
lea ecx, [eax + 0x54]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x418bcc
add ecx, 0x58
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x418b68
lea ecx, [eax + 0x5c]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x418adc
add ecx, 0x60
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x418a84
lea ecx, [eax + 0x64]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x41884c
add ecx, 0x68
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x4192e8
lea ecx, [eax + 0x6c]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x4192f4
add ecx, 0x70
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x419300
lea ecx, [eax + 0x74]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x41930c
add ecx, 0x78
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x419318
lea ecx, [eax + 0x7c]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x419324
add ecx, 0x80
call esi
lea edx, [ebp - 0x44]
mov esi, 2
push edx
push 1
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x80], esi
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x90], 3
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x90]
push eax
lea edx, [ebp - 0xa0]
push ecx
lea eax, [ebp - 0xd4]
push edx
lea ecx, [ebp - 0xc4]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xa0], esi
call dword [sym.imp.MSVBVM60.DLL___vbaVarForInit]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
cmp eax, edi
je 0x4a5053
lea eax, [ebp - 0x24]
push eax
call ebx
mov esi, eax
cmp esi, 0x11
jb 0x4a4fb3
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ecx + esi*4 + 0x44]
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x80], 0x8008
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstEq]
test ax, ax
jne 0x4a4ff1
lea edx, [ebp - 0xd4]
lea eax, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarForNext]
jmp 0x4a4f98
lea edx, [ebp - 0x24]
push edx
call ebx
mov edi, eax
cmp edi, 0x11
jb 0x4a5004
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
lea eax, [ebp - 0x24]
push eax
call ebx
mov esi, eax
cmp esi, 0x11
jb 0x4a5017
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + edi*4]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push edx
push 0x414228
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x60]
call ebx
push eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + esi*4 + 0x44]
push ecx
call edi
mov edx, eax
lea ecx, [ebp - 0x4c]
call ebx
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
push 0x4a50be
jmp 0x4a507c
lea edx, [ebp - 0xd4]
lea eax, [ebp - 0xc4]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
add esp, 0xc
lea ecx, [ebp - 0x24]
call esi
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x44]
push edx
push 0
mov dword [ebp - 0xa4], ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x5c]
call esi
ret