Function at 0x4980f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401006
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x49c3c8
push 0x11
lea eax, [ebp - 0xb4]
xor esi, esi
push 0x41b428
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], esi
call dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
lea ecx, [ebp - 0x2c]
push 0x41b3a4
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.004172f0
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 0x84], eax
call edi
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x2c]
mov dword [0x49e610], edx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
push eax
push esi
push esi
push 0xb
call fcn.00410b98
call edi
mov ecx, dword [ebp - 0x14]
push esi
sub ecx, 1
lea edx, [ebp - 0x20]
jo 0x498822
push ecx
push 1
push 0x11
push edx
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov eax, dword [ebp - 0x20]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
add esp, 0x1c
lea ecx, [ebp - 0x24]
push eax
push ecx
call ebx
mov ecx, dword [ebp - 0x24]
cmp ecx, esi
je 0x498210
cmp word [ecx], 1
jne 0x498210
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
neg eax
cmp eax, edx
mov dword [ebp - 0x8c], eax
jb 0x498219
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x8c]
jmp 0x498219
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
add edx, eax
push edx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x14]
push ecx
push edx
push eax
push 0xb
call fcn.00410b98
call edi
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x24]
push edx
push eax
call ebx
mov ecx, dword [ebp - 0x24]
cmp ecx, esi
je 0x498297
cmp word [ecx], 1
jne 0x498297
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
neg eax
cmp eax, edx
mov dword [ebp - 0x8c], eax
jb 0x4982a0
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x8c]
jmp 0x4982a0
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0xc]
add ecx, eax
push ecx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x84], eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
push 4
push eax
push ecx
call fcn.00413fe8
call edi
mov edx, dword [ebp - 0x14]
push esi
sub edx, 1
lea eax, [ebp - 0x1c]
jo 0x498822
push edx
push 1
push esi
push eax
push 0x11c
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov ecx, dword [ebp - 0x1c]
add esp, 0x1c
lea edx, [ebp - 0x24]
push ecx
push edx
call ebx
mov ecx, dword [ebp - 0x24]
cmp ecx, esi
je 0x49833c
cmp word [ecx], 1
jne 0x49833c
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
neg edx
cmp edx, eax
mov dword [ebp - 0x8c], edx
jb 0x49832f
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x8c]
lea eax, [edx + edx*8]
shl eax, 3
sub eax, edx
shl eax, 2
jmp 0x498345
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0xc]
add ecx, eax
push ecx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x84], eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
push eax
push ecx
call ebx
mov ecx, dword [ebp - 0x28]
cmp ecx, esi
je 0x4983a0
cmp word [ecx], 1
jne 0x4983a0
mov edx, dword [ecx + 0x14]
mov eax, 4
sub eax, edx
mov edx, dword [ecx + 0x10]
cmp eax, edx
mov dword [ebp - 0x90], eax
jb 0x4983a9
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x90]
jmp 0x4983a9
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc]
add edx, eax
push edx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x88]
imul ecx, ecx, 0x11c
mov eax, dword [ebp - 0x84]
jo 0x498822
push ecx
push edx
push eax
call fcn.00413fe8
call edi
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x78], 0x41b3bc
cmp ecx, esi
mov dword [ebp - 0x80], 8
je 0x49843e
cmp word [ecx], 1
jne 0x49843e
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
neg edx
cmp edx, eax
mov dword [ebp - 0x8c], edx
jb 0x498431
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x8c]
lea eax, [edx + edx*8]
shl eax, 3
sub eax, edx
shl eax, 2
jmp 0x498447
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x84], ecx
push esi
lea eax, [edx + eax + 0x1c]
push 0x40
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x84]
push eax
push ecx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x70], 0x6011
call dword [sym.imp.MSVBVM60.DLL_rtcStrConvVar2]
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x50]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
lea edx, [ebp - 0x2c]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.004170a0
mov esi, eax
call edi
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x2c]
push ecx
push edx
push 2
mov dword [0x49e604], esi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x40]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x18
push 0x41b3c8
push 1
push 0xffffffffffffffff
push 0x20
call dword [sym.imp.MSVBVM60.DLL___vbaFileOpen]
push 0
push 1
call dword [sym.imp.MSVBVM60.DLL_rtcFileLength]
sub eax, 1
jo 0x498822
push eax
push 1
push 0x11
push 0x49e618
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
push 1
push 0x49e618
push 0x413af0
call dword [sym.imp.MSVBVM60.DLL___vbaGetOwner3]
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaFileClose]
mov edx, dword [0x49e618]
lea eax, [ebp - 0x24]
push edx
push eax
call ebx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x498567
cmp word [ecx], 1
jne 0x498567
mov esi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
neg esi
cmp esi, eax
jb 0x498563
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
mov eax, esi
jmp 0x498570
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0xc]
add ecx, eax
push ecx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x84], eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x84]
test ecx, ecx
mov dword [0x49e61c], eax
je 0x4985c6
cmp word [ecx], 1
jne 0x4985c6
mov esi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
neg esi
cmp esi, eax
jb 0x4985b9
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + esi*8]
shl eax, 3
sub eax, esi
shl eax, 2
jmp 0x4985cf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov eax, dword [edx + eax + 8]
mov dword [0x49e614], eax
mov eax, dword [ebp - 0x14]
sub eax, 1
jo 0x498822
xor esi, esi
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x18], esi
cmp esi, eax
jg 0x4987b4
test ecx, ecx
je 0x498635
cmp word [ecx], 1
jne 0x498635
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub esi, edx
cmp esi, eax
jb 0x498625
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + esi*8]
shl eax, 3
sub eax, esi
mov esi, dword [ebp - 0x18]
shl eax, 2
jmp 0x49863e
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc]
push 0
push 0x40
mov dword [ebp - 0x70], 0x6011
lea edx, [ecx + eax + 0x1c]
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x84], eax
lea edx, [ebp - 0x70]
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x84]
push edx
push eax
mov dword [ebp - 0x68], ecx
call dword [sym.imp.MSVBVM60.DLL_rtcStrConvVar2]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], 0x80020004
test ecx, ecx
mov dword [ebp - 0x50], 0xa
je 0x4986b6
cmp word [ecx], 1
jne 0x4986b6
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub esi, edx
cmp esi, eax
jb 0x4986a9
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + esi*8]
shl eax, 3
sub eax, esi
shl eax, 2
jmp 0x4986bf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc]
lea edx, [ebp - 0x50]
push edx
mov dx, word [ecx + eax + 0x1a]
lea ecx, [ebp - 0x40]
add dx, 1
jo 0x498822
movsx eax, dx
push eax
lea edx, [ebp - 0x60]
push ecx
push edx
call ebx
push 0
push 0xffffffffffffffff
push 1
push 0x41061c
lea eax, [ebp - 0x60]
push 0x419344
lea ecx, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcReplace]
mov edx, eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x41b40c
call edi
mov esi, eax
lea edx, [ebp - 0x30]
neg esi
sbb esi, esi
lea eax, [ebp - 0x2c]
push edx
inc esi
push eax
push 2
neg esi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x50]
push ecx
lea eax, [ebp - 0x40]
push edx
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov ecx, dword [ebp - 0x1c]
add esp, 0x1c
test si, si
je 0x498797
test ecx, ecx
je 0x498782
cmp word [ecx], 1
jne 0x498782
mov esi, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub esi, edx
cmp esi, eax
jb 0x498775
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + esi*8]
shl eax, 3
sub eax, esi
shl eax, 2
jmp 0x49878b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + eax + 8]
mov dword [0x49e620], eax
mov edx, dword [ebp - 0x18]
mov eax, 1
add eax, edx
jo 0x498822
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x18]
jmp 0x4985fe
call fcn.00498830
push 0x498811
jmp 0x4987fa
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea edx, [ebp - 0x1c]
push edx
push 0
call esi
lea eax, [ebp - 0x20]
push eax
push 0
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop