Function at 0x498830
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, 0x10c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x49c3d8
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x48]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push 0x41b444
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xec], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
mov ecx, dword [0x49e604]
push eax
push ecx
call fcn.00417388
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 0xe8], eax
call edi
mov edx, dword [ebp - 0xe8]
mov ecx, dword [0x49e604]
mov eax, dword [0x49e614]
sub edx, ecx
jo 0x49943b
add edx, eax
lea ecx, [ebp - 0x5c]
jo 0x49943b
mov dword [ebp - 0x54], edx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov esi, dword [sym.imp.MSVBVM60.DLL_VarPtr]
lea eax, [ebp - 0x18]
push eax
call esi
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0xe8]
push ecx
add edx, 8
push 4
push eax
jo 0x49943b
push edx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], ebx
call fcn.004916f0
mov eax, dword [ebp - 0x18]
push ebx
sub eax, 1
jo 0x49943b
push eax
push 1
push 0x415b24
push 0x49e608
push 0xc
push ebx
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
lea ecx, [ebp - 0x50]
push ecx
call esi
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], ebx
lea edx, [ebp - 0xe8]
push edx
push 4
push eax
mov eax, dword [ebp - 0x54]
push eax
call fcn.004916f0
lea ecx, [ebp - 0x18]
push ecx
call esi
mov edx, dword [0x49e610]
push 4
add edx, 0x3c
mov dword [ebp - 0xe8], eax
jo 0x49943b
push edx
push eax
call fcn.00413fe8
call edi
lea eax, [ebp - 0x18]
push eax
call esi
mov ecx, dword [0x49e610]
mov edx, dword [ebp - 0x18]
add ecx, edx
push 4
jo 0x49943b
add ecx, 0x78
mov dword [ebp - 0xe8], eax
jo 0x49943b
push ecx
push eax
call fcn.00413fe8
call edi
lea edx, [ebp - 0x48]
push edx
call esi
mov ecx, dword [0x49e610]
mov edx, dword [ebp - 0x18]
add ecx, edx
push 0x28
jo 0x49943b
push ecx
push eax
mov dword [ebp - 0xe8], eax
call fcn.00413fe8
call edi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub eax, 1
mov dword [ebp - 0x18], ecx
jo 0x49943b
mov dword [ebp - 0x104], eax
cmp ecx, eax
jg 0x498db1
lea edx, [ebp - 0x20]
push edx
call esi
mov ecx, dword [ebp - 0x28]
mov edx, dword [0x49e610]
add ecx, edx
mov edx, dword [ebp - 0x18]
jo 0x49943b
imul edx, edx, 4
jo 0x49943b
add ecx, edx
push 4
jo 0x49943b
push ecx
push eax
mov dword [ebp - 0xe8], eax
call fcn.00413fe8
call edi
mov eax, dword [0x49e610]
mov edx, dword [ebp - 0x20]
add eax, edx
jo 0x49943b
push eax
call fcn.00411680
mov dword [ebp - 0xe8], eax
call edi
mov eax, dword [ebp - 0xe8]
push ebx
mov dword [ebp - 0x1c], eax
sub eax, 1
jo 0x49943b
push eax
push 1
lea ecx, [ebp - 0x4c]
push 0x11
push ecx
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov edx, dword [ebp - 0x4c]
add esp, 0x1c
lea eax, [ebp - 0x58]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
je 0x498aee
cmp word [ecx], 1
jne 0x498aee
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
neg eax
cmp eax, edx
mov dword [ebp - 0xf0], eax
jb 0x498af7
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0xf0]
jmp 0x498af7
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx + 0xc]
add ecx, eax
push ecx
call esi
lea edx, [ebp - 0x58]
mov dword [ebp - 0xe8], eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [0x49e610]
mov edx, dword [ebp - 0xe8]
push eax
add ecx, dword [ebp - 0x20]
jo 0x49943b
push ecx
push edx
call fcn.00413fe8
call edi
push ebx
lea ecx, [ebp - 0xb4]
push 0x40
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x4c]
push ecx
push edx
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb4], 0x6011
call dword [sym.imp.MSVBVM60.DLL_rtcStrConvVar2]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x74]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea edx, [ebp - 0xb4]
push 2
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xb4], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharVar]
lea ecx, [ebp - 0x74]
lea edx, [ebp - 0xc4]
push ecx
push edx
mov dword [ebp - 0xbc], 0x41b47c
mov dword [ebp - 0xc4], 0x8008
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstEq]
lea ecx, [ebp - 0x74]
mov word [ebp - 0xf0], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
cmp word [ebp - 0xf0], bx
je 0x498d93
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
call esi
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x49e610]
add ecx, edx
mov edx, dword [ebp - 0x18]
jo 0x49943b
imul edx, edx, 2
jo 0x49943b
add ecx, edx
push 2
jo 0x49943b
push ecx
push eax
mov dword [ebp - 0xe8], eax
call fcn.00413fe8
call edi
lea eax, [ebp - 0x20]
push eax
call esi
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x49e610]
add ecx, edx
mov edx, dword [ebp - 0x20]
jo 0x49943b
imul edx, edx, 4
jo 0x49943b
add ecx, edx
push 4
jo 0x49943b
push ecx
push eax
mov dword [ebp - 0xe8], eax
call fcn.00413fe8
call edi
lea eax, [ebp - 0x20]
push eax
call esi
mov ecx, dword [0x49e610]
mov edx, dword [ebp - 0x20]
add ecx, edx
push 4
jo 0x49943b
add ecx, 1
mov dword [ebp - 0xe8], eax
jo 0x49943b
push ecx
push eax
call fcn.00413fe8
call edi
mov edx, dword [0x49e608]
push edx
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
jl 0x498d93
mov eax, dword [0x49e608]
cmp eax, ebx
je 0x498cd9
cmp word [eax], 1
jne 0x498cd9
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0x10]
cmp ecx, edx
mov dword [ebp - 0xf0], ecx
jb 0x498cd1
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0xf0]
lea eax, [ecx + ecx*2]
shl eax, 2
jmp 0x498cdf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x49e608]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0xc]
add ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, dword [0x49e608]
lea eax, [ebp - 0x58]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
je 0x498d3d
cmp word [ecx], 1
jne 0x498d3d
mov eax, dword [ebp - 0x20]
mov edx, dword [ecx + 0x14]
sub eax, edx
mov edx, dword [ecx + 0x10]
cmp eax, edx
mov dword [ebp - 0xf0], eax
jb 0x498d35
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0xf0]
lea eax, [eax + eax*2]
shl eax, 2
jmp 0x498d46
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx + 0xc]
lea edx, [ecx + eax + 4]
push edx
call esi
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0xe8]
imul eax, eax, 4
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xec], ebx
push ecx
push 4
push edx
mov edx, dword [ebp - 0x50]
jo 0x49943b
add eax, edx
jo 0x49943b
push eax
call fcn.004916f0
mov eax, dword [ebp - 0x18]
mov ecx, 1
add ecx, eax
mov eax, dword [ebp - 0x104]
jo 0x49943b
mov dword [ebp - 0x18], ecx
jmp 0x498a22
mov ecx, dword [ebp - 0x50]
mov eax, dword [0x49e614]
mov edx, dword [0x49e604]
sub ecx, eax
jo 0x49943b
add ecx, edx
mov edx, dword [0x49e608]
push edx
push 1
jo 0x49943b
mov dword [ebp - 0x50], ecx
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov dword [ebp - 0x10c], eax
xor eax, eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x18], eax
cmp eax, ecx
jg 0x498f69
mov eax, dword [0x49e608]
lea ecx, [ebp - 0x58]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
je 0x498e43
cmp word [ecx], 1
jne 0x498e43
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
sub eax, edx
mov edx, dword [ecx + 0x10]
cmp eax, edx
mov dword [ebp - 0xf0], eax
jb 0x498e3b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0xf0]
lea eax, [eax + eax*2]
shl eax, 2
jmp 0x498e4c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0xc]
lea eax, [edx + eax + 8]
push eax
call esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xe8], eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x50]
imul edx, edx, 4
mov eax, dword [ebp - 0xe8]
push 4
jo 0x49943b
add edx, ecx
jo 0x49943b
push edx
push eax
call fcn.00413fe8
call edi
mov ecx, dword [0x49e608]
cmp ecx, ebx
je 0x498ed4
cmp word [ecx], 1
jne 0x498ed4
mov edx, dword [ebp - 0x18]
mov eax, edx
sub eax, dword [ecx + 0x14]
cmp eax, dword [ecx + 0x10]
mov dword [ebp - 0xf4], eax
jb 0x498ec6
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [ebp - 0x18]
mov ecx, dword [0x49e608]
mov eax, dword [ebp - 0xf4]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x11c], eax
jmp 0x498ee9
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [ebp - 0x18]
mov ecx, dword [0x49e608]
mov dword [ebp - 0x11c], eax
cmp ecx, ebx
je 0x498f1f
cmp word [ecx], 1
jne 0x498f1f
sub edx, dword [ecx + 0x14]
mov eax, edx
mov edx, dword [ecx + 0x10]
cmp eax, edx
mov dword [ebp - 0xf0], eax
jb 0x498f17
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x49e608]
mov eax, dword [ebp - 0xf0]
lea eax, [eax + eax*2]
shl eax, 2
jmp 0x498f2b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x49e608]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ebp - 0x11c]
mov edx, dword [ecx + edx + 8]
sub edx, 0x400000
jo 0x49943b
add edx, dword [0x49e614]
jo 0x49943b
mov dword [ecx + eax + 8], edx
mov ecx, dword [ebp - 0x18]
mov eax, 1
add eax, ecx
jo 0x49943b
jmp 0x498de9
lea eax, [ebp - 0x5c]
push 0x41b488
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
mov ecx, dword [0x49e604]
push eax
push ecx
call fcn.00417388
mov dword [ebp - 0xe8], eax
call edi
mov edx, dword [ebp - 0xe8]
mov ecx, dword [0x49e604]
mov eax, dword [0x49e614]
sub edx, ecx
jo 0x49943b
add edx, eax
lea ecx, [ebp - 0x5c]
jo 0x49943b
mov dword [ebp - 0x54], edx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x54]
push eax
call esi
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0xe8]
push ecx
add edx, 0x1c
push 4
push eax
jo 0x49943b
push edx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], ebx
call fcn.004916f0
lea eax, [ebp - 0x18]
push eax
call esi
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0xe8]
push ecx
add edx, 0x18
push 4
push eax
jo 0x49943b
push edx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], ebx
call fcn.004916f0
mov eax, dword [ebp - 0x18]
push ebx
sub eax, 1
jo 0x49943b
push eax
push 1
push 0x415b24
push 0x49e60c
push 0xc
push ebx
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
lea ecx, [ebp - 0x50]
push ecx
call esi
lea edx, [ebp - 0xe8]
mov dword [ebp - 0xec], eax
push edx
push 4
push eax
mov eax, dword [ebp - 0x54]
add eax, 0x10
mov dword [ebp - 0xe8], ebx
jo 0x49943b
push eax
call fcn.004916f0
cmp dword [ebp - 0x18], 0x29b
je 0x49910f
mov ecx, 0xa
mov eax, 0x80020004
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x84], ecx
lea edx, [ebp - 0xb4]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xac], 0x41b4bc
mov dword [ebp - 0xb4], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea ecx, [ebp - 0xa4]
lea edx, [ebp - 0x94]
push ecx
lea eax, [ebp - 0x84]
push edx
push eax
lea ecx, [ebp - 0x74]
push 0x10
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcMsgBox]
lea edx, [ebp - 0xa4]
lea eax, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x84]
push eax
lea edx, [ebp - 0x74]
push ecx
push edx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
jmp 0x4991c8
cmp dword [0x4a0590], ebx
jne 0x499127
push 0x4a0590
push 0x413a44
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x4a0590]
lea edx, [ebp - 0x64]
push edx
push eax
mov ecx, dword [eax]
mov dword [ebp - 0xf0], eax
call dword [ecx + 0x14]
cmp eax, ebx
fnclex
jge 0x499157
mov ecx, dword [ebp - 0xf0]
push 0x14
push 0x413a34
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x5c]
push ecx
push eax
mov edx, dword [eax]
mov dword [ebp - 0xf8], eax
call dword [edx + 0x50]
cmp eax, ebx
fnclex
jge 0x499185
mov edx, dword [ebp - 0xf8]
push 0x50
push 0x4163ac
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x5c]
push eax
push 0x41b4f8
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 1
push 0xffffffffffffffff
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaFileOpen]
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x5c]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, dword [0x49e60c]
push eax
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jg 0x4993ba
mov edx, dword [0x49e60c]
lea eax, [ebp - 0x58]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
je 0x49923a
cmp word [ecx], 1
jne 0x49923a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
sub eax, edx
mov edx, dword [ecx + 0x10]
cmp eax, edx
mov dword [ebp - 0xf0], eax
jb 0x499232
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0xf0]
lea eax, [eax + eax*2]
shl eax, 2
jmp 0x499243
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx + 0xc]
lea edx, [ecx + eax + 4]
push edx
call esi
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xe8]
imul eax, eax, 4
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xec], ebx
push ecx
push 4
push edx
mov edx, dword [ebp - 0x50]
jo 0x49943b
add eax, edx
jo 0x49943b
push eax
call fcn.004916f0
mov ecx, dword [0x49e60c]
lea edx, [ebp - 0x58]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
je 0x4992da
cmp word [ecx], 1
jne 0x4992da
mov eax, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
sub eax, edx
mov edx, dword [ecx + 0x10]
cmp eax, edx
mov dword [ebp - 0xf0], eax
jb 0x4992d2
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0xf0]
lea eax, [eax + eax*2]
shl eax, 2
jmp 0x4992e3
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx + 0xc]
lea edx, [ecx + eax + 8]
push edx
call esi
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov ecx, dword [ebp - 0x50]
mov eax, dword [0x49e620]
mov edx, dword [0x49e61c]
sub ecx, eax
jo 0x49943b
add ecx, edx
mov edx, dword [ebp - 0x1c]
jo 0x49943b
imul edx, edx, 4
mov eax, dword [ebp - 0xe8]
push 4
jo 0x49943b
add ecx, edx
jo 0x49943b
push ecx
push eax
call fcn.00413fe8
call edi
cmp dword [ebp - 0x18], 0x29b
jne 0x4993a2
mov ecx, dword [0x49e60c]
cmp ecx, ebx
je 0x499388
cmp word [ecx], 1
jne 0x499388
mov eax, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
sub eax, edx
mov edx, dword [ecx + 0x10]
cmp eax, edx
mov dword [ebp - 0xf0], eax
jb 0x499380
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x49e60c]
mov eax, dword [ebp - 0xf0]
lea eax, [eax + eax*2]
shl eax, 2
jmp 0x499394
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x49e60c]
mov ecx, dword [ecx + 0xc]
push 1
add ecx, eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLineInputStr]
mov ecx, dword [ebp - 0x1c]
mov eax, 1
add eax, ecx
jo 0x49943b
mov dword [ebp - 0x1c], eax
jmp 0x4991df
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaFileClose]
push 0x49942a
jmp 0x499414
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x4c]
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
nop