Function at 0x4a4910
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], 0x401c48
xor edi, edi
lea edx, [ebp + 8]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x58], 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]
lea ecx, [ebp - 0x58]
push 1
lea edx, [ebp - 0x70]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcRightCharVar]
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov ecx, dword [ebp - 0x38]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x414230
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x414dcc
lea ecx, [eax + 4]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x414de0
add ecx, 8
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x414df4
lea ecx, [eax + 0xc]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x414f18
add ecx, 0x10
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x4179bc
lea ecx, [eax + 0x14]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x4179c4
add ecx, 0x18
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x4191c4
lea ecx, [eax + 0x1c]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x4191cc
add ecx, 0x20
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x4192c4
lea ecx, [eax + 0x24]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x417990
add ecx, 0x28
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x4177d8
lea ecx, [eax + 0x2c]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x417888
add ecx, 0x30
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x417988
lea ecx, [eax + 0x34]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x417998
add ecx, 0x38
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x4177e0
lea ecx, [eax + 0x3c]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x4192cc
add ecx, 0x44
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x4192d8
lea ecx, [eax + 0x48]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x418c24
add ecx, 0x4c
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x418ef8
lea ecx, [eax + 0x50]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x418d08
add ecx, 0x54
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x418bcc
lea ecx, [eax + 0x58]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x418b68
add ecx, 0x5c
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x418adc
lea ecx, [eax + 0x60]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x418a84
add ecx, 0x64
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x41884c
lea ecx, [eax + 0x68]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x4192e8
add ecx, 0x6c
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x4192f4
lea ecx, [eax + 0x70]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x419300
add ecx, 0x74
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x41930c
lea ecx, [eax + 0x78]
call esi
mov ecx, dword [ebp - 0x38]
mov edx, 0x419318
add ecx, 0x7c
call esi
mov eax, dword [ebp - 0x38]
mov edx, 0x419324
lea ecx, [eax + 0x80]
call esi
lea ecx, [ebp - 0x44]
mov ebx, 2
push ecx
push 1
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x80], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov dword [ebp - 0x88], eax
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x90]
push edx
lea ecx, [ebp - 0xa0]
push eax
lea edx, [ebp - 0xd4]
push ecx
lea eax, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
mov dword [ebp - 0x90], 3
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xa0], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaVarForInit]
cmp eax, edi
je 0x4a4c79
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov ebx, eax
cmp ebx, 0x11
jb 0x4a4bcd
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [eax + ebx*4]
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x80], 0x8008
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstEq]
test ax, ax
jne 0x4a4c0a
lea ecx, [ebp - 0xd4]
lea edx, [ebp - 0xc4]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarForNext]
jmp 0x4a4bae
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
lea ecx, [ebp - 0x24]
push ecx
call esi
mov edi, eax
cmp edi, 0x11
jb 0x4a4c23
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
lea edx, [ebp - 0x24]
push edx
call esi
mov esi, eax
cmp esi, 0x11
jb 0x4a4c36
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + edi*4]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push ecx
push 0x414228
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x60]
call ebx
mov edx, dword [ebp - 0x38]
push eax
mov eax, dword [edx + esi*4 + 0x44]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x5c]
call ebx
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
push 0x4a4cee
jmp 0x4a4cac
mov edx, 0x417c84
lea ecx, [ebp - 0x5c]
call esi
push 0x4a4cee
jmp 0x4a4cac
lea ecx, [ebp - 0xd4]
lea edx, [ebp - 0xc4]
push ecx
push edx
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 ecx, [ebp - 0xa4]
lea eax, [ebp - 0x44]
push ecx
push 0
mov dword [ebp - 0xa4], eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x58]
call esi
ret