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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x401656
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x60
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4012d0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaVarDup
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
mov eax, dword [ebp + 8]
add eax, 0x3c
jo 0x4172cd
push eax
call fcn.00416d39
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 4
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x5c]
jo 0x4172cd
add eax, 0x78
jo 0x4172cd
push eax
call fcn.00416d39
mov ecx, dword [ebp + 8]
add ecx, eax
jo 0x4172cd
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x60]
add eax, 0x18
jo 0x4172cd
push eax
call fcn.00416d39
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x60]
add eax, 0x20
jo 0x4172cd
push eax
call fcn.00416d39
mov ecx, dword [ebp + 8]
add ecx, eax
jo 0x4172cd
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x60]
add eax, 0x24
jo 0x4172cd
push eax
call fcn.00416d39
mov ecx, dword [ebp + 8]
add ecx, eax
jo 0x4172cd
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x60]
add eax, 0x1c
jo 0x4172cd
push eax
call fcn.00416d39
mov ecx, dword [ebp + 8]
add ecx, eax
jo 0x4172cd
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x30]
sub eax, 1
jo 0x4172cd
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 1
and dword [ebp - 0x24], 0
jmp 0x4171ca
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x68]
jo 0x4172cd
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x6c]
jg 0x4172a3
mov dword [ebp - 4], 0xa
push 0
push 0x9c40
push dword [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaCyI4
push edx
push eax
call sub.MSVBVM60.DLL___vbaCyMul
push edx
push eax
push dword [ebp - 0x58]
call sub.MSVBVM60.DLL___vbaCyI4
push edx
push eax
call sub.MSVBVM60.DLL___vbaCyAdd
push edx
push eax
call sub.MSVBVM60.DLL___vbaI4Cy
push eax
call fcn.00416d39
mov dword [ebp - 0x64], eax
push 0x10
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
lea esi, [ebp - 0x40]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x64]
jo 0x4172cd
push eax
call fcn.00417c12
neg eax
sbb eax, eax
neg eax
neg eax
movsx eax, ax
test eax, eax
je 0x417297
mov dword [ebp - 4], 0xb
push 0
push 0x9c40
mov eax, dword [ebp - 0x24]
imul eax, eax, 2
jo 0x4172cd
mov ecx, dword [ebp - 0x28]
add ecx, eax
jo 0x4172cd
push ecx
call fcn.00416fba
push eax
call sub.MSVBVM60.DLL___vbaCyMulI2
push edx
push eax
push dword [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaCyI4
push edx
push eax
call sub.MSVBVM60.DLL___vbaCyAdd
push edx
push eax
call sub.MSVBVM60.DLL___vbaI4Cy
push eax
call fcn.00416d39
add eax, dword [ebp + 8]
jo 0x4172cd
mov dword [ebp - 0x44], eax
jmp 0x4172a3
mov dword [ebp - 4], 0xe
jmp 0x4171bb
push 0x4172b9
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaFreeVar
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow