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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x404476
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x518
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4041f8
fld qword [0x4040f8]
fchs
fstp dword [ebp - 0x74]
fnstsw ax
test al, 0xd
jne 0x4ec620
fld qword [0x403788]
fchs
fstp dword [ebp - 0x70]
fnstsw ax
test al, 0xd
jne 0x4ec620
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x5017d8
push 0x5017d0
call fcn.00481083
call sub.MSVBVM60.DLL___vbaFpR4
fcomp dword [0x402f4c]
fnstsw ax
sahf
jb 0x4e59e5
mov dword [ebp - 0x114], 1
jmp 0x4e59ec
and dword [ebp - 0x114], 0
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax], 0
setge bl
push dword [0x501140]
push 0x43d7ec
call sub.MSVBVM60.DLL___vbaStrCmp
neg eax
sbb eax, eax
neg eax
and eax, dword [ebp - 0x114]
neg eax
sbb eax, eax
neg eax
or ebx, eax
test ebx, ebx
jne 0x4e63b4
and dword [ebp - 0x70], 0
lea eax, [ebp - 0x70]
push eax
call fcn.004cff9f
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x4e5a4c
mov dword [ebp - 0x70], 1
lea eax, [ebp - 0x70]
push eax
call fcn.004cff9f
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jl 0x4e63b4
push dword [0x501140]
push 0x43d7ec
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
je 0x4e5abc
fld1
fstp dword [ebp - 0x7c]
fld dword [0x40371c]
fstp dword [ebp - 0x78]
fld qword [0x4040f0]
fchs
fstp dword [ebp - 0x74]
fnstsw ax
test al, 0xd
jne 0x4ec620
fld qword [0x403020]
fchs
fstp dword [ebp - 0x70]
fnstsw ax
test al, 0xd
jne 0x4ec620
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004c06ef
jmp 0x4ec5e0
fld qword [0x4040f0]
fchs
fstp dword [ebp - 0x74]
fnstsw ax
test al, 0xd
jne 0x4ec620
fld qword [0x403020]
fchs
fstp dword [ebp - 0x70]
fnstsw ax
test al, 0xd
jne 0x4ec620
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x5017d8
push 0x5017d0
call fcn.00481083
call sub.MSVBVM60.DLL___vbaFpR4
fcomp dword [0x4041a0]
fnstsw ax
sahf
jbe 0x4e5b5a
fld1
fstp dword [ebp - 0x7c]
fld dword [0x40371c]
fstp dword [ebp - 0x78]
fld qword [0x4040f0]
fchs
fstp dword [ebp - 0x74]
fnstsw ax
test al, 0xd
jne 0x4ec620
fld qword [0x403020]
fchs
fstp dword [ebp - 0x70]
fnstsw ax
test al, 0xd
jne 0x4ec620
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004c06ef
mov eax, dword [0x501400]
sub eax, dword [0x501500]
jo 0x4ec625
xor ecx, ecx
cmp eax, 0xbb8
setle cl
movzx eax, byte [0x501873]
neg eax
sbb eax, eax
neg eax
or ecx, eax
test ecx, ecx
jne 0x4e5bdb
mov eax, dword [0x501400]
mov dword [0x501500], eax
fld dword [0x40371c]
fstp dword [ebp - 0x78]
fld qword [0x4040f0]
fchs
fstp dword [ebp - 0x74]
fnstsw ax
test al, 0xd
jne 0x4ec620
fld qword [0x403020]
fchs
fstp dword [ebp - 0x70]
fnstsw ax
test al, 0xd
jne 0x4ec620
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00468ab4
jmp 0x4ec5e0
mov word [ebp - 0x6c], 0xab
lea eax, [ebp - 0x6c]
push eax
call fcn.0047d297
neg ax
sbb eax, eax
inc eax
neg eax
movsx eax, ax
cmp eax, 0x64
jle 0x4e5c94
mov edx, 0x43df5c
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e5c94
cmp dword [0x501878], 0
jle 0x4e5c4a
mov eax, dword [0x501878]
cmp eax, dword [0x5017cc]
je 0x4e5c4a
push 0x5017cc
call fcn.00482432
jmp 0x4ec5e0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e5c68
and dword [ebp - 0x118], 0
jmp 0x4e5c73
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
mov word [ebp - 0x6c], 0x84
lea eax, [ebp - 0x6c]
push eax
call fcn.0047d297
movsx eax, ax
test eax, eax
jne 0x4e5d44
mov edx, 0x431d7c
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e5d44
cmp dword [0x501878], 0
jle 0x4e5cfa
mov eax, dword [0x501878]
cmp eax, dword [0x5017cc]
je 0x4e5cfa
push 0x5017cc
call fcn.00482432
jmp 0x4ec5e0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e5d18
and dword [ebp - 0x11c], 0
jmp 0x4e5d23
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
and dword [ebp - 0x2c], 0
mov eax, dword [0x5015e4]
sub eax, 1
jo 0x4ec625
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 1
and dword [ebp - 0x18], 0
jmp 0x4e5d7e
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0xa8]
jo 0x4ec625
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xac]
jg 0x4e5e6d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xb
jae 0x4e5da8
and dword [ebp - 0x120], 0
jmp 0x4e5db3
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x94]
imul eax, eax, 0x124
mov ecx, dword [0x5015d8]
fld dword [ecx + eax + 0x11c]
fcomp dword [0x402f48]
fnstsw ax
sahf
jae 0x4e5e68
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0xb
jae 0x4e5df6
and dword [ebp - 0x124], 0
jmp 0x4e5e01
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0x124
mov ecx, dword [0x5015d8]
cmp dword [ecx + eax + 0x20], 0
jle 0x4e5e68
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0xb
jae 0x4e5e35
and dword [ebp - 0x128], 0
jmp 0x4e5e40
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x98]
imul eax, eax, 0x124
mov ecx, dword [0x5015d8]
cmp dword [ecx + eax + 0x38], 7
jne 0x4e5e68
mov eax, dword [ebp - 0x2c]
add eax, 1
jo 0x4ec625
mov dword [ebp - 0x2c], eax
jmp 0x4e5d6c
movzx eax, byte [0x501873]
test eax, eax
jne 0x4e6002
cmp dword [ebp - 0x2c], 2
jge 0x4e6002
fld qword [0x4040f0]
fchs
fstp dword [ebp - 0x74]
fnstsw ax
test al, 0xd
jne 0x4ec620
fld qword [0x403020]
fchs
fstp dword [ebp - 0x70]
fnstsw ax
test al, 0xd
jne 0x4ec620
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x5017d8
push 0x5017d0
call fcn.00481083
call sub.MSVBVM60.DLL___vbaFpR4
fcomp dword [0x4023d8]
fnstsw ax
sahf
jbe 0x4e5f29
fld1
fstp dword [ebp - 0x7c]
fld dword [0x40371c]
fstp dword [ebp - 0x78]
fld qword [0x4040f0]
fchs
fstp dword [ebp - 0x74]
fnstsw ax
test al, 0xd
jne 0x4ec620
fld qword [0x403020]
fchs
fstp dword [ebp - 0x70]
fnstsw ax
test al, 0xd
jne 0x4ec620
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004c06ef
jmp 0x4ec5e0
fld dword [0x402e38]
fstp dword [ebp - 0x70]
mov edx, 0x43df68
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004ba1f8
neg ax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0x90], ax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
movsx eax, word [ebp - 0x90]
test eax, eax
je 0x4e5fdf
mov edx, 0x43df68
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e5fdf
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e5fb3
and dword [ebp - 0x12c], 0
jmp 0x4e5fbe
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
mov edx, 0x43df78
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
jmp 0x4ec5e0
fld dword [0x402f64]
call sub.MSVBVM60.DLL___vbaFpR4
fcomp dword [0x501928]
fnstsw ax
sahf
jbe 0x4e60c2
cmp dword [0x5017e8], 0x190
jl 0x4e60c2
mov edx, 0x43df88
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e60c2
cmp dword [0x501878], 0
jle 0x4e6078
mov eax, dword [0x501878]
cmp eax, dword [0x5017cc]
je 0x4e6078
push 0x5017cc
call fcn.00482432
jmp 0x4ec5e0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e6096
and dword [ebp - 0x130], 0
jmp 0x4e60a1
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e60e0
and dword [ebp - 0x134], 0
jmp 0x4e60eb
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
fld dword [ecx + eax + 0x14]
fcomp dword [0x402f4c]
fnstsw ax
sahf
jbe 0x4e61db
fld dword [0x404008]
fstp dword [ebp - 0x70]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0x302
jae 0x4e6134
and dword [ebp - 0x138], 0
jmp 0x4e613f
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0x302
jae 0x4e615d
and dword [ebp - 0x13c], 0
jmp 0x4e6168
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e6186
and dword [ebp - 0x140], 0
jmp 0x4e6191
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x98]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0xc]
push eax
mov eax, dword [ebp - 0x94]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x10]
push eax
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 8]
push eax
call fcn.004c06ef
jmp 0x4ec5e0
fld dword [0x402e38]
fstp dword [ebp - 0x70]
mov edx, 0x43df68
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004ba1f8
neg ax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0x90], ax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
movsx eax, word [ebp - 0x90]
test eax, eax
je 0x4e6291
mov edx, 0x43df68
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e6291
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e6265
and dword [ebp - 0x144], 0
jmp 0x4e6270
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e62af
and dword [ebp - 0x148], 0
jmp 0x4e62ba
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
mov edx, dword [0x501878]
cmp edx, dword [ecx + eax + 0x20]
je 0x4e631c
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e62f3
and dword [ebp - 0x14c], 0
jmp 0x4e62fe
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x20]
push eax
call fcn.00482432
jmp 0x4ec5e0
mov edx, 0x4332b8
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jge 0x4e6364
mov edx, 0x4330ec
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e63af
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e6388
and dword [ebp - 0x150], 0
jmp 0x4e6393
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jl 0x4e7020
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e63e0
and dword [ebp - 0x154], 0
jmp 0x4e63eb
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
push dword [ecx + eax + 0x7c]
push 0x43ba0c
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
jne 0x4e6735
fld dword [0x5017d4]
fcomp dword [0x40309c]
fnstsw ax
sahf
jae 0x4e66ce
fld dword [0x5017d4]
fcomp dword [0x4040e4]
fnstsw ax
sahf
jae 0x4e6440
call fcn.004c052f
jmp 0x4ec5e0
cmp dword [0x5023f0], 0
jge 0x4e6526
fld dword [0x402e38]
fstp dword [ebp - 0x70]
mov edx, 0x43df68
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004ba1f8
neg ax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0x90], ax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
movsx eax, word [ebp - 0x90]
test eax, eax
je 0x4e6503
mov edx, 0x43df68
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e6503
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e64d7
and dword [ebp - 0x158], 0
jmp 0x4e64e2
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
mov edx, 0x43ddd0
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
jmp 0x4ec5e0
mov eax, dword [0x5023f0]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0xb
jae 0x4e6543
and dword [ebp - 0x15c], 0
jmp 0x4e654e
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0x124
mov ecx, dword [0x5015d8]
fld dword [ecx + eax + 0x11c]
fcomp dword [0x40233c]
fnstsw ax
sahf
ja 0x4e657e
mov dword [ebp - 0x160], 1
jmp 0x4e6585
and dword [ebp - 0x160], 0
mov eax, dword [0x5023f0]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xb
jae 0x4e65a2
and dword [ebp - 0x164], 0
jmp 0x4e65ad
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x94]
imul eax, eax, 0x124
mov ecx, dword [0x5015d8]
fld dword [ecx + eax + 0x10]
fcomp dword [0x40309c]
fnstsw ax
sahf
jb 0x4e65da
mov dword [ebp - 0x168], 1
jmp 0x4e65e1
and dword [ebp - 0x168], 0
mov eax, dword [ebp - 0x160]
and eax, dword [ebp - 0x168]
test eax, eax
jne 0x4e66ce
fld dword [0x402e38]
fstp dword [ebp - 0x70]
mov edx, 0x43df68
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004ba1f8
neg ax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0x90], ax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
movsx eax, word [ebp - 0x90]
test eax, eax
je 0x4e66ab
mov edx, 0x43df68
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e66ab
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e667f
and dword [ebp - 0x16c], 0
jmp 0x4e668a
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
mov edx, 0x43ddd0
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
jmp 0x4ec5e0
fld dword [0x5017d0]
fcomp dword [0x4040e0]
fnstsw ax
sahf
jbe 0x4e6735
fld dword [0x402f08]
fstp dword [ebp - 0x7c]
fld dword [0x4038f0]
fstp dword [ebp - 0x78]
fld qword [0x4038a8]
fchs
fstp dword [ebp - 0x74]
fnstsw ax
test al, 0xd
jne 0x4ec620
fld qword [0x4040d8]
fchs
fstp dword [ebp - 0x70]
fnstsw ax
test al, 0xd
jne 0x4ec620
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004c06ef
jmp 0x4ec5e0
mov word [ebp - 0x6c], 0xbb
lea eax, [ebp - 0x6c]
push eax
call fcn.0047d297
neg ax
sbb eax, eax
inc eax
neg eax
movsx eax, ax
cmp eax, 0x64
jle 0x4e67dc
mov edx, 0x431d70
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e67dc
cmp dword [0x501878], 0
jle 0x4e6792
call fcn.004824cd
jmp 0x4ec5e0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e67b0
and dword [ebp - 0x170], 0
jmp 0x4e67bb
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
mov word [ebp - 0x6c], 0xab
lea eax, [ebp - 0x6c]
push eax
call fcn.0047d297
neg ax
sbb eax, eax
inc eax
neg eax
movsx eax, ax
cmp eax, 0x64
jle 0x4e6883
mov edx, 0x43df5c
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e6883
cmp dword [0x501878], 0
jle 0x4e6839
call fcn.004824cd
jmp 0x4ec5e0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e6857
and dword [ebp - 0x174], 0
jmp 0x4e6862
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e68a3
and dword [ebp - 0x178], 0
jmp 0x4e68ae
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
fld dword [ecx + eax + 0x18]
fcomp dword [0x402f4c]
fnstsw ax
sahf
jbe 0x4e6a07
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e68f0
and dword [ebp - 0x17c], 0
jmp 0x4e68fb
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x17c], eax
push 0x43df98
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
push dword [ecx + eax + 0x7c]
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x44]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
fld dword [0x402eb8]
fstp dword [ebp - 0x70]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0x302
jae 0x4e695c
and dword [ebp - 0x180], 0
jmp 0x4e6967
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x180], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0x302
jae 0x4e6987
and dword [ebp - 0x184], 0
jmp 0x4e6992
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x184], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e69b2
and dword [ebp - 0x188], 0
jmp 0x4e69bd
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x98]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0xc]
push eax
mov eax, dword [ebp - 0x94]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x10]
push eax
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 8]
push eax
call fcn.004c06ef
jmp 0x4ec5e0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e6a27
and dword [ebp - 0x18c], 0
jmp 0x4e6a32
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0x302
jae 0x4e6a52
and dword [ebp - 0x190], 0
jmp 0x4e6a5d
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
push dword [ecx + eax + 0x7c]
push 0x43d8d0
call sub.MSVBVM60.DLL___vbaStrCmp
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov eax, dword [ebp - 0x94]
shl eax, 7
mov ecx, dword [0x501b58]
push dword [ecx + eax + 0x7c]
push 0x43d8c0
call sub.MSVBVM60.DLL___vbaStrCmp
neg eax
sbb eax, eax
neg eax
and esi, eax
test esi, esi
jne 0x4e6ced
cmp dword [0x5023f0], 0
jl 0x4e6c7c
mov eax, dword [0x5023f0]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0xb
jae 0x4e6ad9
and dword [ebp - 0x194], 0
jmp 0x4e6ae4
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0x124
mov ecx, dword [0x5015d8]
fld dword [ecx + eax + 0x11c]
fcomp dword [0x40233c]
fnstsw ax
sahf
jb 0x4e6b14
mov dword [ebp - 0x198], 1
jmp 0x4e6b1b
and dword [ebp - 0x198], 0
mov eax, dword [0x5023f0]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xb
jae 0x4e6b38
and dword [ebp - 0x19c], 0
jmp 0x4e6b43
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x94]
imul eax, eax, 0x124
mov ecx, dword [0x5015d8]
fld dword [ecx + eax + 0x11c]
fcomp dword [0x401618]
fnstsw ax
sahf
ja 0x4e6b73
mov dword [ebp - 0x1a0], 1
jmp 0x4e6b7a
and dword [ebp - 0x1a0], 0
mov eax, dword [ebp - 0x198]
or eax, dword [ebp - 0x1a0]
test eax, eax
jne 0x4e6c7c
fld1
fstp dword [ebp - 0x70]
mov eax, dword [0x5023f0]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0xb
jae 0x4e6bb0
and dword [ebp - 0x1a4], 0
jmp 0x4e6bbb
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x1a4], eax
mov eax, dword [0x5023f0]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xb
jae 0x4e6bd8
and dword [ebp - 0x1a8], 0
jmp 0x4e6be3
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x1a8], eax
mov eax, dword [0x5023f0]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0xb
jae 0x4e6c00
and dword [ebp - 0x1ac], 0
jmp 0x4e6c0b
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x1ac], eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x98]
imul eax, eax, 0x124
mov ecx, dword [0x5015d8]
lea eax, [ecx + eax + 0x10]
push eax
mov eax, dword [ebp - 0x94]
imul eax, eax, 0x124
mov ecx, dword [0x5015d8]
lea eax, [ecx + eax + 0x14]
push eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0x124
mov ecx, dword [0x5015d8]
lea eax, [ecx + eax + 0xc]
push eax
call fcn.004c06ef
mov edx, 0x43dde0
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
jmp 0x4ec5e0
mov edx, 0x43dfa4
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e6ced
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e6cc1
and dword [ebp - 0x1b0], 0
jmp 0x4e6ccc
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e6d0d
and dword [ebp - 0x1b4], 0
jmp 0x4e6d18
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
mov edx, dword [0x501878]
cmp edx, dword [ecx + eax + 0x20]
je 0x4e6de3
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e6d57
and dword [ebp - 0x1b8], 0
jmp 0x4e6d62
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x1b8], eax
push 0x43dfb4
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
push dword [ecx + eax + 0x7c]
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x44]
push eax
call fcn.00480c34
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e6dba
and dword [ebp - 0x1bc], 0
jmp 0x4e6dc5
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x20]
push eax
call fcn.00482432
jmp 0x4ec5e0
and word [ebp - 0x6c], 0
mov edx, 0x42ad00
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00465f59
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
and word [ebp - 0x6c], 0
mov edx, 0x42add0
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00465f59
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
fld dword [0x402e38]
fstp dword [ebp - 0x70]
mov edx, 0x43df68
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004ba1f8
neg ax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0x90], ax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
movsx eax, word [ebp - 0x90]
test eax, eax
je 0x4e6ee7
mov edx, 0x43df68
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e6ee7
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e6ebb
and dword [ebp - 0x1c0], 0
jmp 0x4e6ec6
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
fld dword [0x402e38]
fstp dword [ebp - 0x70]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0x302
jae 0x4e6f10
and dword [ebp - 0x1c4], 0
jmp 0x4e6f1b
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x302
jae 0x4e6f3b
and dword [ebp - 0x1c8], 0
jmp 0x4e6f46
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x1c8], eax
mov edx, 0x43dfc4
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x94]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 0x10]
push eax
mov eax, dword [ebp - 0x90]
shl eax, 7
mov ecx, dword [0x501b58]
lea eax, [ecx + eax + 8]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004ba2fc
neg ax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0x98], ax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
movsx eax, word [ebp - 0x98]
test eax, eax
je 0x4e701b
mov edx, 0x43dfc4
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x44]
push eax
call fcn.0046ed05
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [ebp - 0x20], 0
jl 0x4e701b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x81
jae 0x4e6fef
and dword [ebp - 0x1cc], 0
jmp 0x4e6ffa
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x90]
imul eax, eax, 0xac
mov ecx, dword [0x502100]
lea eax, [ecx + eax + 4]
push eax
call fcn.0046900f
jmp 0x4ec5e0
jmp 0x4ec5e0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jl 0x4ec5e0
push ebp
add byte [eax], al